From the course: API Test Automation with SoapUI

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Testing a SOAP API

Testing a SOAP API

Now that we have a SOAP API set up in SOAPUI, let's take a look at how to test it. Testing it in this tool will work in much the same way that it would for the RESTful APIs that we've looked at. I'll start with creating a test suite. And we'll name it CalculatorTests. And then I'll click on this to add a test case. Let's just say testing ad. And then back in the ad request, I'll click on the second option here to add this request to my testing ad test case. Now, I'll open that request, and let's add an assertion to it. And under the property content here, I'll scroll down and choose the XPath match option here, and add that. In order to create an XPath expression, I'll first need to declare a namespace. So I'll just click on this Declare button here, and SOAPUI will automatically add that for me. Now I can use this namespace to get the add result value. So I will use this namespace, namespace one,…

Contents