Postman upgraded version (3)

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
    Insert picture description here
  • How to use asserts in postman
    Insert picture description here
  • In postman, he provides us with a test function, we can fill in the assertions we need to add here
    Insert picture description here
Examples
  • Test whether https://www.baidu.com/ website can request success
    Insert picture description here
  • Send a request to view the results
    Insert picture description here
Use postman to achieve simple ui test

Insert picture description here

  • Required libraries
    Insert picture description here
  • Specific learning materials can be found on this website
    https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/summary
    Insert picture description here
    :
Published 35 original articles · won 4 · views 3621

Guess you like

Origin blog.csdn.net/qq_29074261/article/details/105460262