FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestVariablesFromSystemProperties [add child]

 Scenario Libraries

Test that variables can be defined as system properties



Test a variable defined in system properties


System property setter fixture
key value
xKey xValue
script
start Page Builder
line xKey is ${xKey}
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
script
start Page Builder
line !define xKey {xValueFromPage}
line xKey is ${xKey}
page VariablePage
Response Requester.
uri valid? contents?
VariablePage true  
Response Examiner.
type pattern matches? wrapped html?
contents xKey is xValueFromPage true