jMeter and REST data source performance testing

Table of Contents 

Issue Description:

Is it possible to do performance testing REST data sources using jMeter


Resolution:

Using jMeter, it is possible to do performance testing on REST data sources. The starting point is the reference link below to create the script:

https://www.3pillarglobal.com/insights/performance-testing-of-a-restful-api-using-jmeter

The key here is the ability to switch the REST calls in the script to any REST call you wish to 
specify. Supposing you have a data source that fetches the list of resources in a jasper repository
database and you want to see how it performs. You would want to add the following items to the script:

  1. right click thread group -> add -> config element -> http cookie manager
  2. right click thread group -> add -> sampler -> http request (REST request for login)
  3. right click thread group -> add -> sampler -> http request (REST request to fetch resources)
  4. right click http request created in step 3 -> add -> config element -> http header manager (specify accept header)

Attached is an example jMeter script that contains the above.

Feedback
randomness