Web Services Testing with soapUI


Web Services Testing with soapUI
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 332 pages [ 235mm x 191mm ]
Release Date : October 2012
ISBN : 1849515662
ISBN 13 : 9781849515665
Author(s) : Charitha Kankanamge
Topics and Technologies : All Books, Web Development, Open Source, SOA, Web Services

Table of Contents

Preface
Chapter 1: Web Services Testing and soapUI
Chapter 2: The Sample Project
Chapter 3: First Steps with soapUI and Projects
Chapter 4: Working with Your First TestSuite
Chapter 5: Load and Performance Testing with soapUI
Chapter 6: Web Service Simulation with soapUI
Chapter 7: Advanced Functional Testing with soapUI
Chapter 8: Getting Started with REST Testing
Chapter 9: Testing Databases with soapUI
Chapter 10: JMS Testing with soapUI
Chapter 11: Extending soapUI with Scripting
Chapter 12: Automated Testing with soapUI
Chapter 13: Miscellaneous Topics
Index
  • Chapter 1: Web Services Testing and soapUI
    • SOA and web services
      • Service-oriented solutions
        • Case study
        • Building blocks of SOA
    • Simple Object Access Protocol
    • Alternatives to SOAP
      • REST
      • Java Script Object Notation
    • Web Services Description Language
    • Message exchanging patterns
    • SOAP Faults
    • Approaches of testing web services
      • Unit testing of web services
      • Functional testing
        • Tool assisted testing
        • Using client APIs provided by service container middleware
      • Integration testing of web services
      • Performance testing of web services
      • The common challenges of Web services testing
        • Use of external web services
        • Implications of using complex standards and protocols
        • Headless nature of web services
    • What is soapUI?
    • Capabilities of soapUI
    • Installing soapUI
      • System requirements
      • Installing soapUI on Linux
      • soapUI installation on Windows
      • Installing soapUI on MacOS
    • A glance at soapUI user interface
    • Summary
    • Chapter 2: The Sample Project
      • The problem domain
      • Project pre-requisites
        • Java
        • Apache Ant
        • MySQL
        • Setting up Apache Axis2
        • Setting up project source directories
      • Designing the web services
        • Creating the database
      • Implementing the web services
        • Web services fault handling
        • Managing database operations
        • Completing the web service implementation classes
      • Deploying web services
      • Summary
      • Chapter 3: First Steps with soapUI and Projects
        • Understanding the web services definition
          • Schema
          • portType
          • binding
          • Service
        • 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
            • Adding TestCases
              • addRoom TestCase
              • getRoomDetails TestCase
              • deleteRoom TestCase
          • Running the first TestSuite
            • Adding test assertions
              • Not SOAP Fault assertion
              • XPath Match assertion
              • The Contains assertion
          • Adding properties to soapUI tests
            • Reading property values from a file
          • Transferring property values between TestSteps
        • Summary
          • Chapter 5: Load and Performance Testing with soapUI
            • Non-functional testing of web services
              • Performance testing
            • Planning for web service performance testing
            • Using soapUI for performance testing
            • Working with load tests in soapUI
              • Limit of a load test
              • Threads in a soapUI load test
              • Load test strategies of soapUI
                • Simple load strategy
                • Burst load strategy
                • Thread load strategy
                • Variance strategy
              • A closer look at the load test report and statistics of soapUI
              • Using load test assertions in soapUI
                • The Max Errors assertion
                • The Step Average assertion
                • Step TPS assertion
                • The Step Maximum assertion
                • The Step Status assertion
                • LoadTest options
            • Summary
            • Chapter 6: Web Service Simulation with soapUI
              • Mocking in software testing
              • Mocking in web services testing
                • Mock services and contract-first web service development
                • Simulating services that are not accessible
                • Dealing with test environmental restrictions
              • Mock services with soapUI
                • The structure of soapUI MockService
                  • MockService details
                  • MockOperation details
                  • Dispatching styles of MockOperation
                  • MockResponse details
              • soapUI mock services in action
                • Static responses – the basic scenario
                • Using dynamic responses
              • Summary
              • Chapter 7: Advanced Functional Testing with soapUI
                • Introduction to web services extensions
                  • What is WS-Addressing
                  • What is WS-Security
                    • WS-Policy
                    • WS-SecurityPolicy
                    • WS-Trust
                    • WS-SecureConversation
                • Configuring Apache Axis2 for WS-Addressing and WS-Security
                  • WS-Addressing in Apache Axis2
                  • WS-Security in Apache Axis2
                • Testing the WS-Addressing with soapUI
                  • Validating the WS-Addressing responses
                • Testing WS-Security with soapUI
                • Web service authentication
                  • Securing GuestManagementService
                  • Testing the secured GuestManagementService with soapUI
                • Project level WS-Security configurations in soapUI
              • Testing asymmetric binding policy with soapUI
                • Asymmetric binding
                  • Signing SOAP messages
                  • Securing RoomManagementService
                  • Testing secured RoomManagementService with soapUI
              • Validating WS-Security responses
              • Summary
                • Chapter 8: Getting Started with REST Testing
                  • Introduction to REST
                    • Represent everything with URIs
                    • Using standard HTTP methods
                    • Linking resources together
                    • Multiple representations of resources
                    • Stateless communication
                  • Testing RESTful APIs using soapUI
                  • REST Services in soapUI
                    • Request and response representation
                    • Using POST or PUT requests in soapUI REST services
                    • Reading POST message content from a file
                    • Inserting the HTTP Basic Authentication header to requests
                  • REST parameters
                    • Query parameters
                    • Template parameters
                    • Matrix parameters
                    • Header 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 Request properties
                    • JDBC test assertions
                      • Stored procedures with JDBC Request TestStep
                      • Accessing soapUI properties from SQL query
                    • Summary
                    • Chapter 10: JMS Testing with soapUI
                      • Introduction to JMS
                        • Setting up Apache ActiveMQ
                      • JMS integration in soapUI
                        • Working with JMS messaging in soapUI
                        • Validating JMS responses
                        • Verifying end-to-end JMS message delivery using the sample project
                          • Configuring JMS in Apache Axis2
                        • Configuring a session in HermesJMS
                        • Adding a JMS endpoint in soapUI
                      • Summary
                      • Chapter 11: Extending soapUI with Scripting
                        • Introduction to Groovy scripting language
                          • What is Groovy?
                          • HelloWorld with Groovy
                          • Variable and object declaration in Groovy
                          • Control structures in Groovy
                          • Class and method declarations in Groovy
                        • Groovy scripting in soapUI
                          • The context object
                          • The testRunner variable
                        • soapUI ModelItems
                          • Setup and TearDown scripts in soapUI
                          • Load Script at soapUI project level
                        • Request and response handling using Scripts
                          • Script assertion
                        • Summary
                        • Chapter 12: Automated Testing with soapUI
                          • Test automation
                            • Why is test automation essential in SOA?
                            • Continuous Integration (CI)
                          • soapUI JUnit integration
                          • soapUI command line executions
                            • Invoking a soapUI command line functional test runner
                            • Invoking test runners from the soapUI graphical user interface
                          • Maven soapUI plugin
                          • Summary
                          • Chapter 13: Miscellaneous Topics
                            • soapUI IDE plugins
                              • soapUI Eclipse plugin
                              • soapUI IntelliJ IDEA plug-in
                            • WS-I validation using soapUI
                            • soapUI integration with external web services' frameworks
                            • Sending attachments with SOAP messages using soapUI
                              • Deploying an MTOM-enabled web service
                              • Using soapUI to send an attachment to the web service
                          • Summary

                            Charitha Kankanamge

                            Charitha Kankanamge is Manager, Quality Assurance and Senior Technical Lead at WSO2 with more than 9 years of experience in Software Quality Assurance. Charitha is specialized in SOA and middleware testing. He lead the WSO2 QA team since 2007. He is also a committer of the Apache Software Foundation contributing to Apache web services project. Charitha is interested in researching new technologies in software-testing space as well as new trends in agile and exploratory testing processes. Prior to joining WSO2, Charitha has worked at Virtusa inc. for 3 years where he was involved in multiple on-site and off-shore project assignments. In his rare offline moments, he enjoys playing guitar and watching movies. Charitha has been involved in reviewing two books, Apache Jmeter, Emilly H. Halili and Quick Start Apache Axis2, Deepal Jayasinghe both being published by Packt Publishing. Charitha can be reached through his blog: http://charithaka.blogspot.com
                            Sorry, we don't have any reviews for this title yet.

                            Code Downloads

                            Download the code and support files for this book.


                            Submit Errata

                            Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                            Sample chapters

                            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                            Frequently bought together

                            Web Services Testing with soapUI +    Mastering Object-oriented Python =
                            50% Off
                            the second eBook
                            Price for both: ₨481.80

                            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                            What you will learn from this book

                            • 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.

                            Approach

                            "Web Services Testing with soapUI" starts with an overview of SOA and web services testing, and gets 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. This book is a practical and comprehensive tutorial for easy and efficient web services testing to build high quality service-oriented solutions.

                            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.

                            Code Download and Errata
                            Packt Anytime, Anywhere
                            Register Books
                            Print Upgrades
                            eBook Downloads
                            Video Support
                            Contact Us
                            Awards Voting Nominations Previous Winners
                            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                            Resources
                            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software