
Resources.FitNesseRoot.FitNesse.SuiteAcceptanceTests.SuiteSlimTests.VariablesUsedInSubSubpage.TestWithVariable.content.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
!4 To test This page three variables must be defined on the parent page: "numerator", "denominator" and "quotient"
#!define numerator {10}
#!define denominator {2}
#!define quotient2 {5}
!4 Define variables on this sub page. They can be used on the main page
!define result {77.0}
!define quotient4 {${= ${numerator} / ${denominator} =}.0}
print quotient = ${quotient}
print quotient2 = ${quotient2}
print quotient4 = ${quotient4}
|eg.Division|
|# Test Description | numerator | denominator | quotient? |
| Expected result is calculated with expression | ${numerator} | ${denominator} | ${= %3.0f : ${numerator} / ${denominator} =}.0 |
| Expected result is in variable | ${numerator} | ${denominator} | ${quotient} |
| Store result in a symbol | ${numerator} | ${denominator} | $result= |
| Use symbol |$result | 1| ${quotient}|
printing a variable is possible: result = ${result}
printing a symbol is not possible: result = $result
© 2015 - 2025 Weber Informatics LLC | Privacy Policy