Mastering SoapUI - Pranai Nandan - E-Book

Mastering SoapUI E-Book

Pranai Nandan

0,0
29,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Master the art of testing and automating your SOA using SoapUI

About This Book

  • Design real-time test automation frameworks for Enterprise applications using SoapUI
  • Learn how to solve test automation issues for complex systems
  • A complete guide to understanding SOA automation from quality assurance to business assurance

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 SOAP UI tool.

What You Will Learn

  • Familiarize yourself with Test Web services from functional, nonfunctional, and security aspects
  • Learn to test real-time service orchestrations
  • Design test automation solutions for SOA-based Enterprise applications
  • Learn multilayer test automation
  • Selenium plus SoapUI under a single umbrella
  • Integrate your SoapUI framework with Jenkins

In Detail

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.

Style and approach

Filled with real-time examples, this book will help readers take their knowledge to the next level. This book is a comprehensive guide that will cover the end-to-end life cycle of implementing SoapUI in various phases of software testing and the software development life cycle.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 165

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Mastering SoapUI
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introduction to SOA Testing
SoapUI architecture
Test architecture in detail
Test approaches in SOA testing
Functional testing
Let's see how to configure a SOAP service in SoapUI for functional testing
Performance testing
Security testing
Summary
2. Functional Testing In Detail
Service orchestration
A new user install in a telecom application
Key features of SoapUI to test service orchestration
Dynamic data generation
Groovy Script for random number generation
Property transfer
Assertions
Configuring SoapUI for JMS services using Hermes JMS
Groovy script
End-to-end demonstration of testing an orchestrated flow
Summary
3. Performance Testing of SOA Applications in Detail
Performance testing in the SOA world
Performance test planning
Types of tests
Test execution phase
Quality gates
Performance testing using SoapUI
Assertions in performance testing
Analysis
SoapUI and LoadUI Integration
Pre-requisites
Summary
4. Security Testing in Detail
Security testing in SOA world
A real time example of security testing in web services
Configuring boundary scan types
Summary
5. Test Automation in SOA World
Test automation ROI
Test automation using SoapUI
Types of test automation framework
Scripting types
Utilities for a test automation framework
Groovy script for reading data from an Excel sheet
Summary of the script
Database connection – why is it required?
Test automation report
Dynamic environment configuration
Assertions or validation
Summary
6. Multilayer Test Automation Using SoapUI and Selenium
UI test automation tools
SoapUI and Selenium integration
Automation in Google Chrome
Working with the IE browser
Implementing a real world test case using SoapUI and Selenium together
Locator identification
Summary
7. SoapUI Integration with Jenkins and HP QC
DevOps
Jenkins
Installing Jenkins on Windows
Integrating Jenkins with SoapUI
Integrating the test tools
Post execution steps
Integrating with test management tools
QC Integration with SoapUI
Summary
8. End-to-End Test Automation
Integrating everything together
Summary
9. Service Mocking
Creating mock services in SoapUI
Dispatch methods
Sequence
Random
XQuery Match
XPath Match
Script
Deploying mock services to an external server
Summary
10. Best Practices in SOA Test Automation
Why do we need best practices?
Choose the right tool
Get involved early in the lifecycle
Virtualization/mock services support
Get the right resources
Candidate for test automation
Dedicated and locked test environment
Encapsulated test automation framework
Benefits from TAF encapsulation
Dynamic assertions or validations
Performing non-functional tests
Correct onshore, nearshore and offshore ratios
Utilizing a unit test with test automation
Building good manual test cases
Summary
Index

Mastering SoapUI

Mastering SoapUI

Copyright © 2016 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: August 2016

Production reference: 1260816

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78398-080-2

www.packtpub.com

Credits

Author

Pranai Nandan

Reviewer

Dennis Knol

Acquisition Editor

Prachi Bisht

Content Development Editor

Trusha Shriyan

Technical Editor

Nirant Carvalho

Copy Editors

Safis Editing

Madhusudan Uchil

Project Coordinator

Kinjal Bari

Proofreader

Safis Editing

Indexer

Pratik Shirodkar

Graphics

Kirk D'Penha

Production Coordinator

Shantanu N. Zagade

Cover Work

Shantanu N. Zagade

About the Author

Pranai Nandan is a "Tester by Choice and Developer by birth" born in the small city of U.P Bareilly India he has come a long way in his life, he started his journey of his studies with Hartman college and temporarily ended it with a BTECH in Computer Science from Invertis university. Over the course of his professional careers he has worked in several geographies across the world including UK and Europe with different companies like QA Infotech, Hitachi Consulting, TIBCO Software's. Currently he works with Cognizant as a Senior Associate in Amsterdam Netherlands. His work in the Testing field has resulted in multiple Test Automation frameworks for different vertical including Retail, Telecom, Media and BFSI. Pranai Nandan is someone who is intrigued by test automation and implementing complex solutions for enterprise business applications to help them achieve their desired ROI.

Apart from SoapUI he also has expertise on other SOA test Automation and Virtualization tools including Ready API, IBM RIT, ITKO LISA, HP Service Virtualization. His technical expertise also includes tools like Selenium web driver, JMeter, Microsoft, VSTS, HP Load Runner and Jenkins.

