transcendental-lisp/fitnesse/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TableTableSuite/SymbolsInTableTableManagedB.../content.txt

46 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

|import |
|fitnesse.slim.test|
!1 Symbol Handling by Fixtures
2018-08-17 19:50:48 -04:00
If you need advanced symbol handling in your [[!-TableTable-!][.FitNesse.FullReferenceGuide.UserGuide.WritingAcceptanceTests.SliM.TableTable]] fixtures than your fixture code must handle this.
Advanced means that you assign to a symbol a value and need to reference this new value again in the same table.
Think if you really need this as it makes your code more complicated.
!3 Load the symbol aware fixture
|import |
|fitnesse.slim.test.statementexecutorconsumer|
2018-08-17 19:50:48 -04:00
!include SymbolAssignmentAndReferenceOfTheSameInOneTable
!3 Check the results Z is now 201 :)
!|script |
|check|echo int|$Z |201|
|check|echo int|$${RUNNING_PAGE_NAME}|13 |
2018-08-17 19:50:48 -04:00
!3 The fixture handles a chain of assignments
|script |
|$X=|echo|99|
|table: Table Table Inc First Col|
|$X |$X= |
|$X |$X= |
|$X |$X= |
|$X |$X= |
|$X |$X= |
|$X |$Y= |
|script |
|check|echo|$X|104|
|check|echo|$Y|105|