payalmohitsobti
12 years agoOccasional Contributor
Can add SOAP Fault assertion twice using groovy script
If i try to add SOAP fault assertion to a test request that already has SOAP fault assertion, i get error - "This assertion can only be added once"
Even if i rename the SOAP fault assertion that already exist and then try to add, i get same error.
But using groovy script, i can add this assertion twice (with different names ofcourse) to the same request
testRunner.getTestCase().getTestStepByName("test step name").addAssertion("SOAP Fault")
Same is the case with Schema Compliance assertion, Response SLA, SOAP Response etc
Even if i rename the SOAP fault assertion that already exist and then try to add, i get same error.
But using groovy script, i can add this assertion twice (with different names ofcourse) to the same request
testRunner.getTestCase().getTestStepByName("test step name").addAssertion("SOAP Fault")
Same is the case with Schema Compliance assertion, Response SLA, SOAP Response etc