Forum Discussion

IceFireForce's avatar
IceFireForce
New Contributor
12 years ago

SoapUI bad bug - changing REST property fails Assertion

I have an issue!

I am testing a REST request and validating the RESPONSE using an ASSERTION.

Here is what happens!

The REST request has a Property "ID". If the ID is changed (manually, or through property transfer); then the Assertion fails COMLETELY - all fields show NULL.

Is this a SoapUI bug?

Here are the exact steps:

1.Enter the REST request, using a specific ID proprty, let's say 0001.
2.Add a validation through Assertion (Message Content Assertion)
3.Now, manually change the REST request's ID property to 0002
4.Run the test and observe:

The Assertion will fail - and not just because the response is different this time - it rather shows NULL value on ALL fields.

Now click "Reconfigre" - the values magically pop-up!

Please, help.
  • SiKing's avatar
    SiKing
    Community Expert
    Are you using the Message Content Assertion? If yes, then this is broken(?) for REST calls. It works reliably only for SOAP calls that have strictly defined schema.