Updated on 2024-04-08 GMT+08:00

Action Word Library Management

Action Word Lib is used to manage APIs generated by importing files. After keywords are set for API files, you can quickly invoke APIs in test cases by searching for the keywords.

Importing an Interface File

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Click the name of the desired PerfTest project to go to the details page.
  3. Choose the Cases tab, and on the Action Word Lib page on the right, click Import API tab. You can also click on the right of the Keyword.
  4. In the displayed window, add the Swagger file and click OK.
  5. After the API file is successfully imported, a directory named after the file is automatically generated in the Keyword.

Adding a Keyword Directory Group

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Click the name of the desired PerfTest project to go to the details page.
  3. Choose the Cases tab, and on the Action Word Lib page on the right, click on the right of the Keyword.
  4. Enter the directory name of the new group and click another position no the page. The directory name is automatically saved.

Invoking the Keyword Directory API

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Click the name of the desired PerfTest project to go to the details page.
  3. On the Cases tab, select the desired test case in the case list on the left.
  4. Drag the API card to be invoked from Action Word Lib on the right to the Test Procedure of Case Script.

    Figure 1 Invoking an API

  5. Configure the test procedure in the invoked API template based on the service requirements.
  6. When the configuration is complete, click Save.