Book Image

SoapUI Cookbook

By : Rupert Anderson
Book Image

SoapUI Cookbook

By: Rupert Anderson

Overview of this book

Table of Contents (19 chapters)
SoapUI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Load testing data-driven TestCases concurrently with a shared distributed datasource


This recipe builds on the last two recipes to provide a distributed web service based shared data source that is both reliable under load and being service based, can also be shared across load tests running simultaneously on multiple SoapUI instances.

Getting ready

The approach is actually quite simple, but does require another service to publish the test invoice data in a thread-safe way. For this, we'll use an adapted version of the invoice v1 REST example from the Generating and developing a RESTFul web service stub test-first recipe of Chapter 1, Testing and Developing Web Service Stubs With SoapUI. The new implementation has the following main features:

  • Test Data REST Service

  • Endpoint: http://localhost:9000/test-data-service/invoice

  • Expects Parameter: Test data file location, for example, /temp/invoices2.csv

  • Dependencies: Apache CXF (see Chapter 1, Testing and Developing Web Service Stubs With SoapUI...