Forum Discussion
davidcole
14 years agoOccasional Contributor
Thanks, I almost figured this out by myself. Only by looking after posting did I figure out that a test case could run other test cases.
If I use something like:
if( Math.random() > 0.5 )
testRunner.runTestStepByName( "Request 1")
else
testRunner.runTestStepByName( "Request 2")
Do I then have to add Request 1 and Request 2 to the test case? Or do I just have the script?
If I use something like:
if( Math.random() > 0.5 )
testRunner.runTestStepByName( "Request 1")
else
testRunner.runTestStepByName( "Request 2")
Do I then have to add Request 1 and Request 2 to the test case? Or do I just have the script?