Use postman to achieve automated testing
If we want to achieve automation, our software must have the ability to judge, that is, it must be able to know whether this request can and whether the data returned can meet our requirements, then if it can judge like humans, naturally We can use it to implement automated testing. How to implement it? At this time, we need to use a technology that is an assertion. The so-called assertion is actually a judgment.
- What is an assertion
- How to use asserts in postman
- In postman, he provides us with a test function, we can fill in the assertions we need to add here
Examples
- Test whether https://www.baidu.com/ website can request success
- Send a request to view the results
Use postman to achieve simple ui test
- Required libraries
- Specific learning materials can be found on this website
https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/summary
: