SoapUI Cookbook

Boost your SoapUI capabilities to test RESTful and SOAP APIs with over 65 hands-on recipes
Preview in Mapt

SoapUI Cookbook

Rupert Anderson

2 customer reviews
Boost your SoapUI capabilities to test RESTful and SOAP APIs with over 65 hands-on recipes
Mapt Subscription
FREE
$29.99/m after trial
eBook
$13.50
RRP $26.99
Save 49%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$13.50
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


SoapUI Cookbook Book Cover
SoapUI Cookbook
$ 26.99
$ 13.50
Web Services Testing with soapUI Book Cover
Web Services Testing with soapUI
$ 29.99
$ 15.00
Buy 2 for $28.50
Save $28.48
Add to Cart

Book Details

ISBN 139781784394219
Paperback328 pages

Book Description

Packed with practical guidance, this book will show you how to build core SoapUI skills, integrate open source libraries, and code the extra functionality needed to quickly overcome common and advanced API test problems.

Building up your skills, you will progress to more advanced topics such as Groovy scripting, testing secured services, load test concurrency issues, using plugins and developing your own!

So when out-of-the-box SoapUI can't do exactly what you need or the quick guidance you require just isn't there, then take, tweak, and use what you need from a broad range of practical examples in this book and customize your way to API testing success with coverage of SOAP, REST, and Groovy.

Table of Contents

Chapter 1: Testing and Developing Web Service Stubs With SoapUI
Introduction
Generating a WSDL-first web service using SoapUI tool integration
Developing a SOAP web service test-first
Updating a SOAP project using a WSDL
Updating SOAP projects using WSDL refactoring (Pro)
Generating and developing a RESTful web service stub test-first
Generating SoapUI tests with REST discovery (Pro)
Chapter 2: Data-driven Testing and Using External Datasources
Introduction
Creating and checking data with the JDBC Request TestStep
Parameterizing SQL queries with the JDBC Request TestStep
Setting properties from an external file
Importing CSV file data into an in-memory H2 database with Groovy
Looping over CSV file data and driving tests with Groovy
Querying MongoDB with Groovy
Publishing, browsing, and consuming ActiveMQ JMS messages via the REST API
Chapter 3: Developing and Deploying Dynamic REST and SOAP Mocks
Introduction
Selecting mock responses using Groovy
Developing dynamic database-driven SOAP mocks
Developing dynamic database-driven REST mocks
Building mock responses dynamically
Deploying mocks as WAR files
Chapter 4: Web Service Test Scenarios
Introduction
Testing WSDL and response WS-I compliance
Testing SOAP response schema compliance
Testing REST response XML schema compliance
Testing response compliance using JSON schemas
Testing and mocking SOAP (MTOM+XOP) attachments
Testing HATEOAS links
Testing polling style asynchronous REST services
Testing asynchronous SOAP service callbacks
Testing for e-mails with Groovy
Testing files with Groovy
Chapter 5: Automation and Scripting
Introduction
Running mocks from the command line
Running tests from the command line
Providing environment-specific properties
Generating mock WAR files from the command line
Running mocks and tests using Maven
Running mocks and tests using Java and JUnit
Running mocks and tests using Groovy scripts
Running mocks and tests using Gradle
Chapter 6: Reporting
Introduction
Generating reports from test runners
Publishing JUnit reports using Jenkins
Exporting custom reports using Groovy
Analyzing test, HTTP, and mock coverage (Pro)
Chapter 7: Testing Secured Web Services
Introduction
Testing basic HTTP-authenticated RESTful web services
Testing HTTP Digest-authenticated RESTful web services
Testing HTTP form-authenticated RESTful web services
Creating and using X.509 certificates to test web services over HTTPS
Testing client certificate authenticated web services
Securing mock services using X.509 certificates
Testing WS-Security UsernameToken, Timestamp, and TransportBinding
Scanning web service security vulnerabilities
Chapter 8: Testing AWS and OAuth 2 Secured Cloud Services
Introduction
Testing Dropbox using a pregenerated OAuth 2 Access Token
Testing Dropbox using OAuth 2 Authorization Code Grant flow
Testing Dropbox using OAuth 2 Implicit Grant flow
Testing the Gmail API using OAuth2
Automating OAuth 2 authentication and consent
Testing AWS services using Access Key authentication
Chapter 9: Data-driven Load Testing With Custom Datasources
Introduction
Load testing data-driven TestCases concurrently with separate Groovy datasources
Load testing data-driven TestCases concurrently with a shared Groovy datasource
Load testing data-driven TestCases concurrently with a shared distributed datasource
Running load tests using Maven, command line, Java, Groovy, and Gradle scripts
Chapter 10: Using Plugins
Introduction
Using old-style (open source) plugins
Sending e-mails with the Email TestStep plugin
Using plugins via the plugin manager (Pro)
Using the Groovy Console plugin to create and run a new TestStep
Packaging old-style plugins when running tests with Maven
Chapter 11: Taking SoapUI Further
Introduction
Building, packaging, and running SoapUI from the source code
Importing, building, running, and debugging SoapUI in Eclipse
Developing a Groovy plugin with custom Action using Gradle
Logging from extensions and scripts
Prompting for user input with the UISupport class
Creating a custom RequestFilter (Listener) plugin
Creating a custom TestStep (Factory) plugin to check whether a file exists

What You Will Learn

  • Generate tests, refactor interfaces, and learn how to develop stub REST and SOAP service implementations using Java
  • Create data-driven tests and check results using MySQL, in-memory H2 DB, MongoDB, file, and ActiveMQ datasources
  • Develop dynamic data-driven REST and SOAP service mocks using Groovy scripting to quickly provide realistic test service implementations
  • Automate functional and load tests and run mocks by creating Shell, Java, JUnit, Gradle, Groovy, and Maven scripts
  • Test AWS and OAuth 2 cloud-based services including Dropbox and Google's Gmail API

Authors

Table of Contents

Chapter 1: Testing and Developing Web Service Stubs With SoapUI
Introduction
Generating a WSDL-first web service using SoapUI tool integration
Developing a SOAP web service test-first
Updating a SOAP project using a WSDL
Updating SOAP projects using WSDL refactoring (Pro)
Generating and developing a RESTful web service stub test-first
Generating SoapUI tests with REST discovery (Pro)
Chapter 2: Data-driven Testing and Using External Datasources
Introduction
Creating and checking data with the JDBC Request TestStep
Parameterizing SQL queries with the JDBC Request TestStep
Setting properties from an external file
Importing CSV file data into an in-memory H2 database with Groovy
Looping over CSV file data and driving tests with Groovy
Querying MongoDB with Groovy
Publishing, browsing, and consuming ActiveMQ JMS messages via the REST API
Chapter 3: Developing and Deploying Dynamic REST and SOAP Mocks
Introduction
Selecting mock responses using Groovy
Developing dynamic database-driven SOAP mocks
Developing dynamic database-driven REST mocks
Building mock responses dynamically
Deploying mocks as WAR files
Chapter 4: Web Service Test Scenarios
Introduction
Testing WSDL and response WS-I compliance
Testing SOAP response schema compliance
Testing REST response XML schema compliance
Testing response compliance using JSON schemas
Testing and mocking SOAP (MTOM+XOP) attachments
Testing HATEOAS links
Testing polling style asynchronous REST services
Testing asynchronous SOAP service callbacks
Testing for e-mails with Groovy
Testing files with Groovy
Chapter 5: Automation and Scripting
Introduction
Running mocks from the command line
Running tests from the command line
Providing environment-specific properties
Generating mock WAR files from the command line
Running mocks and tests using Maven
Running mocks and tests using Java and JUnit
Running mocks and tests using Groovy scripts
Running mocks and tests using Gradle
Chapter 6: Reporting
Introduction
Generating reports from test runners
Publishing JUnit reports using Jenkins
Exporting custom reports using Groovy
Analyzing test, HTTP, and mock coverage (Pro)
Chapter 7: Testing Secured Web Services
Introduction
Testing basic HTTP-authenticated RESTful web services
Testing HTTP Digest-authenticated RESTful web services
Testing HTTP form-authenticated RESTful web services
Creating and using X.509 certificates to test web services over HTTPS
Testing client certificate authenticated web services
Securing mock services using X.509 certificates
Testing WS-Security UsernameToken, Timestamp, and TransportBinding
Scanning web service security vulnerabilities
Chapter 8: Testing AWS and OAuth 2 Secured Cloud Services
Introduction
Testing Dropbox using a pregenerated OAuth 2 Access Token
Testing Dropbox using OAuth 2 Authorization Code Grant flow
Testing Dropbox using OAuth 2 Implicit Grant flow
Testing the Gmail API using OAuth2
Automating OAuth 2 authentication and consent
Testing AWS services using Access Key authentication
Chapter 9: Data-driven Load Testing With Custom Datasources
Introduction
Load testing data-driven TestCases concurrently with separate Groovy datasources
Load testing data-driven TestCases concurrently with a shared Groovy datasource
Load testing data-driven TestCases concurrently with a shared distributed datasource
Running load tests using Maven, command line, Java, Groovy, and Gradle scripts
Chapter 10: Using Plugins
Introduction
Using old-style (open source) plugins
Sending e-mails with the Email TestStep plugin
Using plugins via the plugin manager (Pro)
Using the Groovy Console plugin to create and run a new TestStep
Packaging old-style plugins when running tests with Maven
Chapter 11: Taking SoapUI Further
Introduction
Building, packaging, and running SoapUI from the source code
Importing, building, running, and debugging SoapUI in Eclipse
Developing a Groovy plugin with custom Action using Gradle
Logging from extensions and scripts
Prompting for user input with the UISupport class
Creating a custom RequestFilter (Listener) plugin
Creating a custom TestStep (Factory) plugin to check whether a file exists

Book Details

ISBN 139781784394219
Paperback328 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Web Services Testing with soapUI Book Cover
Web Services Testing with soapUI
$ 29.99
$ 15.00
Groovy 2 Cookbook Book Cover
Groovy 2 Cookbook
$ 29.99
$ 15.00
Mastering Selenium WebDriver Book Cover
Mastering Selenium WebDriver
$ 35.99
$ 18.00
Groovy for Domain-specific Languages - Second Edition Book Cover
Groovy for Domain-specific Languages - Second Edition
$ 39.99
$ 20.00
HTML5 and CSS3: Building Responsive Websites Book Cover
HTML5 and CSS3: Building Responsive Websites
$ 67.99
$ 34.00
Python GUI Programming Cookbook - Second Edition Book Cover
Python GUI Programming Cookbook - Second Edition
$ 39.99
$ 20.00