2017-02-22 14:33:36 -05:00
|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.
2017-02-22 14:33:36 -05:00
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
2017-02-22 14:33:36 -05: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
2017-02-22 14:33:36 -05:00
|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|