FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestVariablesFromSystemProperties

 Set Up: .FitNesse.SuiteAcceptanceTests.SetUp (edit)
variable defined: TEST_SYSTEM=fit

Test that variables can be defined as system properties



Test a variable defined in system properties


System property setter fixture
key value
xKey xValue
Action Fixture.
start Page Builder
enter line xKey is ${xKey}
enter page VariablePage
Response Requester.
uri valid? contents?
VariablePage true  
Response Examiner.
type pattern matches? wrapped html?
contents xKey is xValue true  




Test that a variable defined in a page supercedes one set in system properties


System property setter fixture
key value
xKey xValue
Action Fixture.
start Page Builder
enter line !define xKey {xValueFromPage}
enter line xKey is ${xKey}
enter page VariablePage
Response Requester.
uri valid? contents?
VariablePage true  
Response Examiner.
type pattern matches? wrapped html?
contents xKey is xValueFromPage true