Forum Discussion

auplenchwar's avatar
auplenchwar
New Contributor
6 years ago

SOAP Assertion vs ReadyAPI Assertions

In my project I put assertion using regex in one of the step. It finds the message in the response and the regex gives me the other attribute values. But this works in ReadyAPI and not in SOAPUI free version. 

Following is the regex which i was verifying:

CheckResult.CheckResultItem[?(@.MessageText=='A US 135 Outbound is required for this Leg and Customs is not available at KCMH')].CheckStatus

I am verifying the CheckStatus as [FAILURE]. But when I test the assertion it gives me []

Can someone help/correct what is the issue in it?

2 Replies

  • avidCoder's avatar
    avidCoder
    Super Contributor

    I can help if you could send me the reponse payload. So, that I can verify how you are writing this.

    • auplenchwar's avatar
      auplenchwar
      New Contributor

      I have attached the response. if you refer the CheckResultItem 6th index, I am trying to get the CheckStatus and Name values where I see the messagetext as 'Outbound Customs is required for this Leg and Customs is not available at VABB.'