Updated on 2024-01-18 GMT+08:00

Creating an API Automation Test Case

Background

API automation test cases involve the Details and Scripting tab pages.

  • Details: manages and describes test cases, including the name (mandatory), type, module, version, iteration, associated requirements, ID, tag, test case level, processor, folder, description, prerequisites, test steps, and expected result.
  • Scripting: defines the automated testing procedure, including the test steps, logic control, and test parameters.

Procedure

  1. Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
  2. In the navigation pane, choose Testing > Testing Case.
  3. Click the Auto API Test tab and click Create on the left.
  4. Enter the test case name, configure other information as required, and click Save. Alternatively, click Save and Write Script. The Scripting page is displayed.

    The main configuration items of API automation test cases are similar to those of manual test cases. For details, see Creating a Manual Test Case.

    The test case name can contain only 3 to 128 characters and allows uppercase letters, lowercase letters, digits, and special characters (-_/|*&`'^~;:(){}=+,×...—!@#$%.[]<>?–").