Hello,
In our previous article, How to Test Soap Services with JMeter, we explained the basics of SOAP testing. If you have practiced this example, you are right now able to perform load testing on your applications. In this article, we’ll show you how you can verify the result of your response.
Assertions in JMeter are very strong. By using the assertions, you will be able to verify the stability of your application under heavy load. There are two options to make a validation:
It requires you to specify “Field to Test” and “Pattern matching Rules”. By setting these two values, you will be able to verify your expected result. Let’s take a look at the most used ones.
All these approaches might be a good approach but there are some flaws. That’s why we suggest you to use XPath Assertion for a stable performance testing script.
In XPath Assertion, there’s one configuration you should make. This is XML parsing Options.
When you uncheck “Use Tidy”, you will have 4 other configuration elements. Most commons are below:
Then you need to provide a valid XPath Expression for your test.
Besides those verifications, we always recommend you to use “Duration Assertion” to watch over your KPIs. Even if all your assertions work properly, you might have a performance problem on your service under heavy load. By using the duration assertion, you will be able to set a threshold to your request and monitor its performance.
Right now we are able to verify the state of your SOAP services from functional and non-functional view.
Check out this link to learn more about JMeter.