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:
- right click thread group -> add -> config element -> http cookie manager
- right click thread group -> add -> sampler -> http request (REST request for login)
- right click thread group -> add -> sampler -> http request (REST request to fetch resources)
- 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.
Recommended Comments
There are no comments to display.