Hi,
I am new to gatling…Can anybody please give solution…
I have one post request…For that I have to post JSON.stringify({ “_id”: 1, “name”: “Scala” })…The required api will take only JSON stringify values…So if I am giving this value in formParam it is
not working…So how to send the value which was shown above in formParam…???
Code is like this…
.post(/users/post)
.formParam(“category”, “JSON.stringify({ “_id”: 1, “name”: “Scala” }”)
I tried with scala Map and object creation in session and I gave that value above…But it doesn’t work…
I don’t know exactly how to give that value in scala???I tried in different ways…But In db I am not able to see the value…Please help me…
Thanks