Using data from a data table row

In order for the value of a column to be able to be used in a test instruction, the test analyst must use an expression with the following structure:

${*GTD.<Tablename>.<Columnname>}

Example

Here is an example for a high level test instruction with abstract values as specified in LF‑ET, e.g. for a login to a web shop:

Log into the web shop using the
username "${*GTD.Customer.Username}"
and the password "${*GTD.Customer.Password}".

The following low level test instruction with now concrete values could be seen in a ge­ne­ra­ted test case:

Log into the web shop using the
username "hintze@google.de"
and the password "test2050".

Automatic selection of data table rows

  • When a column value is accessed for the first time, a "final" data table row is selected for the current test case which is then used unchanged for all subsequent accesses to column values in this test case

  • The selection of data table row is accidental, i.e. from a number of data table rows available for selection the row which has so far been used least often is preferred

  • The use of test data as even as possible can be achieved in this way

  • If the "Create statistics" option is activated du­ring test case generation, it can be checked at the end of the report for test data use for each individual data table row how often it can be used in test cases.

Intervals and Lists

If Intervals or Lists are used in test data,

*GTD.Demotable

Record number  ; Interval   ; List
1              ; [ 2 : 4 ]  ; ( 3, 4, 5, 6, 7 )

the data table returns the following when accessing the value:

  • for intervals, either an average value or a random value from the interval, de­pen­ding on the selected generation option

  • for lists, a randomly selected value from the list.