| || |
Invoking a test case from another test case
A testcase is being executed which has 4 steps.
The second step is a set of function calls which is already implemented in a different testcase.Instead of calling all the functions again here, can I just call that testcase? Like, is there any function like ExecuteTestCase("Testcase")?
Re: Invoking a test case from another test case
It is not possible to execute a testcase from another testcase.
Break out the routines you'd like to share as a separate function, then call it from each of those tests.
Ideally you'd have application drivers as separate, single-source code so that the operational difference between an action that performs work and one that actually tests it is merely the data being passed and the appearance of the "testcase" prefix.