Forum Discussion

payalmohitsobti's avatar
payalmohitsobti
Occasional Contributor
12 years ago

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
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    I think, if you rename the soap fault assertion to something else, you should be able to add another soap fault assertion from soapui also, and believing that is by design.
    Is there any issue you facing?