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

Creating mock services in SoapUI

Lets now see how to create mock services in SoapUI.

A pre-requisite is that the WSDL is already loaded in the project. In the following example, we have loaded the WSDL in the tool:

  1. Right click on the binding and verify that below options pop up:

    As shown in the figure preceding, select Generate SOAP Mock Service.

  2. Verify that the options screen below pops up after the user has selected Generate Mock Service:

    On the preceding screen you can see the option to select a single as well as multiple operations. To mock you can add and configure your service accordingly here such as if you want to configure the path or the port. Click on OK to proceed forward.

  3. On clicking on OK you will be directed to the following page:

    Now on this screen you may select any operation for which you want to further configure your mock stubs. Also from here you can change the configuration of the mock service endpoint and port details by clicking on the settings icon and you will see the...