SoapUI: Stop load test suite execution from groovy script -
the first step in test suite soap ping request. want stop further test suite execution if ping step not return "alive".
what tried do:
add groovy step after soap ping step validate ping response , run (tried testrunner , other handlers; compare "true" make executed - change false when find solution):
def groovyutils = new com.eviware.soapui.support.groovyutils( context ) def holder = groovyutils.getxmlholder( "ping#response" ) log.info holder["//message"] if(holder["//message"].contains('alive') == true) { log.info "test execution stopped ping unsuccessful." loadtestrunner.cancel("test execution stopped ping unsuccessful.") }
i tried add script above teardown tab of corresponding ping load test.
neither of worked - test suite executed further down. can give me piece of advice on how accomplish this?
Comments
Post a Comment