it's very helpful for me to understand "Test" part in postman. How to write "test" in postman is my weakest part for using postman as a QA analyst to test API. Thank you very much for your tutorial video,
Please make videos on katalon studio if you can this is new tool work on top of selenium. Also if you know any resources to learn basic programming as Tester for JavaScript and java please let me know thanks a lot
You use a PUT to pass x-www-form-urlencoded data in the body of the request, and in the JSON returned, the header information actually shows "Content-Type": "application/x-www-form-urlencoded" on the Body tab, but in the Headers tab, it shows application/json. Now, I understand that the test as written is looking at the value of the Content-Type of the "Response Header", not the "Request Header" (or even more preferable the header Content-Type defined in the "Response Body"), but the whole idea of using the x-www-form-urlencoded formatted data in the first place is lost when your test is not actually testing for that type of content. This is confusing at best, and you don't explain the difference. May I suggest adding another short segment to your video to demonstrate modifying the snippet to test for the Request Header as well, like so... pm.test("Content-Type is present", function () { pm.expect(pm.response.headers.get("Content-Type")).to.eql('application/json') pm.expect(pm.request.headers.get("Content-Type")).to.eql('application/x-www-form-urlencoded') }); This in my opinion would round out the video to actually check for the content type of the concept introduced at the beginning of the video, and as a bonus, show how to further modify the snippets to be useful in more ways. I am very interested in your thoughts about my commnet and look forward to your response. Great work on these videos Valentin. I'm a fan! :) Keep up the awesome work!
👉 Want to learn more about Postman? Check my complete Postman online course.
vdespa.com/courses/?q=RUclips
All QA analysts loved this❤💯
Thanks!
Just started my new internship and this is going to help a lot! Thanks!
@@vdespa Thanks man, it's going really well so far! Thanks again for all helpful videos you do!
it's very helpful for me to understand "Test" part in postman. How to write "test" in postman is my weakest part for using postman as a QA analyst to test API. Thank you very much for your tutorial video,
Glad it was helpful!
You are an amazing teacher. Very Helpful.
Thanks a lot, brother.❤❤❤
Estoy iniciando con POSTMAN y este tutorial ha sido de gran ayuda.
¡Gracias por mirar! Por favor, suscríbase para recibir más tutoriales.
@@vdespa Estoy suscrito desde el primer día que te encontré, muchas felicidades tienes un gran canal
Very informative and goal oriented teaching. Thanks for suggesting tips as well, totally liked your videos. Cheers!
Awesome, thank you!
Thanks. It is very explainatory & simple to follow
i have not seen good amount of javascript anywhere, but its very nice..Thanks!!!expecting many more to come
Very easy and understandable video. Thanks.
Nice, thank you so much. Highly appreciate. Your channel has been subscribed
Thank you very much! 👍
Thank you very much, amazing!
You are welcome. Thanks for your comment.
Thanks a lot !! Very simple explanation and very useful!!!
I have subscribed for your channel!
I watched your videos and now understood how to write tests for GET and POST methods. Can we write tests for DELETE as well?
Of course. The principle is still the same.
@@vdespa Please try to make a video if you get time
Thanks Bro
thanks ,awesome and impressive
Hi, can you explain, why you recommended learning ES6 instead of the usual JS?
I find the code easier to write and read.
Thanks a lot
Please make videos on katalon studio if you can this is new tool work on top of selenium. Also if you know any resources to learn basic programming as Tester for JavaScript and java please let me know thanks a lot
Valentin Despa that will great big help thanks a lot
Nice
nice tutorial.. :)
httpbin.org is not working for me.. where else i can get some end point to practice more assertion. pls share some link for same
You use a PUT to pass x-www-form-urlencoded data in the body of the request, and in the JSON returned, the header information actually shows "Content-Type": "application/x-www-form-urlencoded" on the Body tab, but in the Headers tab, it shows application/json. Now, I understand that the test as written is looking at the value of the Content-Type of the "Response Header", not the "Request Header" (or even more preferable the header Content-Type defined in the "Response Body"), but the whole idea of using the x-www-form-urlencoded formatted data in the first place is lost when your test is not actually testing for that type of content. This is confusing at best, and you don't explain the difference. May I suggest adding another short segment to your video to demonstrate modifying the snippet to test for the Request Header as well, like so...
pm.test("Content-Type is present", function () {
pm.expect(pm.response.headers.get("Content-Type")).to.eql('application/json')
pm.expect(pm.request.headers.get("Content-Type")).to.eql('application/x-www-form-urlencoded')
});
This in my opinion would round out the video to actually check for the content type of the concept introduced at the beginning of the video, and as a bonus, show how to further modify the snippets to be useful in more ways. I am very interested in your thoughts about my commnet and look forward to your response.
Great work on these videos Valentin. I'm a fan! :) Keep up the awesome work!
Thank you for your constructive feedback, Marc. Most of the time the tests are targeted toward the response, not the request.