IT:AD:SoapUI:HowTo:Generate Test Suites/Add an Assertion
Summary
The whole point of a Test Suite is to:
- ARRANGE (input a set of data to test the service with)
- ACT (send off the data)
- ASSERT (verify the results)
You've learnt how to pull data from a Parameters file, you'll learnt how to hit Play, and send it off, and get back results.
Now let's create an ASSERT.
Process
Add an Assert:
You'll get the Assert Editor:
Developers will probably want to use more advanced XPath/XQuery options, but Testers will probably gravitate towards using simple string search paramaters.
The simple string search screen is no more complicated than matching against a string:
When you've finished editing the screen, it will test immediately test it against the response you already have, and of course test all subsequent queries:
whereas if you change the Properties, or some other scenario that makes the Assert fail, you'll see something like:




