Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
SoapUI Cookbook

You're reading from   SoapUI Cookbook Boost your SoapUI capabilities to test RESTful and SOAP APIs with over 65 hands-on recipes

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher Packt
ISBN-13 9781784394219
Length 328 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Rupert Anderson Rupert Anderson
Author Profile Icon Rupert Anderson
Rupert Anderson
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Testing and Developing Web Service Stubs With SoapUI 2. Data-driven Testing and Using External Datasources FREE CHAPTER 3. Developing and Deploying Dynamic REST and SOAP Mocks 4. Web Service Test Scenarios 5. Automation and Scripting 6. Reporting 7. Testing Secured Web Services 8. Testing AWS and OAuth 2 Secured Cloud Services 9. Data-driven Load Testing With Custom Datasources 10. Using Plugins 11. Taking SoapUI Further Index

Introduction

Web service stubs (and mocks—see Chapter 3, Developing and Deploying Dynamic REST and SOAP Mocks) are often developed in the early stages of a project, to quickly provide limited functionality to the client application while the full web services are implemented. This chapter shows how SoapUI can help you quickly test and develop simple Java REST and SOAP web service stubs and generate tests by recording interactions with existing web services. The web service stub implementations that you'll develop will only involve a few lines of Java code and can be run as Java executables. Apart from providing a quick warm up on basic SoapUI testing, the service interfaces and implementation examples will be reused as the basis for more advanced topics later in this book.

What you'll learn

You will learn the following topics:

  • How SoapUI can help you test, update, refactor, and develop a simple stub SOAP web service using its WSDL
  • How SoapUI can help you test and develop a simple stub REST web service
  • How SoapUI's discovery features can help you generate tests
  • To use Apache CXF to generate, implement and run basic JAX-RS and JAX-WS web service stubs

What you'll need

You will need the following software:

  • A Java JDK: To compile and run the code samples (version 1.6 or above)
  • Apache CXF: Apache CXF is used to build, and sometimes run, all the REST and SOAP web services in this chapter
  • An IDE (optional): Using an IDE such as Eclipse should make exploring, compiling, and running the example code easier

Note

New to SoapUI?

While this chapter demonstrates how to set up basic SoapUI REST and SOAP projects, tests, and assertions, it doesn't cover the typical 'getting started' installation, setup, and overview of SoapUI. So if you are completely new to SoapUI, it might also be worth taking a look at the online SoapUI docs, for example, Getting started at http://www.soapui.org/.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime