Creating a web service test using JMeter
In this recipe, we'll create a JMeter test for a SOA composite.
Getting ready
You'll need to complete the Installing Apache JMeter recipe. We've provided a composite to use in this recipe that is available on the book's website. You can use your own, but the steps will follow the example recipe.
How to do itβ¦
Follow these steps to create a simple web service test:
Start JMeter as per step 4 of the Installing Apache JMeter recipe.
You'll be presented with the JMeter GUI. In the window pane on the left, right-click on the Test Plan flask icon and select Add | Threads | Thread Group. Name the Thread Group as Test Users by changing the text in the name box as shown:
Set Thread Properties so that Number of Threads is
10
and Ramp-Up Period is15
.Right-click on the Test Users thread group and select Add | Sampler | WebService (SOAP) Request.
Depending upon how the composite to test is loaded on the system, the WSDL location will be different. If you've deployed...