fawad
8 years agoNew Contributor
Groovy script receives null instead of a TestStepStatus value in scripted call
I have a groovy script test step that calls other test steps in the test.
In cases where the groovy call to the test step succeeds I can do the following:
TestStepResult licensestep = context.getTestRunner().runTestStepByName(stepName)
return licensestep.getStatus() == TestStepResult.TestStepStatus.OK
and I get true returned, but where the runTestStepByName fails it returns null and licensestep.getStatus() results in a null pointer exception.
Is this by design or is it a bug?