Jmeter SOAP/REST Web Services Testing plan creation,in this lesson you will learn web services testing using Jmeter performance testing.Web Services is a client server application component using for communication between multiple systems or applications. Web Services transferring the data between different system with the help of Protocols example http protocols.In order to understand here i am using simple flight web services URL to create web services test plan in Jmeter. Let's create Web Services Test plan in jmeter.
Jmeter SOAP/REST Web Services Testing
Before creating web services test plan in jmeter we should require following details.1.Web Service URL.
2.Web Service input parameters
3.Web Service Response details
Must Read
Generate Jmeter Report DashboardXpath Assertion in Jmeter
Apache Jmeter Web Test Plan
Steps to Create Web Services Test Plan
1.Open Apache Jmeter from F:\apache-jmeter-3.0\bin folder by double click on jmeter.bat file in windows.2.Right click on Test Plan Add - Threads - Thread Group,Enter following details
- Number of Threads(Users):
- Ramp up Period(in Seconds)
- Loop Count
Thread Group |
3.Right click on Thread Group - Add - Sampler - SOAP/XML-RPC Request,it will display below details
- URL : Web Service url ex : http://localhost:24240/HPFlights_SOAP
- Send SOAP Action
- Soap/XML - RPC Data : This text area useful in writing SOAP input parameters in SOAP request as below.
4.Now add Response Assertion to verify the web services response,Right click on SOAP/XML-RPC Request - Add - Assertions - Response Assertion.
5.Click on Add in Pattern to Test and enter pattern to verify from Web Service Response as below.
Response Assertion - Pattern to Test |
6.Add View Result Tree from Listeners, Right click on Thread Group - Add - Listeners - View Result Tree.
7.Save your script.
8.Now run your script and verify View Result Tree window whether it is pass or fail.
View Result Tree - PASS
View Result Tree - FAIL
What have you learn?
1.What is web services?2.How to create web services test plan
3.How to add web services in jmeter
4.How to verify the web services response with assertions.
To start with many thanks a lot for such a remarkable blog post. I would like to know more regarding such subjects as well as wish to obtain some even more helpful information from your blog site. C U soon.
ReplyDeleteMiracle II Moisturizing Soap Gallon