
Path – Application path after the API_URL (e.g. Method – Depending on the type of method, the API was build over, select Get, Put, Post, Delete etc (in our demo we will be working on Post method). the dummy API is build over http protocol so we’ll be using http here) Protocol – Depending on type of protocol, select HTTP or HTTPS (e.g. Implementation – Select HttpClient4 or Java. Server Name or IP – Name of the server (e.g. The HTTP Request Section will be required to be filled as. Next, we need to enter the Server Name or IP of the API and its port(if required) in the web server section. First of all we need to add an HTTP Request Sampler inside a Thread group (Test Plan -> Thread Group -> Sampler->HTTP Request). I will be using the HTTP Post method of the API to request the “post comments” functionality of this dummy API.ĪPI Request Body Steps for Scripting a Rest API in JMeter APACHE JMETER REST API LOAD TESTING HOW TO
In this post we will see how to do functional or load testing of REST APIs using JMeter.įor this tutorial, I am using a dummy REST API available at. In my previous posts, I have mentioned about Manual Testing of a REST APIs and REST API Automation using Java. So, it has become a hot topic for QAs as well, knowing how to test REST APIs adds some weight to your resume. It is lightweight, not strongly typed and unlike SOAP isn’t bound to only XML format. Nowadays, REST (Representational State Transfer) has become the most widely used model for web service implementation.
Facebook Twitter WhatsApp LinkedIn Pinterest