The Scrum (2/5)

1 view
Skip to first unread message

Jon Kiparsky

unread,
Feb 5, 2010, 9:14:56 PM2/5/10
to tbs-...@googlegroups.com
Today and last night, I generated test trees for use in unit testing
of the scoring application. I also wrote a quick perl script to insert
the rev number of the current build into the frame page. It should
appear in the lower right-hand corner, under the issues button.
Tonight, in sh'allah, I'll be able to post the unit tests for scoring.
No roadblocks.
1:52

Glenn Thelen

unread,
Feb 5, 2010, 11:33:13 PM2/5/10
to tbs-...@googlegroups.com

Today I wrote code to load in Jon's test trees, and added a menu item to let the user step through the graphs.
Tomorrow, I plan on adding code to select graphs by name from a list, and implement breadth first search.

No roadblocks.

--
You received this message because you are subscribed to the Google Groups "tbs-group" group.
To post to this group, send email to tbs-...@googlegroups.com.
To unsubscribe from this group, send email to tbs-group+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tbs-group?hl=en.


Andrew.S...@bbh.com

unread,
Feb 6, 2010, 9:33:07 AM2/6/10
to tbs-...@googlegroups.com
Today, I did not do much because of my job.  I did get to look at the perl stuff that Jon had created and it looks promising.  I will test that perl stuff tomorrow & I will hopefully check in my refactoring.One roadblock was that my mother's wireless router has burned out and so I was not able to get internet connection so that really prompted me to fall asleep tonight rather than start working.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Glenn Thelen <glenn_...@yahoo.com>
Sent by: tbs-...@googlegroups.com
Date: 02/05/2010 11:33PM
Subject: Re: [tbs-group] The Scrum (2/5)

*************************** IMPORTANT NOTE*****************************-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ********************************************************************************

Andrew.S...@bbh.com

unread,
Feb 6, 2010, 9:05:59 PM2/6/10
to tbs-...@googlegroups.com
Today:  Checked in a llot of the refacotring I have spent that last week working on.  There is still some refactoring to be done on the view and the Prompt setup.  I had tested Jon's new perl script that runs from the ant build script and I recieved this error:
 
[exec] 'svn' is not recognized as an internal or external command,
 
I would also like to report that the admin applet in production has over 100 tree submissions in it and it is still running very fast! Good stuff.
Tomorrow:  I will be looking at some of the issues with the Admin Applet issues that are happening with tooltips & name resivoir selections.  I will possibly begin to look into the issue's with Jon's new perl script.
 
Roadblocks: none.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

Jon Kiparsky

unread,
Feb 6, 2010, 9:15:04 PM2/6/10
to tbs-...@googlegroups.com
Posted junit tests and stub methods in the scoring application. The
test setup is crude, but it's a start.
Tonight, I don't know exactly what I'll be doing. Something.

No roadblocks.

Glenn Thelen

unread,
Feb 7, 2010, 1:26:01 AM2/7/10
to tbs-...@googlegroups.com

Today: installed JUnit software and got Jon's code to compile under ant and eclipse
Tomorrow: breadth first search
No roadblocks

----- Original Message ----
From: Jon Kiparsky <jon.ki...@gmail.com>
To: tbs-...@googlegroups.com

Andrew.S...@bbh.com

unread,
Feb 7, 2010, 11:40:16 AM2/7/10
to tbs-...@googlegroups.com
Hey guys,
  This e-mail is asid from the usual scrum.  I had a couple questions:
1) Jon what are the first two lines of the update.pl script doing?
 
$str = 'svn update lib';
split(/ /,$str);
 
It looks like it is splitting the $str by spaces, but then what does it do with it?  Its never assigned to a variable.  Also, I see you reference the parameter $_[2], but going off of the build script the only parameter I see being passed into the script is the location of 'update.pl'.  These parts of the code seem to be the engine for finiding the current revision number and for some reason mine is erroring out with the message I showed in my scrum e-mail last night.  Jon, could you explain the frist few lines of code & then any possible setup with svn that I may have effed up.  Other than that the script is pretty clever and is replacing the text in TBSTestSurvey.pl fine.
 
2) Glenn, how do you go about setting up JUnit?  Where should I download it from.  I imported the current version of your Graphing application and I wanted to see it in action, but the JUnit stuff is blowing it up since I don't have it installed yet.  Just give me a quick run-through of what you did to set it up.
 
Thanks guys.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

Jon Kiparsky

unread,
Feb 7, 2010, 12:06:37 PM2/7/10
to tbs-...@googlegroups.com
The first line does a system call, issuing an update command on lib.
Since lib doesn't change, it'll always return the correct string,
which is "At revision n.". There's probably an svn command to get the
current rev number, but I was too lazy to look, since I had this in
hand.

The second line splits $str and puts the result into the default @_
array, which explains $_[2] - this is the third piece of "At revision
n.", which is "n."

We then get rid of the period and increment n - that's the current
revision number. I'm assuming that a commit of the current build
follows this script.

Then we open up the source document (TBS.pl) and go through it line by
line - while (<SCRIPT>) - writing it to the TBSTestSurvey.pl, pausing
only to replace the string REVNO with the contents of the variable we
came up with earlier.

Nothing is being passed to the build.xml script, this is simply a
trigger to execute an action.
Alles klar?

Your errors might be due to running under windows - perhaps the system
call doesn't work on your doohickey. I'll see if I can find out how to
modify the script to work on Bill machines. Will post a fix or another
way to do it.


junit is at http://sourceforge.net/projects/junit/files/

The faq will help: http://junit.sourceforge.net/doc/faq/faq.htm

Probably Eclipse will set it up for you, it seems to have wizards for
most of this stuff.
I haven't built the tests into the build file yet, so we're not doing
proper unit testing. This should make life a little easier; once you
have the junit jar in your classpath, you're set. You don't have to
worry about seeing failing tests.

Andrew.S...@bbh.com

unread,
Feb 7, 2010, 12:55:19 PM2/7/10
to tbs-...@googlegroups.com
Ahhh!  I see it now.  Alright so all I need to do is figure out how to run SVN from the command line in windows. No big deal.  Thanks for the feedback.  I have checked in the fixes for those issues on the admin applet and sent a new version of the old JAR to professor white to be deployed to the production server.  The issues were nothing big, just annoying stuff.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Jon Kiparsky <jon.ki...@gmail.com>
Sent by: tbs-...@googlegroups.com
Date: 02/07/2010 12:06PM
Subject: Re: [tbs-group] JUnit & Perl

Andrew.S...@bbh.com

unread,
Feb 7, 2010, 2:09:03 PM2/7/10
to tbs-...@googlegroups.com
Alright, good news! In order to get the perl script running I had to check and see which version of subversion TortoiseSVN was running on my computer and then I had to download & install that version of subversion to my computer as well as add ;C:\Program Files\Subversion\bin to my 'path' enviroment variable.
 
You also need to have 'C:\Perl\bin;' included in your 'path' environment variable to get perl to run on windows.  I already had this included from when I was running prel scripts earlier last semester.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Jon Kiparsky <jon.ki...@gmail.com>
Sent by: tbs-...@googlegroups.com
Date: 02/07/2010 12:06PM
Subject: Re: [tbs-group] JUnit & Perl

Glenn Thelen

unread,
Feb 7, 2010, 8:02:22 PM2/7/10
to tbs-...@googlegroups.com

Hi Andrew,

Here is how I got JUnit working for ant:
go to: http://sourceforge.net/projects/junit/files/junit/
download junit-4.8.1.jar
put it somewhere: I put mine in c:\junit_home\junit-4.8.1.jar
go into Control Panel -> System -> Advanced System Settings -> Environment Variables -> System Variables
add JUNIT_HOME = c:\junit_home
add CLASSPATH = %JUNIT_HOME%\junit-4.8.1.jar;
(if you already have CLASSPATH add ;%JUNIT_HOME%\j-4.8.1.jar to the end)

For Eclipse:
You need to have JUnit 4 included as a library.
I think Eclipse comes with it.  I had to play around a little bit
if you go to the line:
public class AdminApplicationTest extends TestCase
and put your mouse over TestCase (which has an error if JUnit 4 is not included)
it will give you some options
if you play around a bit it will add "JUnit 4" under "Reference Libraries" in Package Explorer
and all the errors will go away

Hope this helps,
Glenn



From: "Andrew.S...@bbh.com" <Andrew.S...@bbh.com>
To: tbs-...@googlegroups.com
Sent: Sun, February 7, 2010 11:40:16 AM
Subject: [tbs-group] JUnit & Perl
--

Andrew.S...@bbh.com

unread,
Feb 8, 2010, 7:34:35 AM2/8/10
to tbs-...@googlegroups.com
Thanks Glenn.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738



From: Glenn Thelen <glenn_...@yahoo.com>
To: tbs-...@googlegroups.com
Date: 02/07/2010 08:02 PM
Subject:
Re: [tbs-group] JUnit & Perl
Sent by: tbs-...@googlegroups.com


Andrew.S...@bbh.com

unread,
Feb 8, 2010, 8:50:59 PM2/8/10
to tbs-...@googlegroups.com

I just wanted to note that I was able to add JUnit 4 to Eclipse by right-clicking on the project and clicking "Build Path -> Configure Build Path" then clicking "Add Library", selecting "JUnit" and then select JUnit 4 from the drop down list.


Andrew Schonfeld
Brown Brothers Harriman & Co.
Infomediary Systems
617-772-6738

-----tbs-...@googlegroups.com wrote: -----

To: tbs-...@googlegroups.com
From: Glenn Thelen <glenn_...@yahoo.com>
Sent by: tbs-...@googlegroups.com
Date: 02/07/2010 08:02PM

Subject: Re: [tbs-group] JUnit & Perl

Jon Kiparsky

unread,
Feb 8, 2010, 8:54:10 PM2/8/10
to tbs-...@googlegroups.com
Hm. And you wonder why I don't bother with IDEs? :)
Reply all
Reply to author
Forward
0 new messages