@Valentin Despa: Quick question: while deleting the record, we did not give any Authorization? May I know why? Or can i say that Delete method did not need any Authorization (in this case, API with delete method can run without Authorization) I would appreciate your response.
Good observation, Aman. This API does not require authorization for this endpoint, but it probably should, just to keep things consistent. Thanks for your remark.
Thank you, is very helpful. I'm doing the udemy course also. I haven't managed to get my head around the swagger docs for api's, hoping you could help please. Do these docs essentially detail all the endpoints of the api has, and are used as a reference point for using postman? Who creates these docs and do testers request it from the devs?
Thanks for taking the course! The swagger documentation (aka swagger UI) is auto generated based on the code and get's updated automatically. As you said, it is just a documentation of the API (endpoints, request method, body format, ...). Swagger has recently become a specification (OpenAPI) in a JSON or YAML format. You can import that in Postman and generate a collection.
Hi Valentine, This is a good video for the starters indeed with good example. Am currently working on postman from more than a year, I have a question may be good idea to ask here and help me n community if possible. The question is, I have a collection that runs end to end in different environment in CLI using npm (Fully automated using pre requisite scrips to generate random data for each field). Now I want to dockerise it so that I can ship into Jenkins pipe line and run it in schedule. Would be great if you can make a video on this. Thanks again
@@vdespa Yes. That's perfectly right. Suggest me if there is any other way too as we have one of the applications in cloud n the corresponding collections is automated but running in my local. This eventually needs to go to Jenkins pipe line and should trigger as soon as there a deployment. Am identifying ways to do it. However no clue. Hopefully will get some solution soon. Am new to docker. Would be good if you can help out ways of doing. May a good idea to share a video on how to dockerise postman collections with Newman n running in pipeline
@@sharmak2746 You don't need to convert them. You just need to use an existing Docker image. learning.postman.com/docs/postman/collection-runs/newman-with-docker/
Is it possible to cover a 'Negative' API test scenario in POSTMAN? I'm verifying that Error: 400 is expected and 1/2 of my test is passing and another is failing with "Failed | AssertionError: expected false to be truthty" is there any way to avoid this assertion error?
Hi, of course, Postman can also check for any errors that you can generate. Why does it bother you that one assertion is failing while the other one is successful?
1.In the first request I am generating token using basic Auth 2. In the next request, using the generated token ,I am sending a request payload where I want to set like if the username, password combination (in the first request) is suppose a and b, then I want my tradingAgent field to be suppose B, else C or other combinations How can I achieve this, I am new to postman and javascripting. My second request looks like this "sequence": "5533", "tradingAgent": "{{tradingAgent}}", I understand in the pre-requisite script I have to write..but the below doesnt work..enter image description here var username = pm.environment.get("username"); if (username = ("a")) (password = ("b")) pm.environment.set("tradingAgent","B"); else pm.environment.set("tradingAgent","C")
Your if statement looks weird. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
👉 Want to learn more about Postman? Check my Postman online course.
www.udemy.com/course/postman-the-complete-guide/?referralCode=4E8B90BA4B5EE8DA9237
It is the cleanest, most professional and clearest video I have seen so far. I congratulate you for the contribution.
Wow, thank you!
One hell of an tutorial. Thank You, means a lot.
You are welcome. Thank you for leaving a comment.
awesome tutorial
You are welcome. Thank you for leaving a comment.
@Valentin Despa: Quick question: while deleting the record, we did not give any Authorization? May I know why? Or can i say that Delete method did not need any Authorization (in this case, API with delete method can run without Authorization)
I would appreciate your response.
Good observation, Aman. This API does not require authorization for this endpoint, but it probably should, just to keep things consistent. Thanks for your remark.
I love the cat notes :) And the tutorials are very interesting..!
Glad you like them! ;)
Great video! Very helpful. Thanks for posting.
Thanks for watching!
I appreciate you for work you have done
Thank you very much!
Your class is awesome, by the way: what about send-me that shirt? lol
You are welcome. Thank you for leaving a comment.
Awesome! thank you very very much! Pressing subscribe :)
You are welcome. Thank you for leaving a comment.
Excelent video! Very helpful. I am loving your courses on udemy. Keep up the good work Valentin!
Thank you very much, João!
Thank you, this helped alot! Great tutorial :)
I am glad, thank you for letting me know.
Thank you, is very helpful. I'm doing the udemy course also.
I haven't managed to get my head around the swagger docs for api's, hoping you could help please. Do these docs essentially detail all the endpoints of the api has, and are used as a reference point for using postman? Who creates these docs and do testers request it from the devs?
Thanks for taking the course! The swagger documentation (aka swagger UI) is auto generated based on the code and get's updated automatically. As you said, it is just a documentation of the API (endpoints, request method, body format, ...).
Swagger has recently become a specification (OpenAPI) in a JSON or YAML format. You can import that in Postman and generate a collection.
Hi, I want to learn API with PostMan
Begin here: ua-cam.com/video/VywxIQ2ZXw4/v-deo.html
Dear Valantine, Your TShirt is nice with POSTMAN Logo. do we get online from Amazon? BTW Im from India
I got it last year from Postman shop here: store.getpostman.com/
@@vdespa ...Thanks for the info. sure will try...
Hi Valentine, This is a good video for the starters indeed with good example. Am currently working on postman from more than a year, I have a question may be good idea to ask here and help me n community if possible. The question is, I have a collection that runs end to end in different environment in CLI using npm (Fully automated using pre requisite scrips to generate random data for each field). Now I want to dockerise it so that I can ship into Jenkins pipe line and run it in schedule. Would be great if you can make a video on this. Thanks again
Thank you for your comment. Just to clarify, you want in Jenkins to directly run a Docker image containing Newman and the Postman collection?
@@vdespa Yes. That's perfectly right. Suggest me if there is any other way too as we have one of the applications in cloud n the corresponding collections is automated but running in my local. This eventually needs to go to Jenkins pipe line and should trigger as soon as there a deployment. Am identifying ways to do it. However no clue. Hopefully will get some solution soon. Am new to docker. Would be good if you can help out ways of doing. May a good idea to share a video on how to dockerise postman collections with Newman n running in pipeline
@@sharmak2746 you can use a Newman docker images and run the tests in that way. Would that help?
@@vdespa yes. Need to try how to do that? Is there any documentation to convert postman collections n new man into a docker image
@@sharmak2746 You don't need to convert them. You just need to use an existing Docker image. learning.postman.com/docs/postman/collection-runs/newman-with-docker/
Is it possible to cover a 'Negative' API test scenario in POSTMAN? I'm verifying that Error: 400 is expected and 1/2 of my test is passing and another is failing with "Failed | AssertionError: expected false to be truthty" is there any way to avoid this assertion error?
Hi, of course, Postman can also check for any errors that you can generate. Why does it bother you that one assertion is failing while the other one is successful?
1.In the first request I am generating token using basic Auth 2. In the next request, using the generated token ,I am sending a request payload where I want to set like if the username, password combination (in the first request) is suppose a and b, then I want my tradingAgent field to be suppose B, else C or other combinations How can I achieve this, I am new to postman and javascripting.
My second request looks like this
"sequence": "5533",
"tradingAgent": "{{tradingAgent}}",
I understand in the pre-requisite script I have to write..but the below doesnt work..enter image description here
var username = pm.environment.get("username");
if (username = ("a")) (password = ("b")) pm.environment.set("tradingAgent","B");
else
pm.environment.set("tradingAgent","C")
Your if statement looks weird. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.