Forum Discussion
1 Reply
Sort By
- SmartBear_SuppoSmartBear Alumni (Retired)Hi Olli,
When you say "Properties", having in mind the the code snippet you've attached, I assume you are referring to test request response
You can access request and result objects using code similar to this snippet:
import com.eviware.soapui.impl.support.http.HttpRequestTestStep
log.info "Test result count: ${testRunner.results.size()}"
def testCase = testRunner.testCase
log.info "Test case: $testCase?.name"
def int i = 1
testRunner.results.each { testResult ->
String testStepName = testResult?.testStep.name
log.info "Test step $i '$testStepName': ${testCase.getTestStepByName(testStepName)}"
if (testResult?.testStep instanceof HttpRequestTestStep) {
log.info "Test step $i request: status $testResult?.testStep?.testRequest"
}
log.info "Test step $i result: status $testResult.status, size $testResult.messages, messages: $testResult.messages"
++i
}
I hope this is along the lines what you need.
I recommend you using pro forums for getting prioritized support.
Cheers!
/Nenad Nikolic a.k.a. Shonzilla
Related Content
- 2 years agoM_Schofer_1111
Recent Discussions
- 4 days agoemoya