Sha256: bfcaac3bc7f4f78414a30ab73e683e35ed3379b435d82992b089faba20f8f69d

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 KB

Contents

!2 Test that variables can be defined in url input
 * Variables defined in url input take precedence over page and 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|
|attributes|Test=true|
|line|!-xKey is ${xKey}-!|
|page|!-VariablePage-!|
#
 * Fetch that page.
#
|Response Requester.|
|uri|valid?|contents?|
|!-VariablePage?responder=getPage&xKey=xUriValue-!|true||
#
 * Inspect the text to see if the variable was expressed.
#
|Response Examiner.|
|type|pattern|matches?|wrapped html?|
|contents|xKey is xUriValue|true||

!3 Test a variable re-defined via URL

#
 * Create a page that defines and uses variable.
#
|script|
|start|Page Builder|
|attributes|Test=true|
|line|!-!define xKey [page defined]-!|
|line|!-xKey is ${xKey}-!|
|page|!-VariablePage-!|
#
 * Fetch that page.
#
|Response Requester.|
|uri|valid?|contents?|
|!-VariablePage?responder=getPage&xKey=xUriValue-!|true||
#
 * Inspect the text to see if the variable was expressed.
#
|Response Examiner.|
|type|pattern|matches?|wrapped html?|
|contents|xKey is xUriValue|true||

Version data entries

8 entries across 8 versions & 1 rubygems

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