Postman Data Driven Testing with CSV Data File | Postman Testing Tutorial

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 23

  • @XBOXTimeDevil
    @XBOXTimeDevil 3 місяці тому

    I followed this and was able to alter it to my needs, thanks for sharing this is simply great!

  • @Anixkaaa
    @Anixkaaa Рік тому

    Thankyou so much for your great explanations.

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 10 місяців тому

    Thank you for your work! Well done!

  • @cutefunnypets3164
    @cutefunnypets3164 Рік тому

    keep up the good work bro, very helpful and easy to understand|!

  • @ShivaJambagi
    @ShivaJambagi 6 місяців тому

    Good job! By the way, I have two APIs: the first one has 4 iterations, and the second one only has 2 iterations. I've configured test data in a CSV file. However, when running the collection, I selected both APIs, and unique data file and both are hitting 4 times. The second API only has 2 sets of data iteration. How can I avoid this issue?

  • @muraliagreeya5161
    @muraliagreeya5161 Рік тому

    Good work Bro. BTW how can i write the data to the same csv. Say for example in the response i have one more json object called 'Rank' for each response i got different rank values. How can i save the Ranks for each user in the same CSV?

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Thanks, for appending the data to csv file, you will need to use an external library like fs to read the csv file and then append it. Basically, would need to setup a new post-request script to do that.

    • @muraliagreeya5161
      @muraliagreeya5161 Рік тому

      @@sdetunicorns Can you help me with some reference links or videos for writing the response JSON objects to the CSV file

  • @ankitkumarsingh6872
    @ankitkumarsingh6872 Рік тому

    Are you planning to start a playlist on Appium for mobile app testing?

    • @sdetunicorns
      @sdetunicorns  Рік тому +1

      Not on UA-cam at the moment as I am planning to putting other content but I do have a full course on Udemy which you can check out - automationbro.com/wdio-appium-course

  • @Prince_Shahid
    @Prince_Shahid Рік тому

    Please help here
    I have 2 APIs
    1st one is Token
    2nd Api is to send the request body with authorisation
    When i tried with csv file for 2nd API
    Am getting 401 error
    I have checked variables declaration is correct and also manually before running the collection am sending token as well
    But am not understanding what’s going wrong

  • @manguyfriendbro1239
    @manguyfriendbro1239 Рік тому

    Awesome video!
    Is there any way to send CSV data in as a payload for an entire monitor to run? I'm trying to set up a script that takes the first 50 rows of data from a sheets file and sends it to the postman api to execute a monitor with that datasheet.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      you can use newman for that - ua-cam.com/video/vmTyNFAmFAY/v-deo.html

  • @harishkce1989
    @harishkce1989 Рік тому

    Hello Team...how to include the test data files as well and deliver as a package to another team member with all collections ?

    • @sdetunicorns
      @sdetunicorns  Рік тому

      To share Postman collections and test data, export the collection as a JSON file, organize test data files, compress both into a ZIP archive, and send it to your team member. They can then import the collection and use the test data files in their Postman workspace.

  • @SimonBoudrou
    @SimonBoudrou 3 місяці тому

    Thanks !

  • @evertonagoravai162
    @evertonagoravai162 Рік тому

    what if for each csv iteration there was also a pdf file to upload in the registry?

  • @sathiyapriya2270
    @sathiyapriya2270 7 місяців тому

    Hi...I tried this functionality in my project,but I am getting "Assertion error:expected 401 to be one of [200,201,202]

    • @sathiyapriya2270
      @sathiyapriya2270 7 місяців тому

      Please help me to resolve the issue

    • @sdetunicorns
      @sdetunicorns  7 місяців тому

      401 is due to token issue. Make sure you are passing the correct auth to your request

  • @birstinger
    @birstinger 6 місяців тому

    Anyone able to get this to work: data['variableName'] ? It comes back as 'undefined' for me. Changed it to this to get it to work: const requestBody = JSON.parse(request.data); and requestBody.variableName

  • @leandrocarvalho3035
    @leandrocarvalho3035 Рік тому

    how to validate the return data of a csv during api tests in postman?

    • @sdetunicorns
      @sdetunicorns  Рік тому

      If you need to validate the csv data then you will need to parse it using a csv library and then validate it with the response.