Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

Dispatch methods


Dispatch methods provides us with more functionality, flexibility and support to create robust mock services. We can create and select the dispatch method based on our requirements, whether they are simple or complex. Let's have a look at the dispatch method available in the SoapUI mocking feature.

Following are the various dispatch methods:

  • Sequence

  • Random

  • XQuery Match

  • XPath

  • Script

Sequence

The sequence dispatch method is the most basic of all the five and the responses are returned in the sequence in which they were added.

Let's have look at an example:

On the following screen when you right click, you will receive an option to create a New MockResponse.

On the previous screen, when you select New MockResponse, you may add a new response.

So, as you can see, now you have created two responses for the service.

Both the responses will be called in sequence each time the service is invoked.

Random

the random dispatch method is used to call any response at a given point of time.

If you really...

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