Postman (01): Postman interface test parameters of the CSV

  1. Data preparation
    Create a new Excel file, which is written in the required parameters in the following format :( Note that the first line is a reference to the name of the parameter)
    Here Insert Picture Description
    when completed, will save it as a CSV format, put down their favorite path. I'll just put the desktop.
    Here Insert Picture Description

  2. Edit request
    Open Postman, set the variable parameters by way of illustration:
    Here Insert Picture Description
    and writing the appropriate assertion Tests (I here 200 determines whether the return value; response time less than 5S; Back "transfer success" prompt):
    Here Insert Picture Description
    can their first try to perform a group:
    Here Insert Picture Description

  3. Set parameterization file associated with
    the requested file folder click the Run:
    Here Insert Picture Description
    In the new pop-up window is set as follows:
    Here Insert Picture Description

  4. Click below to run, you can start the parameterization interface testing, we can see the progress and the results of running in the pop-up window.
    Here Insert Picture Description

  5. Note Point 1: If after running discovery Pass and Failed fields are empty , please first check is not asserted forget to write.

  6. Note Point 2: If the assertion is no problem, please click Collection Runner in Preview preview:
    Here Insert Picture Description
    you can see the parameters we set, the Chinese are garbled all
    we can set the encoding format (Content-Type application in the header of the request / json; charset = UTF-8)
    Here Insert Picture Description
    can be solved. After the setting is completed, the results as shown below:
    Here Insert Picture Description

软件测试工程师一只,也在不断的学习阶段,平时的小经验不定期分享。
博主经验有限,若有不足,欢迎交流,共同改进~
愿与同在CSDN的你共同进步

Guess you like

Origin blog.csdn.net/qq_36396763/article/details/93594672