Define, Share and Automate your tests / specifications

Share context

Tmar lets you load a Tmar description file at the class level
By convention this file will be named <className>.tmar and has to be in an includes subdirectory. It's also possible to give an include file name as parameter.
All tables declared in this file will be seen from all iterations of all test cases of this class
To load this description file you have to call the method loadSharedContext() or in the method with @Before annotation for JUnit or @BeforeClass for TestNG
def setupTest() {
def myShareContext = loadSharedContext(
... // use myShareContext
The returned object mySharedContext has all the needed methods to get data from the shared context tables ( getTable, getValues … ).
See table and Map support