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?
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?
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.
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
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
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.
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.
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
I followed this and was able to alter it to my needs, thanks for sharing this is simply great!
Thankyou so much for your great explanations.
Thank you for your work! Well done!
keep up the good work bro, very helpful and easy to understand|!
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?
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?
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.
@@sdetunicorns Can you help me with some reference links or videos for writing the response JSON objects to the CSV file
Are you planning to start a playlist on Appium for mobile app testing?
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
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
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.
you can use newman for that - ua-cam.com/video/vmTyNFAmFAY/v-deo.html
Hello Team...how to include the test data files as well and deliver as a package to another team member with all collections ?
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.
Thanks !
what if for each csv iteration there was also a pdf file to upload in the registry?
Hi...I tried this functionality in my project,but I am getting "Assertion error:expected 401 to be one of [200,201,202]
Please help me to resolve the issue
401 is due to token issue. Make sure you are passing the correct auth to your request
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
how to validate the return data of a csv during api tests in postman?
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.