Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

fitnesse

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3722
  • Category: Testing
  • Founded: Feb 26, 2003
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 15343 - 15372 of 20134   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#15343 From: Robert Martin <UncleBob@...>
Date: Fri Apr 2, 2010 2:05 pm
Subject: Re:Is it possible to define the "Special Variables" in one of the "Spec
rmartinoma
Send Email Send Email
 
> Is it possible to define the "Special Variables" in one of the "Spec
> Posted by: "jroets01" jroets@...   jroets01
> Wed Mar 31, 2010 10:54 pm (PDT)
>
> We have been defining our special variables (i.e. TEST_SYSTEM, TEST_RUNNER,
etc) in our root. This way we don't have to re-define them on each and every
test page, adhering to the DRY principle; and test authors don't have to concern
themselves with this detail.
>
> Now, we want to introduce a different test system/runner for a new suite. It
seems !define is not allowed on any of the special pages (SuiteSetUp, SetUp,
PageHeader). Am I right?

Probably.
>
> If I am right, then to continue to adhere to the DRY principle, I need to
create my own special configuration pages, say DotNetFitDefine and
DotNetSlimDefine, and then explicitly include the appropriate one in every test.
It seems stupid to me to have to invent this mechanism when I consider what I
want to do to be shared set-up and I would like to put the definitions in a
set-up page so that test authors don't have to be bothered with it.
>
> Am I missing something?

Possibly.  Have you considered creating two parent pages, one for each suite. 
You can put the TEST_SYSTEM and TEST_RUNNER veriables in those two parent pages
and then hang the two different suites below them.




----
Robert C. Martin (Uncle Bob)  | email: unclebob@...
Object Mentor Inc.            | blog:  blog.objectmentor.com
The Agile Transition Experts  | web:   www.objectmentor.com
847.249.4209                  | twitter: unclebobmartin

#15344 From: Robert Martin <UncleBob@...>
Date: Fri Apr 2, 2010 2:06 pm
Subject: Re:How to run FitNesse Test from Command Line
rmartinoma
Send Email Send Email
 
> How to run FitNesse Test from Command Line
> Posted by: "pranitpatel" pranitpatel@...   pranitpatel
> Wed Mar 31, 2010 10:55 pm (PDT)
>
>
>
> Hi There,
>
> I am trying to auto start my fitnesee tests as soon as new build is deployed
on test machine. To this I am using CC.Net and Fintesse/SLIM. I have
successfully configure CC.Net so it can install new build but now I need help in
order to start my test from cruise control (i.e. command line).
>
> I have tried using Runner.exe as follow but no luck:
>
> <path to slim>\Runner.exe -a <config file> -r fitSharp.Slim.Service.Runner,
<loc to fitSharp.dll> <location to test dlls> 8086
>
> But the above comand line does not work.
>
> Thank you for your help.

All the old Runners are obsolete.  Use the -c command line argument instead. 
See User Guide:

FitNesse.UserGuide.ControllingFitnesseFromTheCommandLine


----
Robert C. Martin (Uncle Bob)  | email: unclebob@...
Object Mentor Inc.            | blog:  blog.objectmentor.com
The Agile Transition Experts  | web:   www.objectmentor.com
847.249.4209                  | twitter: unclebobmartin

#15345 From: Robert Martin <UncleBob@...>
Date: Fri Apr 2, 2010 2:11 pm
Subject: Re:Slim Protocol Version mismatch with CSlim
rmartinoma
Send Email Send Email
 
> Slim Protocol Version mismatch with CSlim
> Posted by: "rodneymorris75" rodney.morris@...   rodneymorris75
> Wed Mar 31, 2010 11:06 pm (PDT)
>
> I'm using FitNesse with CSlim (Doug Bradbury's CSlim -
http://github.com/dougbradbury/cslim). Works fairly well, too.
>
> Today I tried the newest version of the FitNesse server (20100303) with the
latest version of CSlim and there is a protocol version mismatch. CSlim is still
in version V0.0, but FitNesse wants version V0.1.
>
> Can someone tell me if a new version of CSlim that supports V0.1 is coming
soon?
>
> In the meantime, I guess I'll have to use version 20091121.
>
> Thanks in advance.
>
> Rodney

Yes, we're going to have to update CSlim pretty soon.

The protocol error is a warning.  Certain features that are now supported by
FitNesse are not yet supported by CSlim.  These features are documented here:
FitNesse.UserGuide.SliM.SlimProtocol.  So long as you do not use those features,
the old version of CSlim will work for you.  But you'll have to tolerate the
warnings.

----
Robert C. Martin (Uncle Bob)  | email: unclebob@...
Object Mentor Inc.            | blog:  blog.objectmentor.com
The Agile Transition Experts  | web:   www.objectmentor.com
847.249.4209                  | twitter: unclebobmartin

#15346 From: Robert Martin <UncleBob@...>
Date: Fri Apr 2, 2010 2:14 pm
Subject: Re:How to include multiple class for one script table
rmartinoma
Send Email Send Email
 
> How to include multiple class for one script table
> Posted by: "pranitpatel" pranitpatel@...   pranitpatel
> Wed Mar 31, 2010 11:07 pm (PDT)
>
> Hi All,
>
> I am using SetUp and ScnearioLibary to modularize my test better. It's been
working great but now I am having difficulty from fixture side since its not
wise to put all fixtures in one class. So, we started to refactor our fixture
class in two, so my script table is using fixtures from both class.

Good!

> But this throw exception. Let me explain this in more detail by following:
>
> My SetUp Page:
> ==============
> !|import |
> |Test.CAT.Acceptance.System|
> |FAT.Acceptance.Tests|
> |FAT.Acceptance.Common|
>
> !|Script |SystemAutoAcceptanceTest |
> !|Script |TestClass1|
> !|Script |TestClass1|

You can't do this.  Each 'script' directive overrides the previous one.  What
you want to do instead is use Library tables.

See the User Guide FitNesse.UserGuide.SliM.LibraryTable


----
Robert C. Martin (Uncle Bob)  | email: unclebob@...
Object Mentor Inc.            | blog:  blog.objectmentor.com
The Agile Transition Experts  | web:   www.objectmentor.com
847.249.4209                  | twitter: unclebobmartin

#15347 From: Robert Martin <UncleBob@...>
Date: Fri Apr 2, 2010 2:18 pm
Subject: Re:Can not run acceptance test using Fitnesse: Please help
rmartinoma
Send Email Send Email
 
> Can not run acceptance test using Fitnesse: Please help
> Posted by: "Rumi" rezaulaziz@...   rezaulaziz
> Wed Mar 31, 2010 11:11 pm (PDT)
>
> I need some support to run accepatance test using Fitness tool. The purpose is
to run this acceptance test using the column fixture on the MyTriangle code
>
> I have created a java class called "MyTriangle" . Please see the attached file
for the java code.
>
> I have also created a Fitnesse table using the Fitnesse: See the following
>
> !path C:\Documents and Settings\raziz\workspace\Triangle\bin // this where
MyTriangle.class file resides
>
> !path fitnesse.jar
>
> import fit.ColumnFixture;

