Home > database >  load and performance test of the AWS API in jmeter using two post methods
load and performance test of the AWS API in jmeter using two post methods

Time:07-16

I need to test the load and performance test of the API which is hosted in the AWS API gate way. Im using two post methods to get the final result. first post method will pass the below parameters in json format in the API.

{ propno:"xxxxx", apikey:"xxxx-xxxx", user:"xxx" }

by executing this i will get a reference number and status of the execution { reference:"ABxxxxxxxxxna", status:"ok" } Then will pass this reference no in another post method to get the desired result.

{ refno:"ABxxxxxxxxxna", apikey:"xxxx-xxxx", user:"xxx" }

Now i want to perform the load test in Jmeter. Any help would be appreciated.

CodePudding user response:

What is your question exactly?

In JMeter you can send a POST request using enter image description here

the refno value can be fetched using enter image description here

next in the second HTTP Request use ${refno} reference to the enter image description here

You might also need to add a enter image description here

once done you can

  1. Add more users in the Thread Group according to your NFR/SLA/common sense/whatever

  2. Run your test in command-line non-GUI mode

  3. Generate HTML Reporting Dashboard and analyze the results

  • Related