groovy - Step assertion based on different step result - soapUI (run test case and test step from script assertion) -


in soapui test case i've "update" soap test step. right after i've groovy script step in verifying "update" running different test step,say "search" (located in different test case), programmatically withing script. now, mark "update" step pass or fail script assertion (so can green/red thing), based on result of "search".

as testrunner not available in script assertion (as per knowledge) , how assert on "update" based on "search". because "search" has run between run of "update" , run of assertion script of "update". i've tried using context object described here, failing script assertion doest not show access properties set in context object in groovy script step.

has faced such issue? appreciated.

resolved issue running testcase assertion script this.

messageexchange.modelitem.teststep.testcase.testsuite.gettestcasebyname("test case name").run(new com.eviware.soapui.support.types.stringtoobjectmap(), false) 

also, test step can run assert script this.

messageexchange.modelitem.teststep.testcase.getteststepbyname("test step name").run(context.gettestrunner(),context) 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -