Data-driven testing with different data sets for each request

  Рет қаралды 16,944

Valentin Despa

Valentin Despa

Күн бұрын

Пікірлер: 41
@vdespa
@vdespa 3 жыл бұрын
👉 Want to learn more about Postman? Check my complete Postman online course. vdespa.com/courses/?q=KZbin
@vijayalakshminaik6050
@vijayalakshminaik6050 2 жыл бұрын
Hi i am getting typeerror: Cannot read property 'filter'of undefined for pre requisite code can you please suggest
@sparknoid
@sparknoid 2 жыл бұрын
Loved your videos valentine with data driven testing heavily used in my company I was able to create collection and automate sanity suites for myself in testing .... It was amazing !!! Reduced manual effort tremendously. .looking forward to these kinds of more videos
@vdespa
@vdespa 2 жыл бұрын
Thanks for letting me know. Please email me at valentin@vdespa.com - I would love to hear more about your use-case.
@sparknoid
@sparknoid 2 жыл бұрын
@@vdespa what more concepts are there to master this tool ?
@prateektomar4874
@prateektomar4874 Жыл бұрын
This video is really very interesting. Love from India :)
@vdespa
@vdespa Жыл бұрын
Glad you enjoyed it! You are welcome. Thank you for leaving a comment.
@pankajkukkar3849
@pankajkukkar3849 Жыл бұрын
Thank you Valentin for creating such informative video on Postman. It really helped me to resolve the issue i was facing. I have another requirement to generate html report along with junit or json report for the same run. could you please help me to generate all the possible reports for each runs performed from Postman instead of only html or only json report.
@vibhorsharma2436
@vibhorsharma2436 3 жыл бұрын
Thanks @Valentin, it is awesome video, it helps lot. I have an query, let suppose i have two Post Request in the collection and i have created one .csv/.json file but for the first request i have 3 data set and for 2nd I have four data set. When i run the collection then at the four iteration first request fail because of no data, there is any way when runner is running that time first request should not be run for forth iteration.
@venkataammanabrolu3736
@venkataammanabrolu3736 3 жыл бұрын
Any update on this?
@harishkce1989
@harishkce1989 Жыл бұрын
Hello Valentin - thanks for sharing the java script file - just a quick question for clarification - does the script stop logically if the imported file is not valid or no data found ? and sequential steps are not executed ? ex : you have if (requestdata.length==0 console.log) { console.log ("No data found"); return; }
@aakashjain4437
@aakashjain4437 3 жыл бұрын
Please create a video based on the E2E testing flow with MySQL DB connection setup along with complex queries. Btw your all content are awesome.
@perrucheval
@perrucheval Жыл бұрын
Is there a way to modify this so that it is possible to start the data loop at a folder level instead? Ex: folder 'User' contains 2 folders containing each a flow of requests. 1 flow is not data-driven and 1 is. If executing manually from Postman, I would start the run of the datadriven folder adding the dataset at that level and not the request. I want to be able to start my full collection adding the dataset at the collection level but only have it applied for its designated folder. ps. the data file would contain different datasets for different folders too
@vitav2009
@vitav2009 8 ай бұрын
hi where is the pre-request code form your video available?
@vdespa
@vdespa 8 ай бұрын
Did you check the description? It contains a link to the collection.
@mogliff3414
@mogliff3414 3 жыл бұрын
This is wonderful I wanted to hide pre- request logs from console is there anyway ?
@shrutigoyal7666
@shrutigoyal7666 Жыл бұрын
Hey Valentin just loved your tutorial. Its super useful. But i need one help. am stuck at 1 place. the data set which i am sending to my request has different response status codes and not just 200 OK so i want to pass the code value as well from the file. SO this is how am giving the value in my json { "id1":"b36059d1-f323-4f6b-aaad-a5f863e94304", "id2":"bc", "status":"200" } , So now in my test i want to assert with this status code and am finding it difficult to read status value and compare for each data or iteration . Is this possible? I could do it with single request data file but with the above data file am finding it difficult
@vdespa
@vdespa Жыл бұрын
Thanks for your kind words. It is hard to answer this with the given information. Consider posting your question in the Postman community (community.postman.com/) and share what you have tried so far and where did you get stuck. Include screenshots and as many details as possible. Feel free to tag me with @vdespa. Thanks!
@YoursKSMahesh
@YoursKSMahesh 2 жыл бұрын
Hi Valentin, great job, thank you. But there is a problem with your pre-request script. I'm driving the data from JSON where I'm asserting actual and expected. On doing so, I'm getting undefined for pm.variables.set(key, value). Until previous step, I'm able to fetch the data. Your guidance is appreciated in resolving this issues as its solves much effort. Thanks, Mahesh
@vdespa
@vdespa 2 жыл бұрын
You can't fetch data you set. Use get.
@YoursKSMahesh
@YoursKSMahesh 2 жыл бұрын
@@vdespa Thanks for the response. Let me check
@Lucajeck
@Lucajeck 3 жыл бұрын
Hi, thank you very much for your videos, I have been an analyst tester for a short time and I have learned a lot thanks to you. I need a little advice. Is there any way or tool to compare the output of one set of APIs with the output of another set of APIs automatically? I would like to understand if the new APIs developed by the developers have the same output as the old ones with the same input. Thank you very much.
@vdespa
@vdespa 3 жыл бұрын
Thanks, Claudio! Have you seen this tutorial: kzbin.info/www/bejne/b3rKp3mhgM19mM0
@arpitasuhagiya9629
@arpitasuhagiya9629 2 жыл бұрын
Hiii valentin.. I'm getting "Can not reas properties of undefined (reading 'iterationData') " I have tried same pre-request script as your for my 2 post api and when i try to run collection getting this error. While i hve provided json file already.. Can you help me out... Thank you for this video..
@vdespa
@vdespa 2 жыл бұрын
It is hard to answer this with the given information. Consider posting your question in the Postman community (community.postman.com/) and share what you have tried so far and where did you get stuck. Include screenshots and as many details as possible. Feel free to tag me with @vdespa. Thanks!
@cht7162
@cht7162 2 жыл бұрын
Hi Valentin, is it possible to use a dynamic data from a website and then use it as a value of a variable?
@vdespa
@vdespa 2 жыл бұрын
Theoretically yes, but you need to parse the website to extract that value. So things could get ugly.
@harutyunharutyunyan790
@harutyunharutyunyan790 2 жыл бұрын
Hi Valentin, great job, thank you. But there is a problem with your pre-request script. Before running collection when Iterations are set more than one, an error occures on a second iteration - "TypeError: Cannot convert undefined or null to object"
@vdespa
@vdespa 2 жыл бұрын
Does one iteration work?
@harutyunharutyunyan790
@harutyunharutyunyan790 2 жыл бұрын
@@vdespa yes
@vdespa
@vdespa 2 жыл бұрын
@@harutyunharutyunyan790 Well, why do you need two iterations?
@harutyunharutyunyan790
@harutyunharutyunyan790 2 жыл бұрын
@@vdespa I tried to do load test)
@vdespa
@vdespa 2 жыл бұрын
@@harutyunharutyunyan790 Postman is not a load testing tool. Check my channel, I did a video about this.
@krishnakiranvajha3175
@krishnakiranvajha3175 3 жыл бұрын
Hi valentin ... I have a scenario : Request A should be executed only once and it’s o/p I have to use in request B ... And request B should be executed multiple times with different data from csv. Data I am loading from csv to request B. Req A o/p I saved in env variable and passed to req B . While running through runner how to limit req A to only one iteration ?? Pls help !!
@vdespa
@vdespa 3 жыл бұрын
Once you understand the main concepts around variables, some JavaScript and the content of this tutorial, it should not be difficult to implement your use-case.
@rajashreekale3894
@rajashreekale3894 3 жыл бұрын
I have 6 requests in my collection and every request need different set of data and number of data sets for every request is different. I want to run 1st requests for 50 data sets and 2nd with 89 data sets(Iterations) and remaining requests only once. Can I achieve this using csv?
@venkataammanabrolu3736
@venkataammanabrolu3736 3 жыл бұрын
Any update on this?
@vdespa
@vdespa 2 жыл бұрын
It is hard to answer this with the given information. Join the Discord community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@zafarTAG
@zafarTAG 3 жыл бұрын
How did you load data in Postman from that json file
@vdespa
@vdespa 3 жыл бұрын
You use the collection runner or newman.
Data-driven testing using Postman
13:37
Valentin Despa
Рет қаралды 60 М.
Loop request based on data from response in Postman
13:13
Valentin Despa
Рет қаралды 62 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Pre-request Scripts in Postman | The Exploratory
8:10
Postman
Рет қаралды 24 М.
JSON Schema validation in Postman
9:29
Valentin Despa
Рет қаралды 48 М.
Programatically change the request body in Postman
14:33
Valentin Despa
Рет қаралды 19 М.
Compare two JSON responses with Postman
30:14
Valentin Despa
Рет қаралды 22 М.
API Testing using ReadyAPI : Data Driven Testing - Part1
18:17
Testing World
Рет қаралды 6 М.
Consumer-driven Contract Testing using Postman
30:47
Valentin Despa
Рет қаралды 32 М.
Learn JavaScript for Postman API testing - Full Course for Beginners
1:28:39
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН