FitnesseFixtureCreator Wiki
Defining Fitnesse Fixtures from within the Test
Brought to you by:
ken_miles
Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
Fitnesse Creator
Introduction
This started as an idea for quickly defining and creating database fixtures in the Fitnesse (Slim) test page, that were named with their purpose and reuseable. It has grown to include creating simple fitnesse fixtures in same for both Slim and Fit (via adaptors) to avoid putting lots of small fixtures into the Java code repository
an example:
!|Script|Create Database Decision Table Fixture|
|define Fixture;|check oracle sysdate|
|add output param;|system date|DateTime|
|set Fixture Sql|select sysdate "system date" from dual|
|create Class|
then later on page :
|check oracle sysdate|
|system date?|
|$systemDate=|
[[See full Slim example][>SamplesAndTests.SlimSamplesAndTests.AsimpleCreateDecisionTableFixtureExample]]
or for Fit
|Decision|check oracle sysdate|
|=system date?|
|systemDate|
[[See full Fit example][>SamplesAndTests.FitSamplesAndTests.AsimpleCreateDecisionTableFixtureExample]]
[[Install And Setup][>InstallAndSetup]]
For a more involved example see [[A Worked Example][>SamplesAndTests.WorkedExample]]