Disable at runtime the execution of Test Cases that belong to a Test Suite

When the execution of a TestCase fails in a Testsuite, I must disable the execution of the test cases that depend on it.

These test cases are in the Test Suite as well, but you only have to disable the ones that have the failed testcase as a prerequisite.

i would solve it using global variable :
set global var.: prereq1 - boolean default - FALSE
then in 1st TC that MUST NOT fail set this var to true on the end when everything is ok.
then in rest of TC check value of prereq1 and execute test accordingly.
and add assertion of prereq1 == true to get failed TC (and not false true execution)

1 Like