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
Mastering SoapUI

You're reading from   Mastering SoapUI Experience SOA Test and Test Automation from an expert view

Arrow left icon
Product type Paperback
Published in Aug 2016
Publisher Packt
ISBN-13 9781783980802
Length 240 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Introduction to SOA Testing FREE CHAPTER 2. Functional Testing In Detail 3. Performance Testing of SOA Applications in Detail 4. Security Testing in Detail 5. Test Automation in SOA World 6. Multilayer Test Automation Using SoapUI and Selenium 7. SoapUI Integration with Jenkins and HP QC 8. End-to-End Test Automation 9. Service Mocking 10. Best Practices in SOA Test Automation Index

Assertions

Assertions are validations which are used to validate whether the system is working as expected or not.

SoapUI provides you with a variety of assertions, let's have a look at each one of them by category:

  • Property Content: This assertion type is used to validate the parameter data returned in response by the service
    • XPath Match: This assertion is used to match a particular node value in the response with the expected values
      Assertions
    • XQuery Match: When you want to validate multiple sets of values from the response, XQuery Match is used to validate multiple parameters of data in the response in a single assertion
    Assertions

In the preceding example there is an XML which has multiple price tags and the tester wants to retrieve all the prices from an XML response.

So the XQuery searches in every item and returns all the prices for each Item.

  • Contains: This assertion is used to validate if a particular value or string exists in the response or supports wildcards
    Assertions
  • NotContains: This assertion is to make sure...
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 €18.99/month. Cancel anytime