Forum Discussion
5 Replies
- michaelmerrillOccasional Contributor
This is the groovy step that runs our test steps:
def apiTestSuite = testRunner.testCase.testSuite.project.getTestSuiteByName("apiGatewayTest")
for(tcase in apiTestSuite.getTestCaseList()) {
if(!tcase.isDisabled()) {
log.info("running test case ${tcase.name}")
for(tstep in tcase.getTestStepList()) {
if(!tstep.isDisabled()) {
log.info("running test step ${tstep.name}")
status = tstep.run(testRunner, context).status
log.info("test step status is ${status}")
if(status.toString() == 'FAILED') {
testRunner.fail("${tstep.name} Test failure")
}
}
}
}
} - michaelmerrillOccasional Contributor
I forgot to mention that when the tests are ran within Ready API, or SOAP UI version 5.2.2, the test steps that do the property transfer are OK.
- michaelmerrillOccasional Contributor
I printed out the error message the the PropertyTransferTestStep result, and it appears to be an issue with the XML libraries.
14:45:50,013 ERROR [log] Error from test step: com.eviware.soapui.impl.wsdl.teststeps.PropertyTransferException: error: Unexpected element: CDATA
- michaelmerrillOccasional Contributor
Note that the source for the property transfer is the JSON output of a REST test step. I am converting it to responseAsXML to see if that fixes the issue.
Related Content
- 5 years ago
- 6 years ago
- 2 years ago
- 9 years ago
Recent Discussions
- 3 hours ago
- 4 days ago