cdunne
17 years agoContributor
Script Assertions
Hi,
I have a script assertion which checks that a value is not false and returns an error to the groovy log if it does.
def succeed = "call a custom method that returns true"
if( succeed == false){
log.info(currentTestCase+" - Failed Script Assertion: "+errors.toString())
}
assert succeed != false
When I do this the assertion makes 2 entries in the log. Is this because SoapUI try to validate the assertion twice? If so is there anyway I could switch this off?
Thanks
Cormac
I have a script assertion which checks that a value is not false and returns an error to the groovy log if it does.
def succeed = "call a custom method that returns true"
if( succeed == false){
log.info(currentTestCase+" - Failed Script Assertion: "+errors.toString())
}
assert succeed != false
When I do this the assertion makes 2 entries in the log. Is this because SoapUI try to validate the assertion twice? If so is there anyway I could switch this off?
Thanks
Cormac