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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -