Updated on 2024-10-11 GMT+08:00

Adding an API Script by Importing a Postman File

Background

Test steps can be generated by importing Postman files for automated API test cases.

Requirements:

  • The Postman Collection v2.1 standard is supported.
  • Use only the Postman request method, URL, header, and body to generate test steps.
  • Use only the form-data, x-www-form-urlencode, or raw modes to import the Postman request body.
  • Upload the Postman request form-data attachment separately in test steps.

Procedure

  1. After the operations described in Creating an Automated API Test Case Template are complete, click the test case name, and click the Scripting tab.
  2. Click Postman. In the dialog box that is displayed, click , select the file to be imported, and click OK.

  3. The URL request is displayed on the page. Click Save in the upper right corner. The system displays a message indicating that the update is successful.

    If the saving fails, a dialog box is displayed in the upper right corner, indicating the failure cause.