chuckmolak
25 days agoOccasional Contributor
Cannot pass the test result to another script
Dear all,
I am successfully using this code to trigger the execution of another groovy script that is located in another test case:
def DEVICE_GENERATOR = testRunner.testCase.testSuite.project.getTestSuiteByName("MIR_TESTS").getTestCaseByName("CONFIGURATION").getTestStepByName("DEVICE_CONFIGURATION")
DEVICE_GENERATOR.run(testRunner, context)
The code works fine - but the problem is I cannot pass the script result back to the calling script (ie Passed or Failed).
The DEVICE_GENERATOR.status.toString() does not work for this method - any ideas how I can pass the script result back to the requesting script?
Thanks!