REQUIRED TESTS Section

Generating pairwise tests ensures all pairs are tested, but not necessarily a specific test that you need. Required tests are a quick and easy to ensure a specific test case is produced. Let’s look at the structure.

REQUIRED TEST (1)
ID, Name1, Name2, Name3, Name4, Name5,... (2)
1,value1,,,,value5,... (3)
1 REQUIRED TEST tag identifies the start of the Required Test section.
2 A label line making it easier to match your fields to the required value. The first column is a "Test ID" column.
3 The id of the required test followed by values for each name.

Let’s see an example of the REQUIRED TEST section.

required tests example
Figure 1. Required tests example

Required tests are a little different from the Criteria sections but refer to those sections for data. Some basic rules for Required Tests are:

  • refer to values defined in either the CRITERIA or NEGATIVE CRITERIA sections.

  • undefined criteria are filled with criteria values during generation.

  • at least three criteria are required otherwise you’re just doing pair generation which is already done.