You don't want that import statement.  It doesn't do anything.
>
> |MyTriangle|
> |side1|side2|side3|isTraingle?|isEqulateral?|isScalene?|isIsosceles?|
> |3|2|4|True|False|True|False|
> |1|1|1|False|False|False|False|
> |2|2|3|False|True|False|True|
>
> When I run this test it says that "Class MyTriangle is not a fixture". Do I
need to write any fixture code ? should I write this fixture code in the
Fitnesse ? Is MyTriangle is the fixture code? Can you please suggest me ?
>
> MyTriangle.java :
>
> public class MyTriangle {
> int side1;
> int side2;
> int side3;

MyTriangle needs to derive from ColumnFixture.  The variables need to be public.

I suggest you study the User Guide FitNesse.UserGuide.FitTableStyles


----
Robert C. Martin (Uncle Bob)  | email: unclebob@...
Object Mentor Inc.            | blog:  blog.objectmentor.com
The Agile Transition Experts  | web:   www.objectmentor.com
847.249.4209                  | twitter: unclebobmartin

#15348 From: Gregor Gramlich <gramlich@...>
Date: Fri Apr 2, 2010 4:52 pm
Subject: Re: Re:Overriding Variable definitions from outside of FitNesse
gregorgramlich
Send Email Send Email
 
Hi Uncle Bob,

the current implementation makes !define override a system property.

This is also documented in

Is there a way to do it the other way around, i.e. define a default value on the page which is only used if the system property was not set?

Gregor




2010/4/2 Robert Martin <UncleBob@...>
 

> Overriding Variable definitions from outside of FitNesse
> Posted by: "arnaud.baillly" abailly@... arnaud.baillly
> Wed Mar 31, 2010 7:42 am (PDT)


>
>
>
> Hello,
> I would like to be able to run a bunch of fitnesse tests through maven using the trinidad plugin. This works OK but I have one concern: My test pages contain references to classpath entries which are absolute but of course if I want to store my pages with my code source and be able to check out everything in an arbitrary directory (on an arbitrary system), I would like to make my classpaht entries somehow relative, pointing to an uber-jar for example in Java or to a directory relative to some basedir.
>
> I can imagine solving this issue if Fitnesse is able to interpret environment variables and expand them within its own variables system, but I could not find any information on this in the UserGuide. Maybe I missed something...
>
> What would you advise me to do? More generally, what is the right approach to this issue?

In FitNesse, if you say ${ENVVAR} where ENVVAR is an environment variable, it will replace it with the value of the environment variable.


----
Robert C. Martin (Uncle Bob) | email: unclebob@...
Object Mentor Inc. | blog: blog.objectmentor.com
The Agile Transition Experts | web: www.objectmentor.com
847.249.4209 | twitter: unclebobmartin



#15349 From: Gojko Adzic <gojko-yahoolist@...>
Date: Sat Apr 3, 2010 1:11 am
Subject: specification by example and agile acceptance testing workshops
gojko_lastname
Send Email Send Email
 
Hi,

I'm doing a mini-European tour with workshops this spring, so I'll be
running my Hands-on agile acceptance testing workshop in Germany,
Belgium and the UK in April and May. The workshop combines an
introduction to agile acceptance testing and specification by example, a
set of exercises to help you get started with FitNesse and a full day of
working on realistic domain examples taken from your recent projects or
a future phases of projects.

Here are the dates:

      * Berlin, Germany, April 19-21
      * London, UK, May 10-12
      * Mechelen, Belgium, May 20-21

If you're interested in attending, drop me an e-mail and I'll put you in
touch with the local organisers.


Best regards,

--
Gojko Adzic
http://gojko.net
Acceptance Testing and TDD workshops http://neuri.co.uk/training

#15350 From: Rezaul Aziz <rezaulaziz@...>
Date: Fri Apr 2, 2010 3:30 am
Subject: Re: Can not run Fitnesse acceptance test : Please help
rezaulaziz
Send Email Send Email
 
Thanks Gregor,
 
I will try your suggestion. Thanks much for the response!
 
regrads
 
rumi

--- On Thu, 4/1/10, Gregor Gramlich <gramlich@...> wrote:

From: Gregor Gramlich <gramlich@...>
Subject: Re: [fitnesse] Can not run Fitnesse acceptance test : Please help
To: fitnesse@yahoogroups.com
Cc: rezaulaziz@...
Date: Thursday, April 1, 2010, 1:53 PM

Hi Rumi,

if you use the Fit or FitLibrary testrunner (default is Fit), you will
have to extend ColumnFixture.
http://fitnesse.org/FitNesse.UserGuide.ColumnFixture

Declare the side fields public. Apart from that your setup might
already work - if you got the "Class MyTriangle is not a fixture"
message, FitNesse could already find your Class, but as said, it needs
to extend ColumnFixture.

If you use the Slim testrunner, you can keep MyTriangle a simple
object (Pojo), but you will have to implement setter methods.

http://fitnesse.org/FitNesse.UserGuide.SliM.DecisionTable

Gregor



2010/4/1 Rumi <rezaulaziz@...>
>
>
>
> I need some support to run acceptance test using Fitness tool. The purpose is to run this acceptance test using the column fixture on the MyTriangle code
>
> I have created a java class called "MyTriangle" . Please see the attached file for the java code.
>
> I have also created a Fitnesse table using Fitnesse: See the following
>
> !path C:\Documents and Settings\raziz\workspace\Triangle\bin // this where MyTriangle.class file resides
>
> !path fitnesse.jar
>
> import fit.ColumnFixture;
>
> |MyTriangle|
> |side1|side2|side3|isTraingle?|isEqulateral?|isScalene?|isIsosceles?|
> |3|2|4|True|False|True|False|
> |1|1|1|False|False|False|False|
> |2|2|3|False|True|False|True|
>
> When I run this test it says that "Class MyTriangle is not a fixture". Do I need to write any fixture code ? should I write this fixture code (with set methods) in the Fitnesse ? Is MyTriangle is the fixture code? Can you please suggest me ?
>
> MyTriangle.java
>
> public class MyTriangle {
> int side1;
> int side2;
> int side3;
>
>
> public MyTriangle()
> {
>
> }
>
> public MyTriangle(int side1, int side2, int side3)
> {
> this.side1=side1;
> this.side2=side2;
> this.side3=side3;
> }
> /** evaluate if a triangle is physically possible*/
> public boolean isTriangle()
> {
> if(side1 <=0 ||side2 <= 0 ||side3 <=0)
> return false;
> else if(side1+ side2- side3 <=0 || side1+side3- side2 <=0 || side2+side3- side1 <=0 )
> return false;
> else
> return true;
> }
>
> public boolean isEquilateral()
> {// (no two sides are the same length)
>
> if (isTriangle())
> {
> if(side1==side2 || side1==side3 || side1==side3)
> return false;
> else
> return true;
> }
> else
> return false;
> }
>
> public boolean isIsosceles()
> { // (exactly two sides are the same length)
> if (isTriangle())
> {
> if ((side1 == side2) || (side1 == side3) || (side2 == side3))
> return true;
> else
> return false;
> }
> else
> return false;
>
> }
> public boolean isScalene()
> {// (all three sides are the same length).
> if (isTriangle())
> {
> if ((side1==side2) && (side1==side3))
> return true;
> else
> return false;
> }
> else
> return false;
> }
>
> }
>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fitnesse/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/fitnesse/join
    (Yahoo! ID required)

<*> To change settings via email:
    fitnesse-digest@yahoogroups.com
    fitnesse-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    fitnesse-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/



#15351 From: Etienne Charignon <etienne.charignon@...>
Date: Fri Apr 2, 2010 12:11 pm
Subject: Re: Re: Overriding Variable definitions from outside of FitNesse
ALCarrez
Send Email Send Email
 
I don't know if your question was directed to me, but yes I do put the full fitnesse tree into subversion (except the zips).

You can also make an eclipse projects on that tree what make me able to search for strings and refactor the table for example.

Etienne

2010/4/1 arnaud.baillly <abailly@...>
 


Thanks a lot! Yes, the replacement seems a good way to go, easy to do as part of the checkout/build. Are you versionning your pages along with your code ?

Regards,
Arnaud



--- In fitnesse@yahoogroups.com, "arnaud.baillly" <abailly@...> wrote:
>
> Hello,
> I would like to be able to run a bunch of fitnesse tests through maven using the trinidad plugin. This works OK but I have one concern: My test pages contain references to classpath entries which are absolute but of course if I want to store my pages with my code source and be able to check out everything in an arbitrary directory (on an arbitrary system), I would like to make my classpaht entries somehow relative, pointing to an uber-jar for example in Java or to a directory relative to some basedir.
>
> I can imagine solving this issue if Fitnesse is able to interpret environment variables and expand them within its own variables system, but I could not find any information on this in the UserGuide. Maybe I missed something...
>
> What would you advise me to do? More generally, what is the right approach to this issue?
>
> Best regards,
> Arnaud Bailly
>




--
Étienne Charignon
Consultant Valtech Technology
06 81 81 99 84
http://etienne.charignon.free.fr


#15352 From: Leela Padmaja <leela9885@...>
Date: Fri Apr 2, 2010 12:19 pm
Subject: Variables in DOFIXTURE
leela9885@...
Send Email Send Email
 
Hi,

Can you please let me know how to use variables in DOFIXTURE??? 

Example: CurrentBalance I will query from database and store in a variable. And will do some transaction and again I will get balance to compare the results.


|Get Current balance|>>currbal1|
|Deposit|5000|in my account|
|check|Get Current balance is |currbal1+5000|

Is it possible to do?? Please help me

I am using Java Fit Library. 

Thanks,
Leela


#15353 From: "ande_kastanis" <ande.kastanis@...>
Date: Fri Apr 2, 2010 7:28 pm
Subject: !include vs. a SetUp page
ande_kastanis
Send Email Send Email
 
Some of the tests I've been working on lately seem to execute slower than
before.

I've recently started using SetUp pages so assure that a test has the correct
preconditions.

Here's what I've cobbled together, running the same suite of tests, w/ different
"SetUp" schemes.

1. Removed the SetUp page from the Suite.  Tests assumed preconditions are
already met.
     Execution time(in minutes): 4:58

2. Used a SetUp page to set the expected preconditions.
     Execution time(in minutes): 7:27

3. Used a SetUp page that did absolutely nothing.  Tests assumed preconditions
are already met.
     Execution time(in minutes): 7:05

4. Renamed SetUp page to InitializeTest, and injected an include to the
"InitializeTest" page at the start of each test.  Uncommented the calls in the
SetUp page that set the expected preconditions.
     Execution time(in minutes): 5:00

It seems like I'm experiencing a 50% performance hit by using SetUp pages.

Is this typical?  Does the performance of a SetUp page depend on the depth of
the test tree? (It's typical for our tests to be 6-8 levels deep in the page
hierarchy.)

I'm currently running version 20100103.

Thoughts?
-Ande

#15354 From: Shahid Bukhari <sbukhari@...>
Date: Fri Apr 2, 2010 11:37 pm
Subject: RE: parameter passing from command line
sbtesco1
Send Email Send Email
 
great! I'll try this - thanks, Lars

Shahid


To: fitnesse@yahoogroups.com
From: lars.vonk@...
Date: Fri, 2 Apr 2010 00:05:46 +0200
Subject: Re: [fitnesse] parameter passing from command line

 
You can pass parameters in via the commandline with system properties like:

java -DBROWSERNAME=chrome -jar fitnesse.jar

You can then access this value in a page using:

${BROWSERNAME}


Hopes this helps.

Lars

On Thu, Apr 1, 2010 at 6:44 PM, sbtesco1 <sbukhari@hotmail.com> wrote:
 
Does anyone know how to pass a parameter if I were to run FitNesse from the command line?

So currently I have values like: !define BROWSERNAME {*chrome} which is set in root. I would like to somehow do this from command line/or from Ant/Cruise.

Thanks,

Shahid






Get a new e-mail account with Hotmail – Free. Sign-up now.

#15355 From: "Subodh" <subodh_brahmi@...>
Date: Mon Apr 5, 2010 1:51 am
Subject: manipulating XMLs created and using conditions
subodh_brahmi
Send Email Send Email
 

Hi All,

 

We have customized fitnesse to suite our project automation needs, which is an API testing project and request/response XMLs are being used to test the JAVA API.

 

Now before we send a request XML, we create few XML using fitnesse script/fixtures and then after the XMLs are created, we send the request XML through fitnesse to that API.

 

Now my issue is that the created XMLs need to be modified according to the condition, like if a particular condition is true then it should have few tags and if that is not true that it should have other set of tags. So can we do it using fitnesse? Like we use conditions in VB script is my question.

 

Thanks,

Subodh


#15356 From: "dwtebriel" <DWTebriel@...>
Date: Mon Apr 5, 2010 1:27 pm
Subject: Integration Test Datasource
dwtebriel
Send Email Send Email
 
<p>Hey all,</p>

<p>I'm trying to figure out an acceptable way to run my suite of tests against a
particular system. Presently I'm running .net C# 3.5 with SQL Server 2008
Enterprise back end. Also using the latest FitSharp slim runner and FitNesse
server.</p>

<p>On the test server, I have an instance of Sql Server Express installed so
that I can use and attach a local mdf file. The process that I'm attempting to
do is as follows:</p>
<ul>
<li>Suite Setup - Run script to setup tables on a test database. The connection
string will attach the local database at this time.</li>
<li>Setup - Run wiki setup page to throw a bunch of data at import code
fixtures. These code fixtures just calls insert a bunch of times on my domain
service layer to populate an empty database with test data defined by
FitNesse.</li>
<li>Operate - Run a bunch of operations on the system</li>
<li>Check - Do a bunch of retrievals on the domain service asserting its
data</li>
<li>Tear Down - Delete data in all tables of test database</li>
<li>Suite Tear Down - Drop all tables and detach database</li>
</ul>

<p>I'm really curious what others have to say about this approach and if anyone
else has a specific process that they have found they liked.</p>

#15357 From: "jroets01" <jroets@...>
Date: Mon Apr 5, 2010 1:44 pm
Subject: Re: Can I have active content in my test result table?
jroets01
Send Email Send Email
 
When I try the "Add Link" approach with the latest fitSharp libraries, I get
this exception:

System.MissingMethodException: Method not found: 'fitSharp.Fit.Model.TestStatus
fit.Fixture.get_TestStatus()'

I do have the fitSharp fit.dll in my path.

What could I doing wrong?

--- In fitnesse@yahoogroups.com, Mike Stockdale <jediwhale@...> wrote:
>
> DoFixture looks for two kinds of methods.  The most common is for
> methods on the fixture or the system under test with the name made up of
> the alternating cells:
>
> |method|x|name|y|
>
> But it also looks for methods on the fixture with the name as the first
> cell and a single parameter type of 'Parse'.  This is how the DoFixture
> keywords are implemented.
>
> |check|...|...|
> |reject|...|...|
>
> But you can also write your own keyword methods like the 'print link'
> example.  The method is passed the 'Parse' object for the cells of the
> row in which it appears.
>
> The 'add link' can be done with FitNesse.NET - the syntax will be
> slightly different.
>
>
> On 2010-03-29 10:23, jroets01 wrote:
> >
> > The approach with "PrintLink" worked for me. Could someone explain the
> > underpinnings of that approach? I was not aware of FitNesse calling
> > methods that take a "Parse" object. What is that?
> >
> > The other approach, using "AddLink" and the summary fixture, did not
> > work for me. I'm writing fixtures in .NET, but not yet using fitSharp.
> > Could that be why?
> >
> > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > "sch_max" <sch_max@> wrote:
> > >
> > > Another way would be like this:
> > >
> > > using fitlibrary;
> > > using fit;
> > > namespace fitSharp.Samples {
> > > public class LinkSample: DoFixture {
> > > public void PrintLink(Parse theCells) {
> > > theCells.SetBody("<a
> > > href=\"somewhere\">somewhere</a>");
> > > }
> > > }
> > > }
> > >
> > > !|fitSharp.Samples.LinkSample|
> > > |print link|
> > >
> > >
> > > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > Mike Stockdale <jediwhale@> wrote:
> > > >
> > > > Here's a simple way:
> > > >
> > > > using fitlibrary;
> > > > namespace fitSharp.Samples {
> > > > public class SummarySample: DoFixture {
> > > > public void AddLink() {
> > > > TestStatus.Summary["mylink"] = "<a
> > > > href=\"somewhere\">somewhere</a>";
> > > > }
> > > > }
> > > > }
> > > >
> > > > Then the link will appear in the Summary fixture:
> > > >
> > > > !|fitSharp.Samples.SummarySample|
> > > > |add link|
> > > >
> > > > |summary|
> > > >
> > > >
> > > > mrjorish wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > We have some tests that sometimes produce a lot of data, especially
> > > > > when it goes wrong. I would like to either add as attachment or
> > a link
> > > > > to external (more) data in my test tables.
> > > > >
> > > > > I have tried to used wiki style (using [[abc][def]] ) html code
> > (using
> > > > > <a href=...) plain links (using http://something. something
> > > > > <http://something.something <http://something.something>>) etc,
> > but whatever I do the text shows up
> > > > > just "as-is" and not interpreted as a web-link.
> > > > >
> > > > > Is it possible to do what I want?
> > > > >
> > > > > By the way, I am running .Net version of FitNesse on Windows
> > environment.
> > > > >
> > > > > Regards,
> > > > > Jorish
> > > > >
> > > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Mike Stockdale
> > > >
> > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com>>
> > > >
> > >
> >
> >
>
> --
> Cheers,
> Mike Stockdale
>
> /fit/Sharp <http://www.syterra.com/FitSharp.html>
> FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html>
> Syterra Software Inc. <http://www.syterra.com>
>

#15358 From: Mike Stockdale <jediwhale@...>
Date: Mon Apr 5, 2010 3:31 pm
Subject: Re: Re: Can I have active content in my test result table?
jediwhale
Send Email Send Email
 
Make sure your fixture is built with the latest fitSharp dlls. Sounds like a dll version mismatch.

On 2010-04-05 07:44, jroets01 wrote:
 

When I try the "Add Link" approach with the latest fitSharp libraries, I get this exception:

System.MissingMethodException: Method not found: 'fitSharp.Fit.Model.TestStatus fit.Fixture.get_TestStatus()'

I do have the fitSharp fit.dll in my path.

What could I doing wrong?

--- In fitnesse@yahoogroups.com, Mike Stockdale <jediwhale@...> wrote:
>
> DoFixture looks for two kinds of methods. The most common is for
> methods on the fixture or the system under test with the name made up of
> the alternating cells:
>
> |method|x|name|y|
>
> But it also looks for methods on the fixture with the name as the first
> cell and a single parameter type of 'Parse'. This is how the DoFixture
> keywords are implemented.
>
> |check|...|...|
> |reject|...|...|
>
> But you can also write your own keyword methods like the 'print link'
> example. The method is passed the 'Parse' object for the cells of the
> row in which it appears.
>
> The 'add link' can be done with FitNesse.NET - the syntax will be
> slightly different.
>
>
> On 2010-03-29 10:23, jroets01 wrote:
> >
> > The approach with "PrintLink" worked for me. Could someone explain the
> > underpinnings of that approach? I was not aware of FitNesse calling
> > methods that take a "Parse" object. What is that?
> >
> > The other approach, using "AddLink" and the summary fixture, did not
> > work for me. I'm writing fixtures in .NET, but not yet using fitSharp.
> > Could that be why?
> >
> > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > "sch_max" <sch_max@> wrote:
> > >
> > > Another way would be like this:
> > >
> > > using fitlibrary;
> > > using fit;
> > > namespace fitSharp.Samples {
> > > public class LinkSample: DoFixture {
> > > public void PrintLink(Parse theCells) {
> > > theCells.SetBody("<a
> > > href=\"somewhere\">somewhere</a>");
> > > }
> > > }
> > > }
> > >
> > > !|fitSharp.Samples.LinkSample|
> > > |print link|
> > >
> > >
> > > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > Mike Stockdale <jediwhale@> wrote:
> > > >
> > > > Here's a simple way:
> > > >
> > > > using fitlibrary;
> > > > namespace fitSharp.Samples {
> > > > public class SummarySample: DoFixture {
> > > > public void AddLink() {
> > > > TestStatus.Summary["mylink"] = "<a
> > > > href=\"somewhere\">somewhere</a>";
> > > > }
> > > > }
> > > > }
> > > >
> > > > Then the link will appear in the Summary fixture:
> > > >
> > > > !|fitSharp.Samples.SummarySample|
> > > > |add link|
> > > >
> > > > |summary|
> > > >
> > > >
> > > > mrjorish wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > We have some tests that sometimes produce a lot of data, especially
> > > > > when it goes wrong. I would like to either add as attachment or
> > a link
> > > > > to external (more) data in my test tables.
> > > > >
> > > > > I have tried to used wiki style (using [[abc][def]] ) html code
> > (using
> > > > > <a href=...) plain links (using http://something. something
> > > > > <http://something.something <http://something.something>>) etc,
> > but whatever I do the text shows up
> > > > > just "as-is" and not interpreted as a web-link.
> > > > >
> > > > > Is it possible to do what I want?
> > > > >
> > > > > By the way, I am running .Net version of FitNesse on Windows
> > environment.
> > > > >
> > > > > Regards,
> > > > > Jorish
> > > > >
> > > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Mike Stockdale
> > > >
> > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com>>
> > > >
> > >
> >
> >
>
> --
> Cheers,
> Mike Stockdale
>
> /fit/Sharp <http://www.syterra.com/FitSharp.html>
> FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html>
> Syterra Software Inc. <http://www.syterra.com>
>


--
Cheers,
Mike Stockdale

fitSharp
FitNesse.NET
Syterra Software Inc.

#15359 From: "jroets01" <jroets@...>
Date: Mon Apr 5, 2010 5:02 pm
Subject: Re: Can I have active content in my test result table?
jroets01
Send Email Send Email
 
Ok. It was a runtime mis-config on my part. Thanks for the hint.

However... Now that I have overcome that, I get a NullReferenceException from
Fixture.TestStatus:

System.NullReferenceException: Object reference not set to an instance of an
object.
    at fit.Fixture.get_TestStatus()

My calling code is this:
   TestStatus.Summary["mytext"] = "some text";

I looked at the source for Fixture.cs and I see that its TestStatus property
references a "Processor"; and I verified that Processor is null.

Is there something else I am missing?

--- In fitnesse@yahoogroups.com, Mike Stockdale <jediwhale@...> wrote:
>
> Make sure your fixture is built with the latest fitSharp dlls. Sounds
> like a dll version mismatch.
>
> On 2010-04-05 07:44, jroets01 wrote:
> >
> > When I try the "Add Link" approach with the latest fitSharp libraries,
> > I get this exception:
> >
> > System.MissingMethodException: Method not found:
> > 'fitSharp.Fit.Model.TestStatus fit.Fixture.get_TestStatus()'
> >
> > I do have the fitSharp fit.dll in my path.
> >
> > What could I doing wrong?
> >
> > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > Mike Stockdale <jediwhale@> wrote:
> > >
> > > DoFixture looks for two kinds of methods. The most common is for
> > > methods on the fixture or the system under test with the name made
> > up of
> > > the alternating cells:
> > >
> > > |method|x|name|y|
> > >
> > > But it also looks for methods on the fixture with the name as the first
> > > cell and a single parameter type of 'Parse'. This is how the DoFixture
> > > keywords are implemented.
> > >
> > > |check|...|...|
> > > |reject|...|...|
> > >
> > > But you can also write your own keyword methods like the 'print link'
> > > example. The method is passed the 'Parse' object for the cells of the
> > > row in which it appears.
> > >
> > > The 'add link' can be done with FitNesse.NET - the syntax will be
> > > slightly different.
> > >
> > >
> > > On 2010-03-29 10:23, jroets01 wrote:
> > > >
> > > > The approach with "PrintLink" worked for me. Could someone explain
> > the
> > > > underpinnings of that approach? I was not aware of FitNesse calling
> > > > methods that take a "Parse" object. What is that?
> > > >
> > > > The other approach, using "AddLink" and the summary fixture, did not
> > > > work for me. I'm writing fixtures in .NET, but not yet using
> > fitSharp.
> > > > Could that be why?
> > > >
> > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com> <mailto:fitnesse%40yahoogroups.com>,
> > > > "sch_max" <sch_max@> wrote:
> > > > >
> > > > > Another way would be like this:
> > > > >
> > > > > using fitlibrary;
> > > > > using fit;
> > > > > namespace fitSharp.Samples {
> > > > > public class LinkSample: DoFixture {
> > > > > public void PrintLink(Parse theCells) {
> > > > > theCells.SetBody("<a
> > > > > href=\"somewhere\">somewhere</a>");
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > > !|fitSharp.Samples.LinkSample|
> > > > > |print link|
> > > > >
> > > > >
> > > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com> <mailto:fitnesse%40yahoogroups.com>,
> > > > Mike Stockdale <jediwhale@> wrote:
> > > > > >
> > > > > > Here's a simple way:
> > > > > >
> > > > > > using fitlibrary;
> > > > > > namespace fitSharp.Samples {
> > > > > > public class SummarySample: DoFixture {
> > > > > > public void AddLink() {
> > > > > > TestStatus.Summary["mylink"] = "<a
> > > > > > href=\"somewhere\">somewhere</a>";
> > > > > > }
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Then the link will appear in the Summary fixture:
> > > > > >
> > > > > > !|fitSharp.Samples.SummarySample|
> > > > > > |add link|
> > > > > >
> > > > > > |summary|
> > > > > >
> > > > > >
> > > > > > mrjorish wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > We have some tests that sometimes produce a lot of data,
> > especially
> > > > > > > when it goes wrong. I would like to either add as attachment or
> > > > a link
> > > > > > > to external (more) data in my test tables.
> > > > > > >
> > > > > > > I have tried to used wiki style (using [[abc][def]] ) html code
> > > > (using
> > > > > > > <a href=...) plain links (using http://something. something
> > > > > > > <http://something.something <http://something.something>
> > <http://something.something <http://something.something>>>) etc,
> > > > but whatever I do the text shows up
> > > > > > > just "as-is" and not interpreted as a web-link.
> > > > > > >
> > > > > > > Is it possible to do what I want?
> > > > > > >
> > > > > > > By the way, I am running .Net version of FitNesse on Windows
> > > > environment.
> > > > > > >
> > > > > > > Regards,
> > > > > > > Jorish
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > Cheers,
> > > > > > Mike Stockdale
> > > > > >
> > > > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>
> > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>>
> > > > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>
> > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>>
> > > > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com>
> > > > <http://www.syterra.com <http://www.syterra.com>>>
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > > --
> > > Cheers,
> > > Mike Stockdale
> > >
> > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > Syterra Software Inc. <http://www.syterra.com <http://www.syterra.com>>
> > >
> >
> >
>
> --
> Cheers,
> Mike Stockdale
>
> /fit/Sharp <http://www.syterra.com/FitSharp.html>
> FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html>
> Syterra Software Inc. <http://www.syterra.com>
>

#15360 From: Tim Walker <walketim@...>
Date: Mon Apr 5, 2010 7:26 pm
Subject: Fit/FitNesse, BDD Tools?
tbone9992
Send Email Send Email
 
Just looking at the wikipedia page for BDD and did not see FIT/FItNesse...

http://en.wikipedia.org/wiki/Behavior_Driven_Development

Kind of surprised by that. Thoughts?

Tim

#15361 From: Mike Stockdale <jediwhale@...>
Date: Mon Apr 5, 2010 7:29 pm
Subject: Re: Re: Can I have active content in my test result table?
jediwhale
Send Email Send Email
 
Where are you making the call?  The Processor is populated when FitNesse runs the fixture, e.g.

|summary sample|
|add link|

|summary|

Here's my fixture code:

    public class SummarySample: DoFixture {

        public void AddLink() {
            TestStatus.Summary["mylink"] = "<a href=\"somewhere\">somewhere</a>";
        }
    }

You can't just create a fixture yourself without setting the Processor, in unit tests e.g. this is from ActionFixtureTest.cs

        [Test]
        public void TestStart()
        {
            table = BuildTable("ActionFixture");
            var fixture = new ActionFixture { Processor = new Service.Service(configuration) };
            fixture.DoTable(table);
            Assert.AreEqual(0, fixture.TestStatus.Counts.GetCount(TestStatus.Exception), table.ToString());
            Assert.IsNotNull(fixture.GetTargetObject());
        }


On 2010-04-05 11:02, jroets01 wrote:
 

Ok. It was a runtime mis-config on my part. Thanks for the hint.

However... Now that I have overcome that, I get a NullReferenceException from Fixture.TestStatus:

System.NullReferenceException: Object reference not set to an instance of an object.
at fit.Fixture.get_TestStatus()

My calling code is this:
TestStatus.Summary["mytext"] = "some text";

I looked at the source for Fixture.cs and I see that its TestStatus property references a "Processor"; and I verified that Processor is null.

Is there something else I am missing?

--- In fitnesse@yahoogroups.com, Mike Stockdale <jediwhale@...> wrote:
>
> Make sure your fixture is built with the latest fitSharp dlls. Sounds
> like a dll version mismatch.
>
> On 2010-04-05 07:44, jroets01 wrote:
> >
> > When I try the "Add Link" approach with the latest fitSharp libraries,
> > I get this exception:
> >
> > System.MissingMethodException: Method not found:
> > 'fitSharp.Fit.Model.TestStatus fit.Fixture.get_TestStatus()'
> >
> > I do have the fitSharp fit.dll in my path.
> >
> > What could I doing wrong?
> >
> > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > Mike Stockdale <jediwhale@> wrote:
> > >
> > > DoFixture looks for two kinds of methods. The most common is for
> > > methods on the fixture or the system under test with the name made
> > up of
> > > the alternating cells:
> > >
> > > |method|x|name|y|
> > >
> > > But it also looks for methods on the fixture with the name as the first
> > > cell and a single parameter type of 'Parse'. This is how the DoFixture
> > > keywords are implemented.
> > >
> > > |check|...|...|
> > > |reject|...|...|
> > >
> > > But you can also write your own keyword methods like the 'print link'
> > > example. The method is passed the 'Parse' object for the cells of the
> > > row in which it appears.
> > >
> > > The 'add link' can be done with FitNesse.NET - the syntax will be
> > > slightly different.
> > >
> > >
> > > On 2010-03-29 10:23, jroets01 wrote:
> > > >
> > > > The approach with "PrintLink" worked for me. Could someone explain
> > the
> > > > underpinnings of that approach? I was not aware of FitNesse calling
> > > > methods that take a "Parse" object. What is that?
> > > >
> > > > The other approach, using "AddLink" and the summary fixture, did not
> > > > work for me. I'm writing fixtures in .NET, but not yet using
> > fitSharp.
> > > > Could that be why?
> > > >
> > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com> <mailto:fitnesse%40yahoogroups.com>,
> > > > "sch_max" <sch_max@> wrote:
> > > > >
> > > > > Another way would be like this:
> > > > >
> > > > > using fitlibrary;
> > > > > using fit;
> > > > > namespace fitSharp.Samples {
> > > > > public class LinkSample: DoFixture {
> > > > > public void PrintLink(Parse theCells) {
> > > > > theCells.SetBody("<a
> > > > > href=\"somewhere\">somewhere</a>");
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > > !|fitSharp.Samples.LinkSample|
> > > > > |print link|
> > > > >
> > > > >
> > > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com> <mailto:fitnesse%40yahoogroups.com>,
> > > > Mike Stockdale <jediwhale@> wrote:
> > > > > >
> > > > > > Here's a simple way:
> > > > > >
> > > > > > using fitlibrary;
> > > > > > namespace fitSharp.Samples {
> > > > > > public class SummarySample: DoFixture {
> > > > > > public void AddLink() {
> > > > > > TestStatus.Summary["mylink"] = "<a
> > > > > > href=\"somewhere\">somewhere</a>";
> > > > > > }
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Then the link will appear in the Summary fixture:
> > > > > >
> > > > > > !|fitSharp.Samples.SummarySample|
> > > > > > |add link|
> > > > > >
> > > > > > |summary|
> > > > > >
> > > > > >
> > > > > > mrjorish wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > We have some tests that sometimes produce a lot of data,
> > especially
> > > > > > > when it goes wrong. I would like to either add as attachment or
> > > > a link
> > > > > > > to external (more) data in my test tables.
> > > > > > >
> > > > > > > I have tried to used wiki style (using [[abc][def]] ) html code
> > > > (using
> > > > > > > <a href=...) plain links (using http://something. something
> > > > > > > <http://something.something <http://something.something>
> > <http://something.something <http://something.something>>>) etc,
> > > > but whatever I do the text shows up
> > > > > > > just "as-is" and not interpreted as a web-link.
> > > > > > >
> > > > > > > Is it possible to do what I want?
> > > > > > >
> > > > > > > By the way, I am running .Net version of FitNesse on Windows
> > > > environment.
> > > > > > >
> > > > > > > Regards,
> > > > > > > Jorish
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > Cheers,
> > > > > > Mike Stockdale
> > > > > >
> > > > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>
> > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>>
> > > > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>
> > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>>
> > > > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com>
> > > > <http://www.syterra.com <http://www.syterra.com>>>
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > > --
> > > Cheers,
> > > Mike Stockdale
> > >
> > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > Syterra Software Inc. <http://www.syterra.com <http://www.syterra.com>>
> > >
> >
> >
>
> --
> Cheers,
> Mike Stockdale
>
> /fit/Sharp <http://www.syterra.com/FitSharp.html>
> FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html>
> Syterra Software Inc. <http://www.syterra.com>
>


--
Cheers,
Mike Stockdale

fitSharp
FitNesse.NET
Syterra Software Inc.

#15362 From: "Dan Woodward" <rsidan@...>
Date: Mon Apr 5, 2010 7:53 pm
Subject: Re: manipulating XMLs created and using conditions
rsidan
Send Email Send Email
 
I would really recommend that this is two tests.  One that will trigger one
condition and another that will trigger the second condition.  If you can't
know, then build a method that can.

Dan Woodward
http://whotestedthis.squarespace.com
------
FitNesse using Java and SliM

--- In fitnesse@yahoogroups.com, "Subodh" <subodh_brahmi@...> wrote:
>
> Hi All,
>
>
>
> We have customized fitnesse to suite our project automation needs, which is
> an API testing project and request/response XMLs are being used to test the
> JAVA API.
>
>
>
> Now before we send a request XML, we create few XML using fitnesse
> script/fixtures and then after the XMLs are created, we send the request XML
> through fitnesse to that API.
>
>
>
> Now my issue is that the created XMLs need to be modified according to the
> condition, like if a particular condition is true then it should have few
> tags and if that is not true that it should have other set of tags. So can
> we do it using fitnesse? Like we use conditions in VB script is my question.
>
>
>
> Thanks,
>
> Subodh
>

#15363 From: "HarshaVardhan" <aharshavardhan@...>
Date: Mon Apr 5, 2010 7:59 pm
Subject: How do I marrage Fitnesse pages with SVN
aharshavardhan
Send Email Send Email
 
Hello,
I wrote many fitnesse pages to test my application and would like to save them
in SVN(Subversion).  I don't want to save the zip files.

Your help is appreciated.

Thanks
~Harsha

#15364 From: "pranitpatel" <pranitpatel@...>
Date: Mon Apr 5, 2010 7:58 pm
Subject: Re:How to include multiple class for one script table
pranitpatel
Send Email Send Email
 
Thanks Robert, I will try to use Library Table and see if it works out.

--- In fitnesse@yahoogroups.com, Robert Martin <UncleBob@...> wrote:
>
> > How to include multiple class for one script table
> > Posted by: "pranitpatel" pranitpatel@...   pranitpatel
> > Wed Mar 31, 2010 11:07 pm (PDT)
> >
> > Hi All,
> >
> > I am using SetUp and ScnearioLibary to modularize my test better. It's been
working great but now I am having difficulty from fixture side since its not
wise to put all fixtures in one class. So, we started to refactor our fixture
class in two, so my script table is using fixtures from both class.
>
> Good!
>
> > But this throw exception. Let me explain this in more detail by following:
> >
> > My SetUp Page:
> > ==============
> > !|import |
> > |Test.CAT.Acceptance.System|
> > |FAT.Acceptance.Tests|
> > |FAT.Acceptance.Common|
> >
> > !|Script |SystemAutoAcceptanceTest |
> > !|Script |TestClass1|
> > !|Script |TestClass1|
>
> You can't do this.  Each 'script' directive overrides the previous one.  What
you want to do instead is use Library tables.
>
> See the User Guide FitNesse.UserGuide.SliM.LibraryTable
>
>
> ----
> Robert C. Martin (Uncle Bob)  | email: unclebob@...
> Object Mentor Inc.            | blog:  blog.objectmentor.com
> The Agile Transition Experts  | web:   www.objectmentor.com
> 847.249.4209                  | twitter: unclebobmartin
>

#15365 From: Gojko Adzic <gojko-yahoolist@...>
Date: Mon Apr 5, 2010 9:03 pm
Subject: Re: How do I marrage Fitnesse pages with SVN
gojko_lastname
Send Email Send Email
 
See section "Storing tests in a version control system" from my fitnesse
book: http://gojko.net/FitNesse/book/ch10.html#N11A60

Best regards,

--
Gojko Adzic
http://gojko.net
Acceptance Testing and TDD workshops http://neuri.co.uk/training

HarshaVardhan wrote:
> Hello,
> I wrote many fitnesse pages to test my application and would like to save them
in SVN(Subversion).  I don't want to save the zip files.
>
> Your help is appreciated.
>
> Thanks
> ~Harsha
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

#15366 From: Gregor Gramlich <gramlich@...>
Date: Mon Apr 5, 2010 9:24 pm
Subject: Re: How do I marrage Fitnesse pages with SVN
gregorgramlich
Send Email Send Email
 
Also take a look at this video by uncle bob.

As Gojko writes, the -e 0 parameter is the key to turning off the zip file generation.



2010/4/5 HarshaVardhan <aharshavardhan@...>
 

Hello,
I wrote many fitnesse pages to test my application and would like to save them in SVN(Subversion). I don't want to save the zip files.

Your help is appreciated.

Thanks
~Harsha



#15367 From: "jroets01" <jroets@...>
Date: Mon Apr 5, 2010 9:33 pm
Subject: Re: Can I have active content in my test result table?
jroets01
Send Email Send Email
 
I'm not doing anything abnormal (that I know of :)). This is what my test looks
like:

!|Link To File|
|Generate Data|
|Save Data|
|Add Link To Summary|

|Summary|

And my fixture:

using fitlibrary;

public class LinkToFile : DoFixture
{
     public void AddLinkToSummary()
     {
       TestStatus.Summary["mylink"] = "<a href='/files/myfile.out'>Output
File</a>";
     }

     public bool GenerateData()
     {
       //TODO: Generate something real
       return true;
     }

     public bool SaveData()
     {
       //TODO: Actually save something
       return true;
     }
}

In my VS project I have a reference to fitSharp's fit.dll and fitSharp.dll. My
project builds fine. I get intellisense on the TestStatus object, so I believe I
have the right stuff. The test runs fine until it tries to execute my
AddLinkToSummary method. I verified that Processor is null when my test runs by
simply adding this line of code right before setting TestStatus.Summary:

if (Processor == null) Console.WriteLine("Processor is null");

--- In fitnesse@yahoogroups.com, Mike Stockdale <jediwhale@...> wrote:
>
> Where are you making the call?  The Processor is populated when FitNesse
> runs the fixture, e.g.
>
> |summary sample|
> |add link|
>
> |summary|
>
> Here's my fixture code:
>
>      public class SummarySample: DoFixture {
>
>          public void AddLink() {
>              TestStatus.Summary["mylink"] = "<a
> href=\"somewhere\">somewhere</a>";
>          }
>      }
>
> You can't just create a fixture yourself without setting the Processor,
> in unit tests e.g. this is from ActionFixtureTest.cs
>
>          [Test]
>          public void TestStart()
>          {
>              table = BuildTable("ActionFixture");
>              var fixture = new ActionFixture { Processor = new
> Service.Service(configuration) };
>              fixture.DoTable(table);
>              Assert.AreEqual(0,
> fixture.TestStatus.Counts.GetCount(TestStatus.Exception), table.ToString());
>              Assert.IsNotNull(fixture.GetTargetObject());
>          }
>
>
> On 2010-04-05 11:02, jroets01 wrote:
> >
> > Ok. It was a runtime mis-config on my part. Thanks for the hint.
> >
> > However... Now that I have overcome that, I get a
> > NullReferenceException from Fixture.TestStatus:
> >
> > System.NullReferenceException: Object reference not set to an instance
> > of an object.
> > at fit.Fixture.get_TestStatus()
> >
> > My calling code is this:
> > TestStatus.Summary["mytext"] = "some text";
> >
> > I looked at the source for Fixture.cs and I see that its TestStatus
> > property references a "Processor"; and I verified that Processor is null.
> >
> > Is there something else I am missing?
> >
> > --- In fitnesse@yahoogroups.com <mailto:fitnesse%40yahoogroups.com>,
> > Mike Stockdale <jediwhale@> wrote:
> > >
> > > Make sure your fixture is built with the latest fitSharp dlls. Sounds
> > > like a dll version mismatch.
> > >
> > > On 2010-04-05 07:44, jroets01 wrote:
> > > >
> > > > When I try the "Add Link" approach with the latest fitSharp
> > libraries,
> > > > I get this exception:
> > > >
> > > > System.MissingMethodException: Method not found:
> > > > 'fitSharp.Fit.Model.TestStatus fit.Fixture.get_TestStatus()'
> > > >
> > > > I do have the fitSharp fit.dll in my path.
> > > >
> > > > What could I doing wrong?
> > > >
> > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com> <mailto:fitnesse%40yahoogroups.com>,
> > > > Mike Stockdale <jediwhale@> wrote:
> > > > >
> > > > > DoFixture looks for two kinds of methods. The most common is for
> > > > > methods on the fixture or the system under test with the name made
> > > > up of
> > > > > the alternating cells:
> > > > >
> > > > > |method|x|name|y|
> > > > >
> > > > > But it also looks for methods on the fixture with the name as
> > the first
> > > > > cell and a single parameter type of 'Parse'. This is how the
> > DoFixture
> > > > > keywords are implemented.
> > > > >
> > > > > |check|...|...|
> > > > > |reject|...|...|
> > > > >
> > > > > But you can also write your own keyword methods like the 'print
> > link'
> > > > > example. The method is passed the 'Parse' object for the cells
> > of the
> > > > > row in which it appears.
> > > > >
> > > > > The 'add link' can be done with FitNesse.NET - the syntax will be
> > > > > slightly different.
> > > > >
> > > > >
> > > > > On 2010-03-29 10:23, jroets01 wrote:
> > > > > >
> > > > > > The approach with "PrintLink" worked for me. Could someone
> > explain
> > > > the
> > > > > > underpinnings of that approach? I was not aware of FitNesse
> > calling
> > > > > > methods that take a "Parse" object. What is that?
> > > > > >
> > > > > > The other approach, using "AddLink" and the summary fixture,
> > did not
> > > > > > work for me. I'm writing fixtures in .NET, but not yet using
> > > > fitSharp.
> > > > > > Could that be why?
> > > > > >
> > > > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com>
> > > > <mailto:fitnesse%40yahoogroups.com>
> > <mailto:fitnesse%40yahoogroups.com>,
> > > > > > "sch_max" <sch_max@> wrote:
> > > > > > >
> > > > > > > Another way would be like this:
> > > > > > >
> > > > > > > using fitlibrary;
> > > > > > > using fit;
> > > > > > > namespace fitSharp.Samples {
> > > > > > > public class LinkSample: DoFixture {
> > > > > > > public void PrintLink(Parse theCells) {
> > > > > > > theCells.SetBody("<a
> > > > > > > href=\"somewhere\">somewhere</a>");
> > > > > > > }
> > > > > > > }
> > > > > > > }
> > > > > > >
> > > > > > > !|fitSharp.Samples.LinkSample|
> > > > > > > |print link|
> > > > > > >
> > > > > > >
> > > > > > > --- In fitnesse@yahoogroups.com
> > <mailto:fitnesse%40yahoogroups.com>
> > > > <mailto:fitnesse%40yahoogroups.com>
> > <mailto:fitnesse%40yahoogroups.com>,
> > > > > > Mike Stockdale <jediwhale@> wrote:
> > > > > > > >
> > > > > > > > Here's a simple way:
> > > > > > > >
> > > > > > > > using fitlibrary;
> > > > > > > > namespace fitSharp.Samples {
> > > > > > > > public class SummarySample: DoFixture {
> > > > > > > > public void AddLink() {
> > > > > > > > TestStatus.Summary["mylink"] = "<a
> > > > > > > > href=\"somewhere\">somewhere</a>";
> > > > > > > > }
> > > > > > > > }
> > > > > > > > }
> > > > > > > >
> > > > > > > > Then the link will appear in the Summary fixture:
> > > > > > > >
> > > > > > > > !|fitSharp.Samples.SummarySample|
> > > > > > > > |add link|
> > > > > > > >
> > > > > > > > |summary|
> > > > > > > >
> > > > > > > >
> > > > > > > > mrjorish wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > We have some tests that sometimes produce a lot of data,
> > > > especially
> > > > > > > > > when it goes wrong. I would like to either add as
> > attachment or
> > > > > > a link
> > > > > > > > > to external (more) data in my test tables.
> > > > > > > > >
> > > > > > > > > I have tried to used wiki style (using [[abc][def]] )
> > html code
> > > > > > (using
> > > > > > > > > <a href=...) plain links (using http://something. something
> > > > > > > > > <http://something.something <http://something.something>
> > <http://something.something <http://something.something>>
> > > > <http://something.something <http://something.something>
> > <http://something.something <http://something.something>>>>) etc,
> > > > > > but whatever I do the text shows up
> > > > > > > > > just "as-is" and not interpreted as a web-link.
> > > > > > > > >
> > > > > > > > > Is it possible to do what I want?
> > > > > > > > >
> > > > > > > > > By the way, I am running .Net version of FitNesse on Windows
> > > > > > environment.
> > > > > > > > >
> > > > > > > > > Regards,
> > > > > > > > > Jorish
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Cheers,
> > > > > > > > Mike Stockdale
> > > > > > > >
> > > > > > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>
> > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>
> > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>>>
> > > > > > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>
> > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>
> > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>>>
> > > > > > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com>
> > > > <http://www.syterra.com <http://www.syterra.com>>
> > > > > > <http://www.syterra.com <http://www.syterra.com>
> > <http://www.syterra.com <http://www.syterra.com>>>>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > Cheers,
> > > > > Mike Stockdale
> > > > >
> > > > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>
> > > > <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>>
> > > > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>
> > > > <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>>
> > > > > Syterra Software Inc. <http://www.syterra.com
> > <http://www.syterra.com> <http://www.syterra.com
> > <http://www.syterra.com>>>
> > > > >
> > > >
> > > >
> > >
> > > --
> > > Cheers,
> > > Mike Stockdale
> > >
> > > /fit/Sharp <http://www.syterra.com/FitSharp.html
> > <http://www.syterra.com/FitSharp.html>>
> > > FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html
> > <http://www.syterra.com/FitnesseDotNet.html>>
> > > Syterra Software Inc. <http://www.syterra.com <http://www.syterra.com>>
> > >
> >
> >
>
> --
> Cheers,
> Mike Stockdale
>
> /fit/Sharp <http://www.syterra.com/FitSharp.html>
> FitNesse.NET <http://www.syterra.com/FitnesseDotNet.html>
> Syterra Software Inc. <http://www.syterra.com>
>

#15368 From: Robert Martin <UncleBob@...>
Date: Mon Apr 5, 2010 10:08 pm
Subject: Re:!include vs. a SetUp page
rmartinoma
Send Email Send Email
 
> !include vs. a SetUp page
> Posted by: "ande_kastanis" ande.kastanis@...  ande_kastanis
> Sun Apr 4, 2010 5:03 am (PDT)
>
> Some of the tests I've been working on lately seem to execute slower than
before.
>
> I've recently started using SetUp pages so assure that a test has the correct
preconditions.
>
> Here's what I've cobbled together, running the same suite of tests, w/
different "SetUp" schemes.
>
> 1. Removed the SetUp page from the Suite. Tests assumed preconditions are
already met.
> Execution time(in minutes): 4:58
>
> 2. Used a SetUp page to set the expected preconditions.
> Execution time(in minutes): 7:27
>
> 3. Used a SetUp page that did absolutely nothing. Tests assumed preconditions
are already met.
> Execution time(in minutes): 7:05
>
> 4. Renamed SetUp page to InitializeTest, and injected an include to the
"InitializeTest" page at the start of each test. Uncommented the calls in the
SetUp page that set the expected preconditions.
> Execution time(in minutes): 5:00
>
> It seems like I'm experiencing a 50% performance hit by using SetUp pages.
>
> Is this typical? Does the performance of a SetUp page depend on the depth of
the test tree? (It's typical for our tests to be 6-8 levels deep in the page
hierarchy.)
>
> I'm currently running version 20100103.
>
> Thoughts?
> -Ande

Ande,

That's pretty interesting.  Yes, deep hierarchies probably do take longer.  Is
the SetUp page near the top or the bottom of the hierarchy?  That'll probably
make a difference.

I'm going to have to look at improving the speed of the page database.  It's
very primitive at the moment.  I imagine it's wasting a lot of effort.

#15369 From: Yuval Oren <yuval@...>
Date: Tue Apr 6, 2010 3:00 am
Subject: Re: How do I marrage Fitnesse pages with SVN
yoren
Send Email Send Email
 
I actually recently wrote a class to do this, using the CM_SYSTEM extension in the latest release. Are people interested in this? If so, I can post it somewhere.

On Mon, Apr 5, 2010 at 2:03 PM, Gojko Adzic <gojko-yahoolist@...> wrote:
 

See section "Storing tests in a version control system" from my fitnesse
book: http://gojko.net/FitNesse/book/ch10.html#N11A60

Best regards,

--
Gojko Adzic
http://gojko.net
Acceptance Testing and TDD workshops http://neuri.co.uk/training

HarshaVardhan wrote:
> Hello,
> I wrote many fitnesse pages to test my application and would like to save them in SVN(Subversion). I don't want to save the zip files.
>
> Your help is appreciated.
>
> Thanks
> ~Harsha
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>



#15370 From: "Markus Gärtner"<shino@...>
Date: Tue Apr 6, 2010 5:55 am
Subject: Re: Re: How do I marrage Fitnesse pages with SVN
shino01051979
Send Email Send Email
 
About a year ago I wrote a perforce CM_SYSTEM plugin. The project is open source
and should be suitable to get you started similarly with subversion as well. You
can find the project home page on google code:
http://code.google.com/p/perforcecmsystem/

Kind regards
Markus Gaertner
http://blog.shino.de

----- Original Message -----
From: yuval@...
To: fitnesse@yahoogroups.com
Date: 06.04.2010 05:00:26
Subject: Re: [fitnesse] How do I marrage Fitnesse pages with SVN


> I actually recently wrote a class to do this, using the CM_SYSTEM extension
> in the latest release. Are people interested in this? If so, I can post it
> somewhere.
>
> On Mon, Apr 5, 2010 at 2:03 PM, Gojko Adzic wrote:
>
> >
> >
> > See section "Storing tests in a version control system" from my fitnesse
> > book: http://gojko.net/FitNesse/book/ch10.html#N11A60
> >
> > Best regards,
> >
> > --
> > Gojko Adzic
> > http://gojko.net
> > Acceptance Testing and TDD workshops http://neuri.co.uk/training
> >
> > HarshaVardhan wrote:
> > > Hello,
> > > I wrote many fitnesse pages to test my application and would like to save
> > them in SVN(Subversion). I don't want to save the zip files.
> > >
> > > Your help is appreciated.
> > >
> > > Thanks
> > > ~Harsha
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >  
> >
>

#15371 From: Gregor Gramlich <gramlich@...>
Date: Tue Apr 6, 2010 7:04 am
Subject: Re: How do I marrage Fitnesse pages with SVN
gregorgramlich
Send Email Send Email
 
Hello Yuvan,

> If so, I can post it somewhere.

that would be nice. Is there any effort to bring the various CM_SYSTEM extensions back into fitnesse or at least create a central publicly available project for them?

Gregor


2010/4/6 Yuval Oren <yuval@...>
 

I actually recently wrote a class to do this, using the CM_SYSTEM extension in the latest release. Are people interested in this? If so, I can post it somewhere.



On Mon, Apr 5, 2010 at 2:03 PM, Gojko Adzic <gojko-yahoolist@...> wrote:
 

See section "Storing tests in a version control system" from my fitnesse
book: http://gojko.net/FitNesse/book/ch10.html#N11A60

Best regards,

--
Gojko Adzic
http://gojko.net
Acceptance Testing and TDD workshops http://neuri.co.uk/training

HarshaVardhan wrote:
> Hello,
> I wrote many fitnesse pages to test my application and would like to save them in SVN(Subversion). I don't want to save the zip files.
>
> Your help is appreciated.
>
> Thanks
> ~Harsha
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>




#15372 From: "Markus Gärtner"<shino@...>
Date: Tue Apr 6, 2010 7:34 am
Subject: Re: Re: How do I marrage Fitnesse pages with SVN
shino01051979
Send Email Send Email
 
Some while back I thought about bringing in svn support and maybe also git
support into the perforce cm system. In general it would be great to have a
single version control plugin for fitnesse, maybe incorporating it completely
into fitnesse itself. There are some bugs in the printed out messages in the
perforce system, that I would like to remove by then, too. I'd be glad to help
out on this.

Kind regards
Markus Gaertner
http://blog.shino.de

----- Original Message -----
From: gramlich@...
To: fitnesse@yahoogroups.com
Date: 06.04.2010 09:04:38
Subject: Re: [fitnesse] How do I marrage Fitnesse pages with SVN


> Hello Yuvan,
>
> > If so, I can post it somewhere.
>
> that would be nice. Is there any effort to bring the various CM_SYSTEM
> extensions back into fitnesse or at least create a central publicly
> available project for them?
>
> Gregor
>
>
> 2010/4/6 Yuval Oren
>
> >
> >
> > I actually recently wrote a class to do this, using the CM_SYSTEM extension
> > in the latest release. Are people interested in this? If so, I can post it
> > somewhere.
> >
> >
> > On Mon, Apr 5, 2010 at 2:03 PM, Gojko Adzic wrote:
> >
> >>
> >>
> >> See section "Storing tests in a version control system" from my fitnesse
> >> book: http://gojko.net/FitNesse/book/ch10.html#N11A60
> >>
> >> Best regards,
> >>
> >> --
> >> Gojko Adzic
> >> http://gojko.net
> >> Acceptance Testing and TDD workshops http://neuri.co.uk/training
> >>
> >> HarshaVardhan wrote:
> >> > Hello,
> >> > I wrote many fitnesse pages to test my application and would like to
> >> save them in SVN(Subversion). I don't want to save the zip files.
> >> >
> >> > Your help is appreciated.
> >> >
> >> > Thanks
> >> > ~Harsha
> >> >
> >> >
> >> >
> >> > ------------------------------------
> >> >
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >  
> >
>

Messages 15343 - 15372 of 20134   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help