#5 - POST API call in
Vložit
- čas přidán 23. 08. 2024
- In this video, I have explained how to send POST API call using #Gatling with a JSON Payload.
I have also covered how to use sequence of different API calls in the same scenario.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
Java & Selenium:
naveenautomatio...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomatio...
Perfect, I was looking for an alternative for JMeter, now Gatling has taken over. Kudos Naveen
Thanks for this amazing series. Note* If anyone is working on Karate for API automation, Gatling is icing on a cake...as you can leverage the same script that you create for your functional API test for your performance test too (just by defining the load-model).
Thanks for sharing!
Can you give some link or hint..how we can do it
Thanks Naveen for your efforts. Expecting more videos on the series.!
Hello Naveen
Video tutorials are very nice.
Thanks for your effort.
A quick question:
How can we pass a different session id for every request in performance testing and how can we verify that a new session id is being used for each request ?
Thanks
-Raju
Thanks naveen, it's really good.
Hi Naveen,
Can you please create separate video for Gatling report with detailed explanation
Hi Naveen, your idea to have a seperate file for json is brilliant. but how do we parameterize a value in your JSON file?
Hi Naveen, can we pass JSON payload for adding multiple users in one call. If yes how can we do that.
Hi @naveen
I want to create multiple users
Need to pass the name and value from csv file to the json file how to achieve it
How to pass unique value from Json post body. These is one variable which required to pass unique each time. In JMeter we have used Random number but what we can use in Gatling. Please help
Hello naveen, I am using java Rest Assured BDD using maven project. My question is can I integrate gatling ? So yes please help me the way.
Hi Naveen , can you please make video on SSO login test using Gatling with multiple users
Naveen, i am having a scenario where i need to change 3 xml node values which has to unique. i am trying to feed the random value to my xml but its not getting feeded. could you please share a simple pseudo code to proceed. i just want to alter the body file for every new request. Thanks in Advance!!
same gatling framework I need to learn from you for gradle project
Hello Naveen, Thanks a lot for your efforts..videos are really helpful.
I tried to follow but getting error while executing :j.n.UnknownHostException ..I even have checked url ..it's correct..
I have created these recorded or mvn based framework on office laptop ..does this related to some proxy? However I am able to access reared.in url. Could you please suggest.
I am not able to record using proxy as proxy is disabled.
Tried by HAR but getting same error while executing.
Paste your code here once.
writing script for POST API and getting with 100% success but I need to validate my response body So where it will be stored. @Naveen AutomationLabs
Hi naveen can we check json response instead of status code for checking json response how can we do that
Check the next Video
@@naveenautomationlabs Thanks naveen
Is there more videos related to Gatling
Yes it will be there.
I am getting this error which I have no clue why
Cannot resolve overloaded method 'exec'
val scn = scenario("Add User Request")
.exec(http("add user request")
Naveen do you have a solution for this? I checked it in the blogs, there was this issue but no solution to this. Please help.
Your syntax is wrong. Remove extra ) bracket after request name in exec method. Watch the video again and check the syntax carefully.
I was able to solve this.
@@naveenautomationlabs Thanks, actually I noticed that extra ) bracket in the comment itself. 😋 . It is another awesome day with Gatling. I am excited for the upcoming videos. 😊
Anyone with Gatling framework experience? Need help.
hello ,
I want to upload xml file . I am not able send xml file in body.
Can you please help me in this .
Following approached that I have tried.
.bodyPart(RawFileBodyPart("./src/test/resources/Data/Burp.xml"))
.formUpload("Burp", "./src/test/resources/Data/Burp.xml")
.body(RawFileBody(filePath = "./src/test/resources/Data/" + "Burp.xml")).asMultipartForm
.bodyPart(RawFileBodyPart("./src/test/resources/Data/Burp.xml").contentType("multipart/form-data").fileName("Burp.xml"))
.bodyPart(StringBodyPart("Burp.xml","./src/test/resources/Data/Burp.xml").contentType("multipart/form-data").fileName("Burp.xml"))
.bodyPart(StringBodyPart("Burp.xml","./src/test/resources/Data/Burp.xml"))
.body(RawFileBody("./src/test/resources/Data/Burp.xml"))
I am still getting 500 error