Questions tagged [gatling-jsonpath]

0

votes
0

answer
3

Views

JsonPath Path Not Found Exception While Data Driving From Jsonfile So As To Randomize the data

Is there a Issue to use below code,basically data driving from Jsonfile ,I am creating random numbers below that is eventidStart and eventidEnd are fetching their respective values from Json file which is shown below var idNumbers=(eventidStart to eventidEnd).iterator def eventidStart: Int = JsonP...
Tk infostrings
1

votes
2

answer
358

Views

How to read a JSON file into a Map, using Scala

How can I read a JSON file into a Map, using Scala. I've been trying to accomplish this but the JSON I am reading is nested JSon and I have not found a way to easily extract the JSON into keys because of that. Scala seems to be wanting to also convert the nested JSON String into an object. Instead...
djangofan
1

votes
0

answer
61

Views

How to extract field from JSON file with Gatling

I'm new in Gatling and Scala. I'm trying to write scenarios to test an API and do some http requests. I have a JSON file with an array of object. I'd like to extract the ID field in order to achieve an http request with it (multiple get). I'm trying to use feeder, i'm not sure about how it's working...
Yoann
0

votes
0

answer
3

Views

How to properly use checkIf with multiple jsonPath extractions

I've got scenario that I send GET request which sometimes can return 404 and I don't want to report it as an error on the final reports. Additionally if that request is successful I need to extract multiple values from json response. Generally those 2 actions I want to use work for me fine when used...
Michal