Define, Share and Automate your tests / specifications
Iteration table
Tmar tests are based on iterations.
Basically an iteration is a group of values and expected results for a test case.
The simplest way to define iterations is to use a sequence table where each line of the sequence table is an iteration.
Example :
Sequence table syntax :
-
A sequence table is introduce by the /sequence statement
-
following by a table header with column names, used as fields name for each iteration
-
Column header start with a '[' and each column are separate by a '|'
-
When a column name is followed by a '?' Tmar will compare the value of this column value with the value returned by the test
-
Note : If there is no value in the column, Tmar will display the value returned by the test
-
-
Camel case convention is applied when fields are given to the test method, eg :
-
Number 1 => number1
-
First name => firstName
-
-
-
Once header is defined, texts and iteration lines can be mixed, eg :








A simple Tmar description file with a sequence table


Iteration inline
To be even more expressive Tmar supports the /inline statement.
It allows to spread the fields of an iteration in a text bloc
Note : Sequence inline and sequence in tabulation can be freely mixed in the same description
Sequence inline syntax :
-
As sequence table, sequence inline is introduce by the /sequence statement and the header definition (see Iteration table)
-
Each iteration is introduce by the /inline satement
-
Inline bloc may be closed by the optional /endInline statement
-
This statement is optional as Inline bloc are implicitly closed by any new Tmar statement
( /inline, /sequence...). However it's some times usefull to be able to start a new text after an inline definition
-
-
Values are spread in text between [ ] in the same order than header
-
If a different order is needed it's possible to redefine the sequence header as many times as necessary
-
-
Inline syntax also supports text fields value longer than one line of text using “”” “””
Example 1 :
Field name is displayed in html report when you hover the value with your mouse
Example 2 :







