Forum Discussion

bpatten's avatar
bpatten
New Contributor
14 years ago

Assertions in soapUI cauing failures in loadUI

I have soapUI projects with assertions in them, such as 'contains' with the string '"success": true' being expected. In soapUI this works just fine and the test runs correctly.

However, in loadUI I get the message
[[Contains]Missing token["success":true] in Response

Why is the response of the soapUI test not being properly consumed by loadUI? Is this something that I need to somehow account for in setting up the loadUI execution of the soapUI tests? Is this a bug in loadUI? (in soapUI?)
  • Hi!

    Try to check Add TestCase Properties to Result Message in the soapUI Runner's settings. Also, in your soapUI TestCase, make sure to save the response (that you are asserting) to a TestCase Property.

    That way you can inspect the actual response in a TableLog (connected to the first output of the soapUI Runner).

    Does this help?

    Henrik
    SmartBear Software
  • bpatten's avatar
    bpatten
    New Contributor
    I added the check as you stated in the SoapUI runner.

    Not sure how to add the testcase result as a property.