myTestStepResult = testRunner.runTestStepByName("GetAccountDRIFromAPI") myStatus = myTestStepResult.getStatus() if (myStatus == TestStepStatus.OK){ log.info "The step status is: " + myStatus.toString() testRunner.testCase.setPropertyValue("result_test", myStatus.toString()) } else{ log.error "The step status is: " + myStatus.toString() testRunner.testCase.setPropertyValue("result_test", myStatus.toString()) }