36
27
SoapUI Pro
by SMARTBEAR
All requests now have to follow its schema definition. If they don’t, the
test will fail. This is great if we want to catch a bug introduced to the
service.
Many more tests can obviously be added, but the ones I have added
here should get you started.
Go pro: Point and click testing
SoapUI Pro has been extended to support pointing and clicking when
you create tests or add assertions. This is a real time saver and is
something you will really appreciate when you are working under time
constraints.
Creating an XPath assertion can be tricky when you need to get the cor-
rect data. It is very easy to do using SoapUI Pro where you can click on
the data element in the response and get a proper XPath for it.
SoapUI Pro also makes moving data from a response to the next
request easy by assisting with the XPath expression you want to use to
retrieve the correct data.
Verify a range
Let’s revisit verifying that the response is within a certain range. We
did that by writing an XPath validation manually. SoapUI Pro has
implemented a wizard that will remove a lot of the details you have to
remember and allow you to focus on the actual problem: verifying that
the conversion rate between Euro and US Dollar is larger than one.
¿
Add a new assertion.
¿
Select “Property Content.”
¿
Select “XPath Match.”
¿
Add it.
¿
Click on the small node selector to the left of the “Declare”
button.