#5 - POST API call in

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 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...

ความคิดเห็น • 30

  • @DheerajGambhirDG
    @DheerajGambhirDG 3 ปีที่แล้ว +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).

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว +1

      Thanks for sharing!

    • @deep80105
      @deep80105 3 ปีที่แล้ว

      Can you give some link or hint..how we can do it

  • @AaryanRajesh
    @AaryanRajesh 3 ปีที่แล้ว

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

  • @kevinlai05
    @kevinlai05 2 ปีที่แล้ว +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?

  • @AjayKumar-ki9es
    @AjayKumar-ki9es 3 ปีที่แล้ว

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

  • @pnraju6956
    @pnraju6956 2 หลายเดือนก่อน

    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

  • @amitagrawal4494
    @amitagrawal4494 ปีที่แล้ว

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

  • @divakarkannan2372
    @divakarkannan2372 2 ปีที่แล้ว

    Thanks naveen, it's really good.

  • @paritoshpanigrahi007
    @paritoshpanigrahi007 3 ปีที่แล้ว +1

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

  • @sairam-sc4kn
    @sairam-sc4kn 2 ปีที่แล้ว

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

  • @divakarkannan2372
    @divakarkannan2372 2 ปีที่แล้ว

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

  • @rameshbabu2104
    @rameshbabu2104 2 ปีที่แล้ว

    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.

  • @vishalkumar-gv3lo
    @vishalkumar-gv3lo 6 หลายเดือนก่อน

    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

  • @Raj-jt8dl
    @Raj-jt8dl หลายเดือนก่อน

    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

  • @haridinesh2093
    @haridinesh2093 3 ปีที่แล้ว

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

  • @alok0501
    @alok0501 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

    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

  • @ai_pni
    @ai_pni 3 ปีที่แล้ว

    Is there more videos related to Gatling

  • @pandirishankar8246
    @pandirishankar8246 3 ปีที่แล้ว

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

  • @devchamlagai1974
    @devchamlagai1974 3 ปีที่แล้ว

    Anyone with Gatling framework experience? Need help.

  • @ankeshkumar9120
    @ankeshkumar9120 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

    • @ankeshkumar9120
      @ankeshkumar9120 3 ปีที่แล้ว +2

      I was able to solve this.

    • @ankeshkumar9120
      @ankeshkumar9120 3 ปีที่แล้ว +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. 😊

  • @TejasTalathi
    @TejasTalathi ปีที่แล้ว

    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