Web Services Testing with soapUI

Starting with an overview of SOA and web services testing, this guide take you through a number of hands-on exercises and projects to get you familiar with soapUI. A sure way to raise the quality of your web services.

Web Services Testing with soapUI

Starting
Charitha Kankanamge

Starting with an overview of SOA and web services testing, this guide take you through a number of hands-on exercises and projects to get you familiar with soapUI. A sure way to raise the quality of your web services.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free sample

Book Details

ISBN 139781849515665
Paperback332 pages

About This Book

  • Become more proficient in testing web services included in your service-oriented solutions
  • Find, analyze, reproduce bugs effectively by adhering to best web service testing approaches
  • Learn with clear step-by-step instructions and hands-on examples on various topics related to web services testing using soapUI

Who This Book Is For

This book directly targets software quality assurance professionals, software project managers, and software developers interested in automated or manual testing web services and SOA. Whether you are a seasoned SOA professional or a novice user, with this book you'll learn to effectively use soapUI in testing service-oriented solutions for functional as well as non-functional web services.

Table of Contents

Chapter 1: Web Services Testing and soapUI
SOA and web services
Simple Object Access Protocol
Alternatives to SOAP
Web Services Description Language
Message exchanging patterns
SOAP Faults
Approaches of testing web services
What is soapUI?
Capabilities of soapUI
Installing soapUI
A glance at soapUI user interface
Summary
Chapter 2: The Sample Project
The problem domain
Project pre-requisites
Designing the web services
Implementing the web services
Deploying web services
Summary
Chapter 3: First Steps with soapUI and Projects
Understanding the web services definition
Creating a soapUI project
Invoking the guest management web service
A detailed look at SOAP requests and responses
Generating SOAP Faults
Summary
Chapter 4: Working with Your First TestSuite
A sample test scenario
Creating a TestSuite
Running the first TestSuite
Adding properties to soapUI tests
Summary
Chapter 5: Load and Performance Testing with soapUI
Non-functional testing of web services
Planning for web service performance testing
Using soapUI for performance testing
Working with load tests in soapUI
Summary
Chapter 6: Web Service Simulation with soapUI
Mocking in software testing
Mocking in web services testing
Mock services with soapUI
soapUI mock services in action
Summary
Chapter 7: Advanced Functional Testing with soapUI
Introduction to web services extensions
Configuring Apache Axis2 for WS-Addressing and WS-Security
Testing asymmetric binding policy with soapUI
Validating WS-Security responses
Summary
Chapter 8: Getting Started with REST Testing
Introduction to REST
Testing RESTful APIs using soapUI
REST Services in soapUI
REST parameters
Functional testing of REST services
WADL
Summary
Chapter 9: Testing Databases with soapUI
Testing data in isolation
Setting up soapUI to connect to the database
JDBC Request TestStep
JDBC test assertions
Summary
Chapter 10: JMS Testing with soapUI
Introduction to JMS
JMS integration in soapUI
Summary
Chapter 11: Extending soapUI with Scripting
Introduction to Groovy scripting language
Groovy scripting in soapUI
soapUI ModelItems
Request and response handling using Scripts
Summary
Chapter 12: Automated Testing with soapUI
Test automation
soapUI JUnit integration
soapUI command line executions
Maven soapUI plugin
Summary
Chapter 13: Miscellaneous Topics
soapUI IDE plugins
WS-I validation using soapUI
soapUI integration with external web services' frameworks
Sending attachments with SOAP messages using soapUI
Summary

What You Will Learn

  • Build a simple application based on web services which are deployed on Apache Axis2
  • Identify performance bottlenecks of service-oriented solutions
  • Invoke web services developed as part of a sample project using soapUI
  • Extend the sample soapUI project with TestSuites, TestCases and TestSteps
  • Validate the responses using various assertions, and use of soapUI properties in tests
  • Simulate web services with soapUI, use of static and dynamic responses
  • Test web services configured with WS-* policies (WS-Security, WS-Addressing)
  • Test JDBC datasources and services exposed over JMS and integrate soapUI with maven and Junit

In Detail

Quality is a key to success of service-oriented projects. Utilization of proper tools is important to the outcome of web service testing methodology. Being the leading open source web services testing tool, soapUI helps to build robust and flexible automated tests in a productive manner.

"Web Services Testing with soapUI" guides you on adopting best web service testing mechanisms with the industry leading open source testing tool, soapUI. You will learn to use soapUI effectively in testing service-oriented solutions focusing on testing functional as well as non-functional characteristics of web services. SoapUI is capable of testing JDBC data sources, web applications, RESTful services and web services exposed over transports such as JMS. The book discusses all these features and much more, in detail, through practical and clear examples.

This book is focused on learning soapUI in order to test web services in an effective manner. It starts with a general introduction to service-oriented architecture (SOA) followed by testing aspects of service-oriented solutions. This book aims to give readers a comprehensive overview of usage of soapUI in SOA and web services testing projects.

Starting with an overview of SOA and web services testing, you will quickly get your hands dirty with a sample project which makes use of open source web service engine, Apache Axis2. All demonstrations and hands-on exercises are based on this sample project. The tests in a soapUI project are organized into TestSuites, TestCases and TestSteps. You will also learn how soapUI can be used for both functional and non-functional testing. The book then teaches how by using groovy scripting and integrating with Junit and maven, soapUI can easily be used in automated web services testing.

By the end, you'llhave learned to test functional and non-functional aspects of web services and automate by integrating into continuous build systems using soapUI.

Authors

Table of Contents

Chapter 1: Web Services Testing and soapUI
SOA and web services
Simple Object Access Protocol
Alternatives to SOAP
Web Services Description Language
Message exchanging patterns
SOAP Faults
Approaches of testing web services
What is soapUI?
Capabilities of soapUI
Installing soapUI
A glance at soapUI user interface
Summary
Chapter 2: The Sample Project
The problem domain
Project pre-requisites
Designing the web services
Implementing the web services
Deploying web services
Summary
Chapter 3: First Steps with soapUI and Projects
Understanding the web services definition
Creating a soapUI project
Invoking the guest management web service
A detailed look at SOAP requests and responses
Generating SOAP Faults
Summary
Chapter 4: Working with Your First TestSuite
A sample test scenario
Creating a TestSuite
Running the first TestSuite
Adding properties to soapUI tests
Summary
Chapter 5: Load and Performance Testing with soapUI
Non-functional testing of web services
Planning for web service performance testing
Using soapUI for performance testing
Working with load tests in soapUI
Summary
Chapter 6: Web Service Simulation with soapUI
Mocking in software testing
Mocking in web services testing
Mock services with soapUI
soapUI mock services in action
Summary
Chapter 7: Advanced Functional Testing with soapUI
Introduction to web services extensions
Configuring Apache Axis2 for WS-Addressing and WS-Security
Testing asymmetric binding policy with soapUI
Validating WS-Security responses
Summary
Chapter 8: Getting Started with REST Testing
Introduction to REST
Testing RESTful APIs using soapUI
REST Services in soapUI
REST parameters
Functional testing of REST services
WADL
Summary
Chapter 9: Testing Databases with soapUI
Testing data in isolation
Setting up soapUI to connect to the database
JDBC Request TestStep
JDBC test assertions
Summary
Chapter 10: JMS Testing with soapUI
Introduction to JMS
JMS integration in soapUI
Summary
Chapter 11: Extending soapUI with Scripting
Introduction to Groovy scripting language
Groovy scripting in soapUI
soapUI ModelItems
Request and response handling using Scripts
Summary
Chapter 12: Automated Testing with soapUI
Test automation
soapUI JUnit integration
soapUI command line executions
Maven soapUI plugin
Summary
Chapter 13: Miscellaneous Topics
soapUI IDE plugins
WS-I validation using soapUI
soapUI integration with external web services' frameworks
Sending attachments with SOAP messages using soapUI
Summary

Book Details

ISBN 139781849515665
Paperback332 pages
Read More