Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Fitnesse confusion
Hi all,

Obviously, from my recent posts, I'm just getting started trying to really
seriously learn the common Java testing tools.  Now, I'm on to Fitnesse.

I feel like a bit of a dope because it looks like a lot of work went into
making the documentation clear on how to make Fitness work, but I'm having
trouble getting clear on the steps, and none of my stumbling and
experimentation has worked.  It would help if there was a hand-holding
step-by-step example of how to get the first Fitnesse test up and running wi
th
a new project.

Anyway, I was hoping to try to see if I could set up my own java project in
its own directory, and I tried to figure out the steps.

First of all, I created what I think is a subwiki.  From what I can tell, th
e
only thing that actually makes a page a subwiki is that other pages use it a
s
a namespace.  Is that right?  Anyway, I created a page called FooSuite, and 
I
made a class path to where the new project was going to be by adding !path
C:\myjava\foo.  Since I was going to copy and paste code from the division
example, I also created a new test page called FooSuite.DivideTest.

Next, on the new test page, I pasted the following example markup (changing
"eg" to "eg2" since that's the package name I intended to use):

|eg2.Division|
|Numerator|Denominator|Quotient?|
|10       |2          |5        |
|12.6     |3          |4.2      |
|100      |4          |33       |

At this point, I expected to see a Test button that would produce an error
when clicked, but no button appeared.  I looked around and thought perhaps, 
I
needed to add a test fixture listing for eg2.Division as a test fixture in
FooSuite, so I tried adding !fixture eg2.division to FooSuite, but still no
luck.  Next, I tried creating the actual java code to be called.  Still, I
have no Test button to try to run the test with.

What have I missed?

Thanks,

- Steve J.

Report this thread to moderator Post Follow-up to this message
Old Post
Steve Jorgensen
04-19-05 01:56 PM


Re: Fitnesse confusion
"Steve Jorgensen" <nospam@nospam.nospam> wrote in message
 news:u3f961hvsih1bd4e51aosupkkbdq0valr5@
4ax.com...
> Hi all,
>
> Obviously, from my recent posts, I'm just getting started trying to really
> seriously learn the common Java testing tools.  Now, I'm on to Fitnesse.
>
> I feel like a bit of a dope because it looks like a lot of work went into
> making the documentation clear on how to make Fitness work, but I'm having
> trouble getting clear on the steps, and none of my stumbling and
> experimentation has worked.  It would help if there was a hand-holding
> step-by-step example of how to get the first Fitnesse test up and running
> with
> a new project.
>
> Anyway, I was hoping to try to see if I could set up my own java project
> in
> its own directory, and I tried to figure out the steps.
>
> First of all, I created what I think is a subwiki.  From what I can tell,
> the
> only thing that actually makes a page a subwiki is that other pages use it
> as
> a namespace.  Is that right?  Anyway, I created a page called FooSuite,
> and I
> made a class path to where the new project was going to be by adding !path
> C:\myjava\foo.  Since I was going to copy and paste code from the division
> example, I also created a new test page called FooSuite.DivideTest.
>
> Next, on the new test page, I pasted the following example markup
> (changing
> "eg" to "eg2" since that's the package name I intended to use):
>
> |eg2.Division|
> |Numerator|Denominator|Quotient?|
> |10       |2          |5        |
> |12.6     |3          |4.2      |
> |100      |4          |33       |
>
> At this point, I expected to see a Test button that would produce an error
> when clicked, but no button appeared.  I looked around and thought
> perhaps, I
> needed to add a test fixture listing for eg2.Division as a test fixture in
> FooSuite, so I tried adding !fixture eg2.division to FooSuite, but still
> no
> luck.  Next, I tried creating the actual java code to be called.  Still, I
> have no Test button to try to run the test with.
>
> What have I missed?

Press the properties button. You need to add the test property;
it will not guess.

John Roth
>
> Thanks,
>
> - Steve J.


Report this thread to moderator Post Follow-up to this message
Old Post
John Roth
04-19-05 08:57 PM


Re: Fitnesse confusion
On Tue, 19 Apr 2005 07:22:01 -0500, "John Roth" <newsgroups@jhrothjr.com>
wrote:

... 
>
>Press the properties button. You need to add the test property;
>it will not guess.

Thanks John, that helped.  I had been expecting to see any such button while
editing, not while viewing, so I didn't look at those buttons to see what th
ey
were.

So now, I do have a test button, and now I just have to figure out why it sa
ys
"Could not find fixture eg2.Division since I did create it, and I have the
classpath set for the suite page.

Report this thread to moderator Post Follow-up to this message
Old Post
Steve Jorgensen
04-19-05 08:57 PM


Re: Fitnesse confusion
On Tue, 19 Apr 2005 07:39:55 -0700, Steve Jorgensen <nospam@nospam.nospam>
wrote:

...
>So now, I do have a test button, and now I just have to figure out why it s
ays
>"Could not find fixture eg2.Division since I did create it, and I have the
>classpath set for the suite page.

OK, I got that one too now.  I just hadn't understood where Eclipse was
putting the .class files.  Now, I'm on to the next error, but I think I'm
finding my way now.  I guess I just needed to understand about the Propertie
s
button.

Report this thread to moderator Post Follow-up to this message
Old Post
Steve Jorgensen
04-19-05 08:57 PM


Re: Fitnesse confusion
On Tue, 19 Apr 2005 07:53:22 -0700, Steve Jorgensen
<nospam@nospam.nospam> wrote:

>On Tue, 19 Apr 2005 07:39:55 -0700, Steve Jorgensen <nospam@nospam.nospam>
>wrote:
>
>... 
>
>OK, I got that one too now.  I just hadn't understood where Eclipse was
>putting the .class files.  Now, I'm on to the next error, but I think I'm
>finding my way now.  I guess I just needed to understand about the Properti
es
>button.

The best place to get help on FitNesse is the fitnesse yahoogroup.
See: http://groups.yahoo.com/group/fitnesse/



-----
Robert C. Martin (Uncle Bob)  | email: unclebob@objectmentor.com
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716


"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo

Report this thread to moderator Post Follow-up to this message
Old Post
Robert C. Martin
04-20-05 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Extreme Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:16 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.