Sha256: c4782115b5e78c5375104ca4c8c98a163efbdf43d21e63780ceb5e6b4c5c917e

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

!2 Test that variables can be defined as system properties
 * If Fitnesse can not find a variable definition on any pages it will look to system properties.
----
!3 Test a variable defined in system properties

#
 * Set a system property.
#
|System property setter fixture|
|key|value|
|xKey|xValue|
#
 * Create a page that uses that property as a variable.
#
|script|
|start|Page Builder|
|line|!-xKey is ${xKey}-!|
|page|!-VariablePage-!|
#
 * Fetch that page.
#
|Response Requester.|
|uri|valid?|contents?|
|!-VariablePage-!|true||
#
 * Inspect the text to see if the variable was expressed.
#
|Response Examiner.|
|type|pattern|matches?|wrapped html?|
|contents|xKey is xValue|true||


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

#
 * Set a system property.
#
|System property setter fixture|
|key|value|
|xKey|xValue|
#
 * Create a page that defines the same variable and uses it.
#
|script|
|start|Page Builder|
|line|!-!define xKey {xValueFromPage}-!|
|line|!-xKey is ${xKey}-!|
|page|!-VariablePage-!|
#
 * Fetch that page.
#
|Response Requester.|
|uri|valid?|contents?|
|!-VariablePage-!|true||
#
 * Inspect the text to see if the variable was expressed.
#
|Response Examiner.|
|type|pattern|matches?|wrapped html?|
|contents|xKey is xValueFromPage|true||

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestVariablesFromSystemProperties/content.txt