import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus myTestStepResult = testRunner.runTestStepByName("GetCitiesByCountry - Request 1") myStatus = myTestStepResult.getStatus() if (myStatus == TestStepStatus.OK) log.info "The step status is: " + myStatus.toString() else log.error "The step status is: " + myStatus.toString()