[SoapUI] 在脚本里写code执行某个step

import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus

myTestStepResultAccount = testRunner.runTestStepByName("GetAccountData")
myStatusAccount = myTestStepResultAccount.getStatus()
if (myStatusAccount == TestStepStatus.OK){
log.info "The account step status is: " + myStatusAccount.toString()
testRunner.testCase.setPropertyValue("result_test", myStatusAccount.toString())
}
else{
log.error "The account step status is: " + myStatusAccount.toString()
testRunner.testCase.setPropertyValue("result_test", myStatusAccount.toString())
}
原文地址:https://www.cnblogs.com/wynlfd/p/7886114.html