Postman interface automated testing - batch execution (set operation)

Set definition: Save a set of requests (multiple requests) together for centralized management in the process of interface automation testing. It is convenient for maintenance, export and execution during execution.

Create a collection Click "Collection" on the guide page, or click the + icon on the "Collection" tab;

field explanation

collection description

Give the collection a name.

authorized

The authorization settings requested in the collection. Support: Bearer Token, Basic Auth, Digest Auth, OAuth1.0, OAuth2.0, Hawk Authentication, AWS Signature, etc.

pre-script

affirmation

Variables For example, create variables a and city and assign values ​​to them respectively.

After inputting, click Submit, and the collection is created successfully.

Create a request in a collection Click "..." on the collection and select "Add Request" in the drop-down menu;

Enter the request name in "SAVE REQUEST", and click the button in the save to collection.

Fill in the request address and parameters, and you can use the same method to create multiple requests.

Referencing variables in the collection References two variables ({ {a}} and { {city}}) created in the collection in the request .

To duplicate a request, right-click above the request and select "Duplicate";

Modify the corresponding parameters according to the test requirements.

Collection Test Execution

Collection Execution Settings

In the collection, click the triangle arrow on the right to open the collection operation page and click "Run";

Open the "Collection Runner" page, displaying the number of requests in the current collection, configuration settings environment variables, number of cycles, delay time, logs and parameters.

Collection execution click "Run".

Finally, the execution result is displayed, and the PASSED and FAILDED data will be counted only when the request assertion is added.

View request execution results Click the request name to view request and response data.

In the upper right corner, there are "Run Summary" result statistics, "Export Results" to export test results, "Retry" to execute again, and "New" to re-initiate set execution.

The exported test results can be imported and viewed in the "Import Test Run" of the collection execution settings page.

Finally: The following are the supporting learning materials. For friends who do [software testing], it should be the most comprehensive and complete preparation warehouse. This warehouse also accompanied me through the most difficult journey. I hope it can help you too!

Software testing interview applet

The software test question bank maxed out by millions of people! ! ! Who is who knows! ! ! The most comprehensive quiz mini program on the whole network, you can use your mobile phone to do the quizzes, on the subway or on the bus, roll it up!

The following interview question sections are covered:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. web, app, interface automation, 7. performance testing, 8. programming basics, 9. hr interview questions, 10. open test questions, 11. security testing, 12. computer basics

  How to obtain the full set of materials: Click the small card below to get it yourself

Guess you like

Origin blog.csdn.net/weixin_57794111/article/details/132601861