Book Image

Mastering SoapUI

Book Image

Mastering SoapUI

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
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
7
SoapUI Integration with Jenkins and HP QC
Index

Preface

Mastering SoapUI as the name suggests is book which is all about Soap UI. The book provides the in-depth knowledge of functional, security, and performance testing on service-oriented architecture by using SoapUI. This book also explains you industry standard test automation framework based on SoapUI which are capable of invoking UI, database, and Web services. Through this book, readers would also come to know how we can leverage SoapUI for functional test automation and would learn to integrate SoapUI with tools like Jenkins, HP QC, and Selenium. We will also learn to create various reusable utilities for test automation. This book provides it readers with real time examples.

What this book covers

Chapter 1, Introduction to SOA Testing, introduces you to the key features of SoapUI, and by the end of this chapter, the readers will be familiar with SOA and SOA Testing. They will have a basic understanding of functional, load, and security testing in SOA using SoapUI.

Chapter 2, Functional Testing in Detail, explains the readers how to functionally test a web service using SoapUI. By the end of the chapter, they will be able to test web services and service orchestration functionality and will also know how to use the features such as XPath, Assertions, HermesJMS.

Chapter 3, Performance Testing of SOA Applications in Detail, discusses about performance testing of SOA using SoapUI and various load patterns. In this chapter, we would also see the integration of SoapUI with LoadUI.

Chapter 4, Security Testing in Detail, In this chapter, we will learn to configure security tests and validate the results .We will see how to configure the test types and add additional test criteria for each scan type using SoapUI.

Chapter 5, Test Automation in SOA World, will discuss test automation in detail and teach to create test automation frameworks and reusable assets for your automation framework, and designing an automation framework.

Chapter 6, Multilayer Test Automation Using SoapUI and Selenium, will teach Multilayer testing, Integration of selenium and SoapUI, Locator Identification for UI, and Automating Multilayers together using SoapUI and Selenium.

Chapter 7, SoapUI Integration with Jenkins and HP QC, will discuss about DevOps and the way we can achieve it by integrating SoapUI with Jenkins. You will also learn to integrate SoapUI with test management tools such as QC.

Chapter 8, End-to-End Test Automation, will explain how to create end-to-end test automation frameworks by integrating different tools and utilities together. This will provide a real-time view of end-to-end automation.

Chapter 9, Service Mocking, will discuss how to create mock services and deploy them. We will also learn to implement different dispatch type of the service as per our business needs.

Chapter 10, Best Practices in SOA Test Automation, will teach you about the best practices and guidelines for SOA test automation.

Chapter 11, Crack the Certification, can be found at https://www.packtpub.com/sites/default/files/downloads/2113OS_Chapter_11_Crack_the_Certification.pdf.

What you need for this book

For this book, you would need the following software:

  • SoapUI [O.S] 4.0 and higher

  • Selenium Web driver Jars

  • Jenkins

  • JExcel Jar

  • LoadUI

  • Apache Ant 1.9.2

Who this book is for

The book is intended for test architects, SOA test specialists, automation testers, test managers, and software developers who have a good understanding of SOA, web services, Groovy Scripting, and the SoapUI tool.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We are storing the results to the database as an ActualDomainHit and we are comparing it against the expected values."

A block of code is set as follows:

def rows = sql.rows("select * from PROJECT where name like 'Pranai%'")
 assert rows.size() == 2

Any command-line input or output is written as follows:

set Script=C:\\SOAP_Test\
  cd %Script%
 call ant -f  Build.xml
set Script=C:\\mfg
  %progdrive%
 cd %Script%
  
 call ant -f Build.xml
 pause(100000000000000)

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Select the name of the security test and click on OK."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Mastering-SoapUI. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.