Forum Discussion

v3t3a's avatar
v3t3a
Occasional Contributor
11 years ago

GotoTestStep to another test case

Hello! I'm searching since Yesterday but i found nothing for my problem: - I have : -> One test suite : "testSuite" -> Two test case : "testCase_1" and "testCase_2" -> Multiple ...
  • ReshmaSachdev's avatar
    11 years ago
    Hello,
    you can use following in "else" block:

    def tCase = testRunner.testCase.testSuite.testCases["Name of test cases"]

    def tStep = tCase .testSteps["test step you want to run"]

    tStep.run(testRunner, context)

    Also,
    if (myStatus == TestStepStatus.OK) to be replaced with following:

    if (myStatus == "OK")

    Hope it helps,
    Reshma S