DEV Community

Discussion on: Gatling, a load testing tool with a difference.

Collapse
 
tripatsu profile image
Sujit Tripathy

Hi David,
I am doing the performance test with Gatling my project which is based on microservices architecture. I am looking for building a dynamic data set (similar to feeder) but, I want to take the response from one api -> build the data on the fly map -> execute another api. Is there any way I can build a map from the response which is a json?

Thanks
Sujit

Collapse
 
david_j_eddy profile image
David J Eddy

Sujit, Gatling uses Scala class for execution scenarios. This allows fully programmable processes to be leveraged during a test execution. In your case you will want to make the first request, capture the response, process the response, then finally provide the data to the second request. It is very doable.

Scala examples:
gatling.io/docs/2.3/http/http_check/
stackoverflow.com/questions/482784...
stackoverflow.com/questions/469656...
mwclearning.com/?p=1669 (pt. 2: mwclearning.com/?p=1678)