Test instructions with lists

Lists of any elements can also be specified in the Test instruction column.

LF‑ET recognizes lists with the following properties:

  • a list is provided in round brackets

  • a list contains at least two list elements

  • list elements are separated with a comma or a semicolon

Such as e.g. test instruction for "not numerical" in row 6:

test instructions 030 03

Du­ring test case generation LF‑ET selects a random element from the list.

Presented below is an output of the test instruction in a ge­ne­ra­ted test case in which the system reaction is checked for an entry with invalid numbers in the case of a payment:

test instructions 030 02 02

Values in inverted commas

Certain characters, e.g. dollar symbol, curly or round brackets, commas, semicolons and inverted commas, are used to determine where a list value starts and where it ends.

If such characters themselves make an element of a value, such a value must be put either in single or double inverted commas:

List

Recognized values

(5,000.25; 3,450.50)

5
000.25
3
450.50

("5,000.25"; "3,450.50")

5,000.25
3,450.50

An inverted comma can be embedded in a value in various ways:

  • the value being placed in "other" inverted commas

  • using the preceding "\" (escape character)

  • using two inverted commas being placed one after another

List

Recognized values

('7 "seven"', '9 "nine"')

7 "seven"
9 "nine"

("7 'seven'", "9 'nine'")

7 'seven'
9 'nine'

("7 \"seven\"", "9 \"nine\"")

7 "seven"
9 "nine"

("7 ""seven""", "9 ""nine""")

7 "seven"
9 "nine"