Forum Discussion
tristaanogre
9 years agoEsteemed Contributor
I think this is supposed to be posted to the SoapUI community.
groovyguy
9 years agoCommunity Hero
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.");
}