His hobbies are writing poems, playing cricket, knowing about history of different culture& travelling.

Acknowledgments

I have been helped by several people in my life and those learnings and experiences have made me what I am today I would first like to thank my Mother "Kusum Lata" who herself is the biggest source of inspiration to me she is someone who has loved me the most and laid down the principles of values and rite in me. A big thanks to my father, most gentle man I have ever known "Devki Nandan" for his wonderful guidance and support in my life.

I would also like to thank my two beautiful elder sisters who have loved me taught me the meaning of right and wrong "Preeti Srivastava" & "Jyoti Srivastava" and last but not the least I would like to thank my would be wife and my friend from a long time "Sneha Singh" who has been the best of friend to me for long time she is someone who has motivated me on my rough days and celebrated my victorious moments.

Winners Don't Do different Things they Do Things Differently

About the Reviewer

Dennis Knol has worked for more than 10 years as a test engineer at various companies and on various projects. Due to his background as a developer, he started with automated testing. As it became more fun and interesting, he decided to continue with it. Over the course of several years, he has gathered a lot of experience with a broad selection of tools, such as Selenium, Rational Robot, HP Quick Test Pro, and TTWorkbench, and worked with several programming languages, such as Java, .NET, Visual Basic, and TTCN-3.

www.PacktPub.com

eBooks, discount offers, and more

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

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 higherSelenium Web driver JarsJenkinsJExcel JarLoadUIApache 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.

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 <[email protected]>, 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:

Log in or register to our website using your e-mail address and password.Hover the mouse pointer on the SUPPORT tab at the top.Click on Code Downloads & Errata.Enter the name of the book in the Search box.Select the book for which you're looking to download the code files.Choose from the drop-down menu where you purchased this book from.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 WindowsZipeg / iZip / UnRarX for Mac7-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 <[email protected]> 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 <[email protected]>, and we will do our best to address the problem.

Chapter 1. Introduction to SOA Testing

With the increase in implementation of service-oriented architecture (SOA), architecture across applications leads to various technological and business advantages to the organizations implementing it.

But as it's said; There are two sides to every coin, with SOA architecture came advantages such as the following:

ReusabilityBetter scalabilityPlatform independencyBusiness agilityEnhanced security

But there are also disadvantages:

Increased response timeService management effort is highImplementation cost is high

In this chapter we will study the following topics:

Introduction to SOA SoapUI architectureTest levels in SOA testingSOA testing approachIntroduction to functional, performance and security testing using SoapUIIs SOA really advantageous?

Well, let's talk about a few of the advantages of SOA architecture:

Reusability: If we want to reuse the same piece of functionality exposed via a web service we should be absolutely sure that the functionality of the service is working as expected; security of the service is reliable and has no performance bottlenecks.Business Agility: With more functional changes being easily adopted in a web service, we make the web service prone to functional bugs.Enhanced Security: Web services are usually wrapped around systems that are being protected by several layers of security like SSL and usage of security tokens. Use of the business layer to protect the technical services to be directly exposed is usually handled by these layers. If the security of these layers is removed, the web service is highly vulnerable. Also the use of XML as a communication protocol opens the service to XML based attacks. So to mitigate risks we have SOAtesting, and to help you test SOA architecture we have multiple testing tools on the market for example; SoapUI, SoapUI Pro, HP Service Test, ITKO LISA and SOA Parasoft.

But the most widely used and open source tool in the SOA testing arena is SoapUI. Following is a comparative analysis of the most famous tools in the Web service testing & test automation arena.

Comparative Analysis:

S.No

Factors

SoapUI

SaopUI PRO

ITKO LISA

SOA Parasoft

1

Cost

Open source

400 $/License

Highly Costly

Highly Costly

2

Multilayer testing

Yes

Yes

Yes

Yes

3

Scripting support

Yes

Yes

Yes

Yes

4

Protocol support

Yes

Yes

Yes

Yes

5

CI support

Yes

Yes

Yes

Yes

6

Ease of use

8/10

9/10

9/10

9/10

7

Learning curve

8/10

8/10

6/10

6/10

As we can see by the preceding comparison metrics, Ease of use, Learning curve, and Cost play a major role in selection of a tool for any project. So to learn ITKO LISA or SOA Parasoft, there is very limited, or no, material available on the Internet. To get resources trained you need to go to the owners of these tools and pay extra and then pay more if you need the training a second time.

This gives additional advantages to SoapUI and SoapUI Pro to be the first choice for Test Architects and Test Managers for their projects.

Now let's talk about the closely related brothers in this subset; SoapUI & SoapUI Pro are from the same family, Eviware, which is now SmartBear. However, SoapUI Pro has an enriched functionality and GUI which have additional functionalities to help reduce the time for testing, justifying its cost as compared to SoapUI open source.

Here is a quick comparison:

Criteria

SoapUI

SoapUI Pro

Reporting

Very limited, no rich reporting

Reports are available in different formats

XPath Builder

Not Available

Available

Data source

Not Available

Multiple options for data sources available

Data sink

Not Available

Available

XQuery Builder

Not Available

Available