Doc TestCaseSTC
Back to current version Restore this version

Sequential Test Cases#

Test cases can be defined by using the simple STC (sequential test cases) markup:

%%TestCase
Name_of_case1 {
   Question1 = value1,
   Question2 = value2,
   ... = ... :
   Solution1 (established),
   Solution2 (established);
   
   Question3 = value3,
   Question4 = value4,
   ... = ... :
   Solution3 (established),
}
%

Here, test cases can be defined as sequences of (question, value) pairs together with expected solutions. Each sequence is terminated by a semicolon.

In the example above, the values are assigned to questions Question1 and Question2 first. Then, the establishment of the solutions Solution1 and Solution2 is checked. The second sequence starts with assigning values to the questions Questions3 and Questions4 and then checking the establishment of Solution3.

Please note, that test cases can be executed by using the markup TestCasePlayer.