Forum Discussion
autoscout24
16 years agoContributor
For example.
if I have script assertion like below:-
boolean bReq = false;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def HolderResponse = groovyUtils.getXmlHolder( "GetMakeModelTree#Response" );
def status = HolderResponse["//status"];
if (status == "OK" || status == "NothingFound" )
{
bReq = true;
log. info ("The request have status - " + status);
}
else
{
log. error ("The request have status - " + status);
}
assert bReq == true;
in the above script testrunner.result has got only information about assert 'bReq' but I want have 'log. error ("The request have status - " + status) or log. info ("The request have status - " + status);' message in the test management tool and it would better if I can able to get the messages printed using soapUI.log.error or soapUI.log.info commands for a test
please revert back
Regards
Vijay
if I have script assertion like below:-
boolean bReq = false;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def HolderResponse = groovyUtils.getXmlHolder( "GetMakeModelTree#Response" );
def status = HolderResponse["//status"];
if (status == "OK" || status == "NothingFound" )
{
bReq = true;
log. info ("The request have status - " + status);
}
else
{
log. error ("The request have status - " + status);
}
assert bReq == true;
in the above script testrunner.result has got only information about assert 'bReq' but I want have 'log. error ("The request have status - " + status) or log. info ("The request have status - " + status);' message in the test management tool and it would better if I can able to get the messages printed using soapUI.log.error or soapUI.log.info commands for a test
please revert back
Regards
Vijay