Book Image

Mastering SoapUI

By : Pranai Nandan, Surendra Mohan
Book Image

Mastering SoapUI

By: Pranai Nandan, Surendra Mohan

Overview of this book

SoapUI is an open-source cross-platform testing application that provides complete test coverage and supports all the standard protocols and technologies. This book includes real-time examples of implementing SoapUI to achieve quality and business assurance. Starting with the features and functionalities of SoapUI, the book will then focus on functional testing, load testing, and security testing of web services. Furthermore, you will learn how to automate your services and then design data-driven, keyword-driven, and hybrid-driven frameworks in SoapUI. Then the book will show you how to test UIs and services using SoapUI with the help of Selenium. You will also learn how to integrate SoapUI with Jenkins for CI and SoapUI test with QC with backward- and forward-compatibility. The final part of the book will show you how to virtualize a service response in SoapUI using Service Mocking. You will finish the journey by discovering the best practices for SoapUI test automation and preparing yourself for the online certification of SoapUI.
Table of Contents (18 chapters)
Mastering SoapUI
About the Author
About the Reviewer
SoapUI Integration with Jenkins and HP QC


Assertions are validations which are used to validate whether the system is working as expected or not.

SoapUI provides you with a variety of assertions, let's have a look at each one of them by category:

  • Property Content: This assertion type is used to validate the parameter data returned in response by the service

    • XPath Match: This assertion is used to match a particular node value in the response with the expected values

    • XQuery Match: When you want to validate multiple sets of values from the response, XQuery Match is used to validate multiple parameters of data in the response in a single assertion

In the preceding example there is an XML which has multiple price tags and the tester wants to retrieve all the prices from an XML response.

So the XQuery searches in every item and returns all the prices for each Item.

  • Contains: This assertion is used to validate if a particular value or string exists in the response or supports wildcards

  • NotContains: This assertion is to make sure...