POSTMAN BEGINNER TUTORIAL 18 💡 How to get value from Response and refer in Request | REST

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

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

  • @pblintso
    @pblintso 4 ปีที่แล้ว +8

    These Postman series are wonderful and they helped me enjoy learning Postman! Thank you for putting them together! I love that you don't use complex, abstract technical jargon and you show how to perform the needed Postman action! I'll definitely recommend this series to anyone learning Postman.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Great to hear! Polina, you can find more here - automationstepbystep.com/

    • @nishant585
      @nishant585 11 หลายเดือนก่อน

      Me too. Clarity is best

  • @futfut0157
    @futfut0157 5 ปีที่แล้ว +3

    Hi Raghav ! Your tutoriel is awesome, fantastic. I am a manual tester and I had to test API with Postman with basically zero knowledge of API. You are such a great trainer, your explanations are fluid. You did an amazing job with these videos. I am definetely advising your channel to my colleagues. Congratulations !

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Glad to know this

  • @umangsharma7447
    @umangsharma7447 5 ปีที่แล้ว +1

    no words to explain the simplicity with which you explain in videos. Thank you !!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Umang. Thanks for the message, humbled

  • @dondl578
    @dondl578 5 ปีที่แล้ว +3

    Amazing tutorial. you stick to the subject and even go back to explain some things that people may have missed or don't have time to go back and are looking for a quick reference. I have subscribed and will view your other tutorials. Thank you.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Glad to know this helped Don. Keep learning

  • @ankurharshe
    @ankurharshe 4 ปีที่แล้ว

    I have viewed all the 18 postman tutorials. Great explanation, it help me a lot. Thanks Raghav.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Excellent Ankur

  • @JeffBeechG
    @JeffBeechG 4 ปีที่แล้ว

    Thankyou Raghav for putting together 18 lessons on Postman. You did it well.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Thanks Jeff, means a lot. Can also check the Postman Crash course here automationstepbystep.com/

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Thanks Jeff, means a lot. Can also check the Postman Crash course here automationstepbystep.com/

  • @ShruthiAndagi-g9h
    @ShruthiAndagi-g9h 3 หลายเดือนก่อน

    Thanks for the video, after searching 1 and half day got solution of JSON Path identifier. it helped us to compare request and reponse JSON. the values compartion

    • @RaghavPal
      @RaghavPal  3 หลายเดือนก่อน

      Great to know this Shruthi ..keep learning

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

    Your videos are self explanatory, I have no words to appreciate your work.

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

      So nice of you Sheenam

  • @sumedha7
    @sumedha7 5 ปีที่แล้ว

    This is very clear set of videos on Postman and explain what is expected in a simple manner. Thanks a lot of great job.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Sumedha

  • @zaferustaoglu4404
    @zaferustaoglu4404 4 ปีที่แล้ว

    Thank you for your instructions. I watched all your API tutorials. They are awesome. Thank you Raghav.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      You are welcome Zafer

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

    Thanks a lot.... really this sessions are very helpful to me ....🙏🙏🙏🙏

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

      Most welcome

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

    4years back this informative video was published. Hats off

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

      thanks Shubham

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

    You make it just simple and easy to understand. I was just looking for exactly same and I got it. So grateful!!

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว +1

      I'm so glad Gayatree

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

      @@RaghavPal If there is any video about, how one can showcase there learning of API to prospective employer if person is not having any hands-on experience in API testing? Please share link if available or would like to request to make one such video.

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

      Hi Gayatree, you can go through basic API sessions here - automationstepbystep.com/

  • @LisaBaird
    @LisaBaird 4 ปีที่แล้ว +1

    Thank you, this is exactly what I needed! I struggled with this for weeks!

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're so welcome Lisa, Keep learning and let me know if you face any issues

  • @jigarjariwala3289
    @jigarjariwala3289 4 ปีที่แล้ว

    It was great. I learned it easily. I'm very new on this variable setup in a Postman and you made it smooth for me. Thanks.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're very welcome Jigar

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

    This video is just amazing. Exactly what I've been looking for. Big Thanks!

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

      You're welcome!

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

    Your Step by steps Tutorials was really help me understand the Automation Process. Thank you so much. I hope someday I can meet you personally to say THANK YOU ! :) Please do not stop creating amazing automation tutorials like this one. I will be recommending this videos on my team. Thank you Raghav!

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

      You are most welcome, and I hope to see you, where are you from

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

      @@RaghavPal I'm from the Philippines Bro. I'm currently working now as an Automation QA Engineer Lead. I still have many things to learn and your tutorials really helps me a lot. 🙏

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

      so happy to know this

  • @akredshaw
    @akredshaw 5 ปีที่แล้ว +1

    These tutorials were really helpful and easy to follow. Thank you so much.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Aaron

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

    I have saved this video to my favorites! And I am sharing this with others, too!

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

      Awesome! Thank you! Suayip

  • @divyas167
    @divyas167 4 ปีที่แล้ว

    Awesome series for beginner.Thanks for the detailed explanation.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Most welcome Divya

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

    This is so helpful.
    Thank you so much Raghav...

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

      Most welcome Shruthi

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

    Thank you so much for the sharing step by step!!

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

      You are so welcome!

  • @mrkiinnu
    @mrkiinnu 4 ปีที่แล้ว

    Thank you very much Raghav for your efforts and it is really helping us to start API testing.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad to know this Kiran, Can check all here - automationstepbystep.com/

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

    Wonderful explanation Sir...You made it so easy...Thank you so much

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

      You are most welcome Pramod

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

    Thank you for sharing your knowledge! Well done!

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

      Glad it was helpful!

  • @NizarIlhamy
    @NizarIlhamy 4 ปีที่แล้ว

    Well thank's man
    i'm able to set global variable for my token header.
    good job !

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You are welcome Nizar

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

    saving this because I know I am gonna forgot this again. thanks man.

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

      Most welcome Naveen

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

    Hi Raghav, is there a way to automatically update all the names returned? For example, I want to update Charles, Eve, and Tracey, while I do not know how many names will be returned in total. I can do this in Python by storing the names returned by the GET API in a list and run a loop traversing the list, each iteration will call the POST API. However, I don't know how to do this in Postman.

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

      Hi, we can do such operations in Postman, This will help blog.postman.com/extracting-data-from-responses-and-chaining-requests/

  • @batman78845
    @batman78845 4 ปีที่แล้ว +1

    Hi, Here in order to fetch 'Charles' you are using json path finder, which shows the path in an index based format. (data[1].firstname), May be in my next execution, this path can change, Like charles name might be moved to some other index/path. In this case how we identify, each time we can identify manually and update the Tests right? Please help.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Arun, you can use regex as well in the path

    • @batman78845
      @batman78845 4 ปีที่แล้ว

      @@RaghavPal Sorry, I'm not aware of regex, if possible please do a video related to that type of scenarios. Please

    • @batman78845
      @batman78845 4 ปีที่แล้ว

      or please write here as example, in this case how to get the random id of the customer whos name is charles from a response body (I know my response has a customer with name charles, but I want to identify the id and set as varible for my next api request to use) something like this, how to achieve.. Please help, I googled many times but no help !

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Arun, to start with you can read this to know about Regex - automationstepbystep.com/2020/05/05/a-story-of-regex/

  • @sainathvallampatla5135
    @sainathvallampatla5135 5 ปีที่แล้ว

    Hi Sir,
    We are getting two nodes with first names as Charles and others(13:00). If I want to post the details of all available members at a time means can I use loops in the scripts to iterate?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sainath, pls check your json path, If the path is correct you should be getting a single value. Check the index position

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

    Thanks again for your great tutorials!

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

      Most welcome

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

    Thank you. Very informative and helpful

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

      Most welcome Harini

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

    Thank you for sharing your knowledge.

  • @vishnugh6407
    @vishnugh6407 4 ปีที่แล้ว

    Your API God Thank You So much really Really very Easy Understanding would this video

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You are most welcome Vishnu

  • @deepamgupta8011
    @deepamgupta8011 5 ปีที่แล้ว

    Thanks a lot Raghav,
    I followed all of yours tutorial for Postman.
    Really well explained and easy to understand.
    I have a request, if you could make a video on:
    "how to use LinkedIn, Google and Facebook APIs in our webapp for the purpose of logging in and signing up" .
    Thanks Again

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Deepam, I will check on this

  • @GamingWithAwesome
    @GamingWithAwesome 4 ปีที่แล้ว

    Very Informative. Thanks a lot :)

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Most welcome

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

    Very well explained Raghav

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

      Thanks Aishwarya

  • @simonweisser3362
    @simonweisser3362 5 ปีที่แล้ว +1

    Hi Raghav, thanks for your nice tutorials. The audio changed since the previous ones, and it is a bit disturbing because of some mouth sounds, but the volume is higher than on the previous, which is good!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Simon, you're welcome. Thanks for you feedback. Have recorded this after some time since the last video in postman series. I will take care of audio in next video.

  • @VictorKun
    @VictorKun 5 ปีที่แล้ว +1

    Boht Hard. Kaafi Saral

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      I hope it helped Vishal

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

    Fantastic video, excellent explanation and demonstration. Thank you very much!

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

      You're very welcome!

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

    Excellent tutorial, exactly what I was looking for.

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

      Glad it was helpful David

  • @JudyMendes
    @JudyMendes 5 ปีที่แล้ว

    Hi Raghav, went through all your videos on Postman. Thanks for putting all of these videos together. Your tutorials are very well explained, detailed and simple. THANK YOU. However, i was wondering if you have any upcoming videos where you can dive into advance postman scripting. Looking forward to your reply

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว +1

      Hi Judy, thanks a lot for your message. I have plans to add more to Postman playlist. Will try to do it soon.

    • @JudyMendes
      @JudyMendes 5 ปีที่แล้ว +1

      @@RaghavPal Looking forward to your new advance postman tutorials. Thankyou once again.

  • @PrabhatKumar-ir6qv
    @PrabhatKumar-ir6qv 2 ปีที่แล้ว

    Relly this one helps me a lot. Keep sharing more advanced ways to handle this. Can we pick this data based on our condition?

  • @tejiriorugbo6431
    @tejiriorugbo6431 4 ปีที่แล้ว

    Thank you so much. Awesome job. Please keep it up.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're welcome Tejiri

  • @vinaykrishna297
    @vinaykrishna297 5 ปีที่แล้ว

    Hi Raghav.
    I have a scenario where I need to validate a tag and its value in xml response. If I am data driving the run, each case response will have the same tags with different values based on the input data pass to the script . How do I automate this ?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Vinay,
      You can store the value coming from data file to a variable and while validating use the variable

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

    I have watched all your videos and I am new to API testing its very easy to understand but could you please let me know what is the purpose of fetching response data and setting to an environment variable.

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

      This is for using the value in the next request, sometimes we need to create a chain, like the token value needs to be passed to maintain the logged in session

  • @nishant585
    @nishant585 11 หลายเดือนก่อน

    I have a question.
    what you did is, you update username from taking get listuser.
    can't we update the value to listuser that is already there ?
    You take charles from get listuser and update on morpheous which is already updated one.
    can't we update username charles from listuser to new name ?
    i just want to update the username that is on get listuser with the new username

    • @RaghavPal
      @RaghavPal  11 หลายเดือนก่อน

      you can do.. this is just for demo to explain the concept of chaining..

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

    Hi Raghav , your videos are very useful.
    1. Is there any way to to pass Authorization Token to all the request in the Collection in one go?
    2. I have a scenario in which API will create a pre-signed S3 url and then I have to upload an attachment in the created url. How to upload attachment in the request while running collection?

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

      Hi Himani,
      Yes, you can do that at collection level
      will need to check online for helpful examples

  • @jayarajaanjeenappa1568
    @jayarajaanjeenappa1568 5 ปีที่แล้ว +1

    @Raghav Wonderful explanation. Please can you explain how to filter response body based on end nodes. In your example how to get response only for id=4 or Name="Eve"?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Jayaraja, you need to provide the right json path (in case of json response) or xpath (in case of xml response). I have shown some ways to get the path, like using json path finder. So for id=4 path will be x[0].data[0].id
      Similarly for Eve it will be x[0].data[0].first_name

  • @AlokKumar-ot9sx
    @AlokKumar-ot9sx 2 ปีที่แล้ว

    Thanks Raghav I am having issue with the export of postman. When I run these and then export and then import it then request or response are not saved. Only pass or fail status is saved. How to save the responses also to that postman export. I was running at collection level

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

      Hi Alok, will need to check

  • @gib-kamehouse
    @gib-kamehouse 3 ปีที่แล้ว

    Excellent video, help me a lot

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

      Glad to hear it!

  • @haribisht5737
    @haribisht5737 4 ปีที่แล้ว

    Thanks a lot. Pretty useful video

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad you liked it Hari

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

    Hello there, I have a question. I need to get the value of a specific JSON response that has several values. The response comes as an array and consists of several values.
    Example: I want to get the JSON response value of the " 77 " Id number. I know I can take this value by doing this = " jsonData[1].Id. But the problem is, what if I don't know that 77 id response is situated at ?? That is the issue I have. I have a value of 77. But I don't know at which element it is situated. Could you please help me? Thanks
    [
    {
    "Id": "76",
    "CustomerName": "Sam",
    },
    {
    "Id": "77",
    "CustomerName": "John",
    },
    ]

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

      This can help community.postman.com/t/how-to-handle-dynamic-jsonpath/5949

  • @tripathi5174
    @tripathi5174 4 ปีที่แล้ว

    great one once again sir ji

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Thanks for watching

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

    Hello Sir, I am trying to get the 0 the number UserName but it is throwing an below error-
    TypeError: Cannot read properties of undefined (reading '0')
    can help me in this.

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

      Hi Kaustubh
      The error you are getting is because the `UserName` property is undefined. This can happen if the response from the API does not contain the `UserName` property.
      To fix this, you need to make sure that the response from the API contains the `UserName` property. You can do this by checking the documentation for the API.
      If the response from the API does not contain the `UserName` property, you will need to modify your request to include the `UserName` property. You can do this by adding the `UserName` property to the request body.
      Here is an example of a request that includes the `UserName` property:
      ```
      {
      "UserName": "John Doe"
      }
      ```
      Once you have modified your request, you should be able to get the `UserName` property without any errors.
      Here is an example of how to get the `UserName` property in Postman:
      1. Open the Postman app.
      2. Create a new request.
      3. In the URL field, enter the URL of the API.
      4. In the Body tab, select the "raw" radio button.
      5. In the text field, paste the following JSON:
      ```
      {
      "UserName": "John Doe"
      }
      ```
      6. Click on the "Send" button.
      The response from the API should contain the `UserName` property. You can view the `UserName` property in the Response tab.
      I hope this helps

  • @saumitrakulkarni583
    @saumitrakulkarni583 4 ปีที่แล้ว

    thanks Raghav it was a very good series :)

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're welcome Saumitra

  • @madhann9354
    @madhann9354 4 ปีที่แล้ว

    One question, can we use create call followed by Delete with API chaining, say i want create a user and delete the user in the next api call

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Sure Madhan, you can do it.

  • @sreev9176
    @sreev9176 4 ปีที่แล้ว

    Hi Raghav,
    Is there a way where we can send the console log results via csv file or excel file .

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Sriteja, will have to script for that.

  • @sambandamk5715
    @sambandamk5715 5 ปีที่แล้ว

    Wonderful explanation , great tutorial . Awesome Job brother.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Thanks for watching Sambandam

  • @RAJANKUMAR52
    @RAJANKUMAR52 5 ปีที่แล้ว

    very informative videos. it will help me a lot in api testing

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Happy to know this Rajan

  • @kavitakalia3432
    @kavitakalia3432 5 ปีที่แล้ว

    Very informative session Raghav. Thanks

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Kavita

  • @ВадимГ-м4х
    @ВадимГ-м4х 4 ปีที่แล้ว

    Thanks for your work. You helped me a lot.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad to hear that!

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

    Hi Sir.. I have a doubt. I am getting a array as [ "1","2","3"] from a get api and storing it in a variable. But if i pass it to another post request it is read as ["1,2,3"] means the double quotes are removed. Can u please help me here. I need it to be passed it as I m getting. 😊

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว +1

      Hi Paneer, this will help community.postman.com/t/how-to-escape-double-quote-when-setting-using-variables/13505

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

    hi raghav nice explaination, it is helped me learning postman Here
    have question from this session, i did same got "responsebody" is not defined

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

      Hi Kranthi, pls check the syntax, can compare with official documentation, your json data is in pm. So you need to retrieve your JSON data using the below code.
      var jsonData = pm.response.json();
      pm.test("Verify Json values", function () {
      pm.expect(jsonData.success).is.to.equal(true);
      });

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

    How should we do this same for the xml responses? I am using var jsonObject = xml2Json(responseBody); to convert xml to json now what should be done further?
    I have tried following;
    //Converting XML to JSON
    var jsonObject = xml2Json(responseBody); //converted the XML responseBody to JSONobject
    responseData = JSON.parse(jsonObject); // tried to parse jsonObject and store data in responseData variable
    responseValue = responseData(jsonObject['Order']['orderNumber']); // from responsedata tried to get the value
    pm.collectionVariables.set("orderNumber", responseValue); // tried to store it in collection variable
    Below is the error seen;
    There was an error in evaluating the test script: JSONError: Unexpected token 'o' at 1:2 [object Object] ^

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

      I will try to check and do a session

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

      @@RaghavPal Hi Raghav, any success?

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

      @@RaghavPal I was able to get it working if the request and response is XML as below;
      //Converting responseBody from XML to JSON
      var jsonObject = xml2Json(responseBody);
      //Identify and Capture the field values from responsebody in a variable
      let orderNumber = jsonObject[.....order xml objects]['orderNumber'];
      //Putting the value of orderNumber in collectionVariable from the responseBody
      pm.collectionVariables.set("orderNumber", orderNumber);

  • @kiranjape3941
    @kiranjape3941 4 ปีที่แล้ว

    Great explaination helped alot...!!

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad to hear that Kiran

  • @vijaykumarcm4676
    @vijaykumarcm4676 5 ปีที่แล้ว

    Hi Raghav , after completing that chain connecting API . Can we import that collection in json and we can use that in terminal window. That environmental values will get remain same . Iam waiting for your reply .

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Vijay, you should be able to do that, and you can also download env as json file and provide in command -
      newman run -e environment1.json --env-var foo=bar3
      References - www.npmjs.com/package/newman#newman-options
      github.com/postmanlabs/newman/issues/764
      stackoverflow.com/questions/43924363/newman-postmant-specify-a-single-environment-variable-via-command-line

  • @poojapatange9520
    @poojapatange9520 4 ปีที่แล้ว

    raghav sir - Thank you so much for you tuturials its is very much helpful for us and we all appreciate your quick response reposes for our questions it has helped us lot in our day to day activity of work.
    Please can you share formate for API Test Scenario and Test cases and what all negative points we should consider in API Testing.
    please can you make tutorial on MangoDb and RabbitMQ
    Many thanks sir

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      You are most welcome Pooja, I will plan to add some sessions on this

    • @poojapatange9520
      @poojapatange9520 4 ปีที่แล้ว

      @@RaghavPal thank you so much

  • @paulosilva888
    @paulosilva888 4 ปีที่แล้ว +1

    Thank you. These series are great. Let me ask you a question about this session. Is it possible to do a loop using the get and update api? the fist one will get the user id (it will be nice to be able to filter some records) and the second one will update the user description or anything else.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      You can do Paulo, you can also write code in JavaScript if required. I will suggest to check Request Workflows - learning.postman.com/docs/running-collections/building-workflows/

  • @pallabisaha5310
    @pallabisaha5310 4 ปีที่แล้ว +1

    Thank you so much .Is there any link from where I can extract soap request from WSDL?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Pallabi, you can use a chrome extension WIZDLER. Check this - th-cam.com/video/DR3EEhjn2OI/w-d-xo.html

  • @debanjandas4957
    @debanjandas4957 4 ปีที่แล้ว +1

    At the video time of 3: 00 minutes when we are creating a GET Request for 'LIST USERS', you mention the Params tab gets automatically populated. What is the significance of the Params tab? Why / When /How is it used?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      If there are any parameters in your request, you can give it here, Like in the example shown page=2, it took it automatically from the url and you can add more if required

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

    Thank you very much! the api calls that i testing, i was trying to figure how i can use what is response body for the other 3 api calls, I watched your video,now I need to try it out!

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

      Glad it helped!

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

    The Json Path you used in data[1] is static. How to use the same in a dynamic way ?

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

      Hi Saptarshi, can you give an example of scenario to understand what is needed

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

      @@RaghavPal : When we fetch a list of users, a particular user may exist in different nodes during repeated execution as number of users may grow or shrink during the phase.

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

      @@RaghavPal Another example is Search any entity. Entity fetched may exist in different nodes during execution phase

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

      Okay got it, in this case you can create the json path or xpath using regular expressions for dynamic searching. examples goessner.net/articles/JsonPath/

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

    Great course, i have been following along and learned a lot! I have a problem with this one though, when i do a PUT request it does not update the data. Even though I send 'Morpheus' data in my request body, it responds with 'Janet Weaver' data as if I just did a GET request. Why?

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

      Hi, not sure if this is backend issue as these are dummy apis. In case all your setup, response code etc is fine. You may go to the next one pls

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

    Hi Raghav,
    I followed everything you taught here but somehow when I run the request current value of the variable is not getting updated from "abc" to what I can see in the response.
    Could you please help me on this?

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

      will need to see your request scripts

  • @sbtej
    @sbtej 4 ปีที่แล้ว

    Thanks Raghav, for this session, is there anyway we can export console log to csv or to an external file to local hard drive? any help is appreciated

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Tej, Not sure if there is a direct way for this. This can be helpful
      community.postman.com/t/get-all-console-output-to-csv/8659/8

  • @sayalideshmukh9310
    @sayalideshmukh9310 5 ปีที่แล้ว

    Hello Raghav,
    Can you tell me how to validate nested fields text from api response.
    I have used "pm.expect(pm.response.json().data).to.have.all.keys( "column1 ", "column2", "column2A", "column2B", "column2C")"
    but not able to validate nested fields such as column2A, column2B
    For eg.
    {
    "column1 ": value1,
    "column2 : column2A": value2,
    "column2 : column2B": value3,
    "column2 : column2C": value4,
    }
    My requirement : To check (through test scripts) api response must have all the column names such as column 1,column 2, column2A ,column2B,column2C
    Regards, Sayali

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sayali, check if this helps - stackoverflow.com/questions/55176901/how-to-verify-if-a-node-in-response-body-has-unique-value-with-postman

    • @sayalideshmukh9310
      @sayalideshmukh9310 5 ปีที่แล้ว

      Thanks Raghav. Actually, my question is not about verifying the value in the response body.
      My requirement : To check (through test scripts) api response must have all the column names such as column 1,column 2, column2A ,column2B,column2C
      I just want to test whether all these columns are present in the api response and do not need to deal with their value validation.

  • @rajaehalabi9476
    @rajaehalabi9476 4 ปีที่แล้ว

    Thank you very much for this helpful tutoriels. I have a problem to get value from xml response for soap api. can you please make an other video for this part?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      I will plan for this Rajae

  • @sandeshr2593
    @sandeshr2593 5 ปีที่แล้ว

    fantastic tutorial , Thank you very much Sir ,it was a great help for me

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Sandesh

  • @praveengarigipati8775
    @praveengarigipati8775 4 ปีที่แล้ว

    Nice Explanation

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Thanks for liking Praveen

  • @ncloud2961
    @ncloud2961 4 ปีที่แล้ว

    Thanks...great work !!!

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad you liked it!

  • @pblintso
    @pblintso 4 ปีที่แล้ว +1

    What would be a real-world usage/example of chaining APIs through Postman?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Polina, suppose you have a API to create a user and in the response you get a userid, Now you need to use this user id in another api. Let's say to update user. So in real-world this chaining is very much required as we do not want to do any manual intervention while running a complete scenario or use-case

    • @pblintso
      @pblintso 4 ปีที่แล้ว

      @@RaghavPal So chaining APIs allows us to automate accessing response values from different APIs, correct?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Yes, as required by your use-case

  • @Dibyendu_Raj
    @Dibyendu_Raj 4 ปีที่แล้ว

    But, when i am parsing the value which is encrypted (e.g. "TxnID":"1234|#$^%^^yt*(&
    9438"), and when I am trying to pass this value in next request, the
    of TxnID treated as next line and response is getting failed. Please help on this.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Dibyendu, If there is a next line char, you will need to escape that

    • @Dibyendu_Raj
      @Dibyendu_Raj 4 ปีที่แล้ว

      @@RaghavPal but this next line char is dynamic, sometime it will come and sometime not. So, whenever next line char is not coming then only i am getting correct response. But, this problem doesn't happen in other tools like jmeter. In jmeter, it passes next line char as
      thats why i am getting correct response everytime.

  • @vijaykumar-ut1ze
    @vijaykumar-ut1ze 4 ปีที่แล้ว +1

    Does anyone know how to set the request body for a request from external json in newman

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Vijay, you can refer the data from json and csv files and there is tutorial on that, Not sure if you can get the complete body and structure directly. Will need to check online

    • @vijaykumar-ut1ze
      @vijaykumar-ut1ze 4 ปีที่แล้ว

      @@RaghavPal can you please give me your inputs

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      I have not tried this and could not find a good solution online. Best will be to keep the structure in postman and get the values from data file

    • @vijaykumar-ut1ze
      @vijaykumar-ut1ze 4 ปีที่แล้ว

      @@RaghavPal any video where I can refer this point

  • @giladhershcovitz1849
    @giladhershcovitz1849 4 ปีที่แล้ว

    Hello Raghav
    I tried to chain values between APIs with SOAP in order to retrieve an ISO code from one request and pass it to another request, though without success
    I've tried to reach the ISO code of a country in the response with xpath like you did here, only that you did it with JSON. and it gives me syntax error.
    this is the code :
    responseData = XML.parse(responseBody)
    value = responseData.*:soap:Envelope/soap:Body/m:CountryISOCodeResponse/m:CountryISOCodeResult
    Also was it correct to use the XML object instead of the JSON Object?
    Thank you in advance

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Gilad, I believe the issue is with XPath. Check your xpath here -
      xmltoolbox.appspot.com/xpath_generator.html
      www.freeformatter.com/xpath-tester.html

  • @FD-dh2fu
    @FD-dh2fu 3 ปีที่แล้ว

    Excellent. Thank you. Any future videos with text or XML non JSON? Keep up the great work.

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

      Can check XML and JSON Beginner tutorials here - automationstepbystep.com/

  • @sayalideshmukh9310
    @sayalideshmukh9310 5 ปีที่แล้ว +1

    Hello Raghav, Thanks a lot for your videos:) They are just superb. I have some questions on the postman automation negative scenarios api testing.
    1) In single api request, can we write/test positive and negative test scenarios by writing both the test scripts ?
    For eg. I have to test '200 OK' status as well as '400 bad request' status in 1 single api request for each api end point.
    Will it be possible ? How to do negative testing in postman (Automation testing through test scripts) ?
    2) In our project, we want to use Monitor option for automatic api testing , and there is no option to import data file with different data. Please confirm.
    So in the above case if there are various api end points with various parameters in a project , how can I test the api end points with different data ?
    Thanks

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sayali, for the first one, you need to run your request with diff parameters, for this you can use
      1. external data file
      OR
      2. use pre-request scripts, variables and workflows
      th-cam.com/video/sZKoBQ1HpKw/w-d-xo.html
      For the monitor option, I am not too sure and will have to check online

    • @sayalideshmukh9310
      @sayalideshmukh9310 5 ปีที่แล้ว

      Thank you so much for your quick response.
      In data file option, I am able to pass the test data only for one api request and not more than that.
      I have multiple requests in my collection,so not able to pass data for all the requests in a single file.
      Can you tell me how to solve this ?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      I will check and see if I can create a session on this.

    • @sayalideshmukh9310
      @sayalideshmukh9310 5 ปีที่แล้ว +1

      Thank you so much

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

    I want to fetch incptdt from below xpatch. but I am not getting exatch path name. How do i find and update
    {"backdtpremium":0,"partyid":"000000","BD":[],"incpDt":"04-Mar-2022"

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

      Hi Piyush, will need to see the details to troubleshoot this

  • @sudeepsharma6917
    @sudeepsharma6917 4 ปีที่แล้ว

    Hi Raghav,
    It is so good , every topic explained in very clear manner .
    I have one question ; when i use responsebody in test section to write script it says responsebody is not defined .
    Can u please let me know what is the issue here-
    ReferenceError: responsebBody is not defined
    Below script user in test section-
    JsonData = JSON.parse(responsebBody);
    value = bodyData.data[1].first_name
    console.log("value")
    can u please help me here?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Sudeep, here you are storing the response in variable JsonData and then using the variable bodyData. Where did you use the variable responsebBody. Pls check

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

    Do you have any tips on how to do this on a bigger scale. I.e I want to take all subscription details from Mail Chimp and update contacts on a share point list...

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

      Hi, the basic process remains same, but I have not tried, You should check some online examples and try

  • @veerareddy6373
    @veerareddy6373 5 ปีที่แล้ว

    Here you are getting all the details in the Page 2 and then filtering for 'Charles'.. Can you optimize GET Request to get only that record or object from the API ?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Veera, even then we will have to get the full response and then parse to get the value. I believe as of not there is no direct way

  • @RaiderIQ1
    @RaiderIQ1 4 ปีที่แล้ว

    This was an amazing Tuto. Thanx for these videos

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're welcome Haider

  • @xtremegenerationjack
    @xtremegenerationjack 4 ปีที่แล้ว

    Thanks for session. It was quite helpful. But i have another question. In this example of yours, you should run the first call manually inorder to get and pass the first_name to the second update call.
    But i would like to see a tutorial in which when the second call i run, the first should get automatically executed, without anyone manually running the first call to fetch the token.
    Is it possible via Postman?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Dibin, for this you can set build workflows using postman.setNextRequest() learning.postman.com/docs/postman/collection-runs/building-workflows/

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

    Useful tutorial. Just want to know how to use environment variable in assertion. I have an environment variable "name" . I want to verify if my response body contains pm.expect(pm.response.text()).to.include("name welcome");

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

      Hi Dev,
      to refer env variables use
      pm.environment.get("variable_key");
      Ensure to select the env before execution

  • @niranjankumarganjikunta7891
    @niranjankumarganjikunta7891 5 ปีที่แล้ว

    Thanks boss very good explanation

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Niranjan

  • @sams8263
    @sams8263 4 ปีที่แล้ว

    Great Effort Raghav, Thank you! :)

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're welcome Sam

  • @rodolfofarley5972
    @rodolfofarley5972 4 ปีที่แล้ว +1

    Good Night
    I profess to help myself, I am new to Postaman and I am experiencing the following problem.
    I need to test an API where I need to import a CSV file and check the PATH of the API if it is correct.
    Watch all your classes and the most similar to my problem and UPDATE.
    But I'm not able to import the file and checking the information in the API can help me by indicating a very explanatory tutorial or telling me which class can help me.
    I appreciate the help.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Rodolfo, You can take some help from the Postman CSV tutorial here - th-cam.com/play/PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C.html
      And will also need some online help to complete your task

  • @RAHULKUMAR-ik2ss
    @RAHULKUMAR-ik2ss 4 ปีที่แล้ว

    Hi Raghav i am trying your video to extract value from response but i am getting this error message in console "TypeError: Cannot read property '0' of undefined".Can you please help me.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Rahul, try to print the value where you are doing this operation. Can also debug - th-cam.com/video/ne1RsYcgkSY/w-d-xo.html

  • @md.mahfuzulhuqtalukder6644
    @md.mahfuzulhuqtalukder6644 4 ปีที่แล้ว

    When do I select XML or JSON(application/json) in body section?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Md.Mahfuzul, it depend on the representation available for the resource (api data). ususally application/json should work for REST and xml for SOAP

    • @md.mahfuzulhuqtalukder6644
      @md.mahfuzulhuqtalukder6644 4 ปีที่แล้ว

      Thank so much and once again I want to say you are great.

  • @elmariscal5394
    @elmariscal5394 4 ปีที่แล้ว

    Hi Raghavl this is very uselful. Imagine another scenario in which we have more than 2 requests( lets say 5 requests.. or more)Even if we extract some value from request 1 would we be able to use it in the request number 5 within the collection right? thanks!

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Yes, once you store it in global or env variables, can use it anywhere