Forum Discussion
tristaanogre
Esteemed Contributor
I think this is supposed to be posted to the SoapUI community.
groovyguy
7 years agoChampion Level 1
I am not sure you can just get the status of a groovy script. IE, I think the script has to run and then you can get the status. If you're checking this via groovy script you'd want something similar to:
def result = context.testCase.testSteps["GC"].run(testRunner, context).getStatus().toString(); if ( result == "OK") { log.info("Test Script passed.") } else { log.info("Test Script failed."); }