8、collection

collection

Can be understood as a container

  • Organizing business logic
  • Import and Export
  • monitor or mock server

Example:

1. Create a new collection and name it v2ex

 

 

 2. Save 1 request to v2ex

 

 

3. Select v2ex, click the small arrow, and click run

 

4. Before introducing the collection runner interface, let's create a set of json data locally, because we plan to change the name of our node in a data-driven way. The json data we create locally is as follows (note that the file suffix is ​​json), At the same time we add assertions to our interface

 

 

5. Collection runner interface introduction and operation

6. View the running results, 3 use cases, and 6 assertions. So far, the basic introduction of collection has been completed.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325203603&siteId=291194637