Forum Discussion

DLawrence's avatar
DLawrence
New Contributor
12 years ago

[Resolved] Assertion Problem in SoapUI Load Test

I have a very simple Test Case set up. It just makes a single call and then an assertion checks the response contains a certain tag to make sure the response isn't a failure of some kind.

This test works fine with no issues.

However when I convert it to a SoapUI Load Test the assertion always fails. I have run a packet monitor and can see that the results returned are correct and have tried changing the assertion from simple to xpath matching - both fail the same way.

I have seen a few forum posts on this but no response for a resolution:
http://forum.soapui.org/viewtopic.php?f=2&t=21614
http://forum.soapui.org/viewtopic.php?f=2&t=19150
http://forum.soapui.org/viewtopic.php?f=5&t=1461

Attached are some images which show the issue





  • Hi,

    In the three forum posts you listed the poster never answered back unfortunately.

    Is this a load test where you are using CDATA?

    You can use the XPath match in the request test step, is there a reason whey you need to use it as an Assertion test step?


    Regards,
    Marcus
    SmartBear Support
  • DLawrence's avatar
    DLawrence
    New Contributor
    And no I'm not using CDATA, just looking for any returned string in the valid response - doesn't even need to be an XPath, a simple text check will do but neither work.
  • DLawrence's avatar
    DLawrence
    New Contributor
    Okay, didn't realise you could run assertions directly on the call. Have done this and it now works.

    Still strange why the Assertion step didn't work, but this does what I need it to for my testing, thanks.