Skip to content

Suite setup

Use this page to prepare a FitNesse suite so every test can use the Reflex fixtures. Put the setup in a SuiteSetUp.wiki page. It runs before any test in the suite.

!|import |
|nl.hsac.fitnesse.fixture |
|nl.hsac.fitnesse.fixture.slim |
|reflex.slim.fixtures |
|script |conf fixture|
|stopOnException;|true |
|browserHeadless;|false |
|browserTimeout; |10000 |
|script|browser download|
|chrome |

The import table makes these packages available:

PackageContents
nl.hsac.fitnesse.fixtureHSAC base fixtures
nl.hsac.fitnesse.fixture.slimSLIM fixtures
reflex.slim.fixturesReflex fixtures (browser, REST, Lua and more)

browser download fetches the Chrome driver that matches your system. Run it before browser tests.

Set these with conf fixture. You can also set them again in a single test.

MethodTypeDefaultDescription
stopOnExceptionbooleantrueStop the test at the first failure
browserHeadlessbooleantrueRun the browser without a window
browserTimeoutnumber10000Browser timeout in milliseconds
browserWidthnumber1920Window width
browserHeightnumber1080Window height
databaseUrlstringnoneJDBC URL
databaseUserstringnoneDatabase user
databasePasswordstringnoneDatabase password

Create a SuiteTearDown.wiki page for cleanup after all tests. It can be empty.

FitNesseRoot/
Examples/
Reflex.wiki # Suite page
SuiteSetUp.wiki
SuiteTearDown.wiki
Reflex/
test1.wiki # One test
test1.lua # Its Lua file
helpers.lua # Shared Lua code

Next: Write tests.