Practice with JMeter
Let's move on to practice.
SOAP/XML-RPC Web Services
Our test application will be a web service named Calculator (an example provided with Netbeans 8.2):
Figure 8.5: Calculator
Let's use HTTP Request and add in the Path and Body Data our call to the CalculatorWSService web service:
Figure 8.6: Web Service Call
Do not forget to add an assertion to control our response:
Figure 8.7: Result control
Here, we check that there is no exception returned by the web service.
Our test plan will look like this:
Figure 8.8: Test Plan
And, the result of the execution is:
Figure 8.9: HTML Source Formatted rendering
Note
Here, we used HTML Source Formatted rendering for a better presentation of the answer. XML rendering is also possible.
You can see the result of a call to the web service, CalculatorWSService, which makes an addition of 5 and 8.
To make the dataset as large as possible, we'll use the __Random function...