Advanced API testing: Best Practices and Automation Techniques | Postman Intergalactic
Вставка
- Опубліковано 22 лип 2024
- Join us for an intermediate-level, one-hour Postman training tailored specifically for API testers, developers, and other stakeholders invested in the health of your APIs. If you already know how to write and run tests in Postman, this session takes it to the next level. Learn advanced testing workflows and recommended practices for testing in Postman.
0:00 Overview of different types of testing in Postman
10:00 DEMO: Scenario testing and collection runner
17:45 DEMO: Contract testing
19:45 DEMO: Fuzz testing by looping through external data file
22:40 Tips and Tricks for writing better Postman tests
25:12 Overview of different methods for test automation in Postman
31:00 DEMO: Testing collection and workspace templates
32:38 DEMO: Run collection using Scheduled runs
34:30 DEMO: Run collection using Postman CLI
37:40 DEMO: Run collection using Run on CI/CD and build configuration file
38:50 DEMO: Performance testing (load testing)
43:30 DEMO: Deploy API workflow on Flows webhook
48:24 Recap of what was demonstrated
49:50 Consider testing throughout the API producer lifecycle
52:00 Self-assessment of testing skills in Postman
52:50 Recap of what we covered, and new releases coming soon
56:09 Additional resources for testing in Postman
Sign up for live webinars:
www.postman.com/events/interg...
Link to sample collection
www.postman.com/postman/works... - Наука та технологія
This is amazing. Thank you so much, hello from Vietnam
very useful presentation
Appreciate the demo. Can you guide me towards resources for using Postman in data migration, specifically handling optional values from a JSON file and managing their inclusion in the request? Also, is it possible to incorporate pre-request-script logic in the automation process?
Here is a code sample to set the request body dynamically from pre-request script: www.postman.com/postman/workspace/postman-answers/request/9215231-ecbfa776-0064-4a80-a1e4-2a0e768e9765
Very useful! could you please provide me with a link to the webhooks flows session?
Here is the latest Flows webinar: www.postman.com/events/intergalactic/building-low-code-applications-with-postman-flows/
I was trying to send the POST request, but I got:
{
"message": "Invalid or missing credentials. Make sure you add 'api-key' to the request headers with a valid value"
First run the "Fetch a list of books", and copy the first id from the response. Paste it into the "Variables" of the main "Advanced API Testing" as bookId's Current value. And then run the "Create a new book", it'll pass.
After I post the question I could see that it wasn't me who has the problem with the POST. I tried many version of api-key - generated API key, added a ramdom value... nothing works.
Plz help :-)
Great question! We actually have a community page dedicated to answering questions just like this one, which you can find here: community.postman.com
Please submit your question and a link to this video there, so that it can reach the greater Postman Developer Community.
First run the "Fetch a list of books", and copy the first id from the response. Paste it into the "Variables" of the main "Advanced API Testing" as bookId's Current value. And then run the "Create a new book", it'll pass.
When I run 'create new book' I keep on getting 'invalid or missing credentials' message. I thought the API Key was being inherited from parent.
Under the Authorization tab for the request, you can see if any auth helper is being used, for example inherited. For extra clarity, open the Postman console (bottom left) to see the outgoing request headers Postman is sending.
@@postman Hi. I'm having the same issue as @nasermahmood7991 but I don't really understand your response. I'm trying to follow along with this video, but I cannot do the first POST - Create a new book. I tried to have API-key blank, I tried generating a key and I tried using the key I can see you are using in the video, neither works. I can see in my console that postman is sending whichever key I am trying to use, but I don't know what to do with that information. Can you please help?
@@kiwikite83 First run the "Fetch a list of books", and copy the first id from the response. Paste it into the "Variables" of the main "Advanced API Testing" as bookId's Current value. And then run the "Create a new book", it'll pass.