#5 - POST API call in

Sdílet
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...

Komentáře • 30

  • @AaryanRajesh
    @AaryanRajesh Před 3 lety

    Perfect, I was looking for an alternative for JMeter, now Gatling has taken over. Kudos Naveen

  • @DheerajGambhirDG
    @DheerajGambhirDG Před 3 lety +1

    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).

  • @AjayKumar-ki9es
    @AjayKumar-ki9es Před 3 lety

    Thanks Naveen for your efforts. Expecting more videos on the series.!

  • @pnraju6956
    @pnraju6956 Před 29 dny

    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

  • @divakarkannan2372
    @divakarkannan2372 Před 2 lety

    Thanks naveen, it's really good.

  • @amitagrawal4494
    @amitagrawal4494 Před rokem

    Hi Naveen,
    Can you please create separate video for Gatling report with detailed explanation

  • @kevinlai05
    @kevinlai05 Před 2 lety +1

    Hi Naveen, your idea to have a seperate file for json is brilliant. but how do we parameterize a value in your JSON file?

  • @paritoshpanigrahi007
    @paritoshpanigrahi007 Před 3 lety +1

    Hi Naveen, can we pass JSON payload for adding multiple users in one call. If yes how can we do that.

  • @Raj-jt8dl
    @Raj-jt8dl Před 11 dny

    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

  • @vishalkumar-gv3lo
    @vishalkumar-gv3lo Před 4 měsíci

    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

  • @rameshbabu2104
    @rameshbabu2104 Před 2 lety

    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.

  • @sairam-sc4kn
    @sairam-sc4kn Před 2 lety

    Hi Naveen , can you please make video on SSO login test using Gatling with multiple users

  • @haridinesh2093
    @haridinesh2093 Před 3 lety

    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!!

  • @divakarkannan2372
    @divakarkannan2372 Před 2 lety

    same gatling framework I need to learn from you for gradle project

  • @alok0501
    @alok0501 Před 3 lety

    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.

  • @anonymous-vr5qn
    @anonymous-vr5qn Před 3 lety

    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

  • @pandirishankar8246
    @pandirishankar8246 Před 3 lety

    Hi naveen can we check json response instead of status code for checking json response how can we do that

  • @ai_pni
    @ai_pni Před 3 lety

    Is there more videos related to Gatling

  • @ankeshkumar9120
    @ankeshkumar9120 Před 3 lety

    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.

    • @naveenautomationlabs
      @naveenautomationlabs  Před 3 lety

      Your syntax is wrong. Remove extra ) bracket after request name in exec method. Watch the video again and check the syntax carefully.

    • @ankeshkumar9120
      @ankeshkumar9120 Před 3 lety +2

      I was able to solve this.

    • @ankeshkumar9120
      @ankeshkumar9120 Před 3 lety +2

      @@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. 😊

  • @devchamlagai1974
    @devchamlagai1974 Před 2 lety

    Anyone with Gatling framework experience? Need help.

  • @TejasTalathi
    @TejasTalathi Před rokem

    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