Updated on 2023-08-07 GMT+08:00

Combined Keywords

Background

When designing test cases, you may often use the same preparations or test logic. If these steps are written in each test case, the workload is heavy and the maintenance is difficult. Combined keywords are used to encapsulate common test logic for multiple steps and can be invoked by test cases to implement logic reuse.

Scenario 1

  1. Click in the upper right corner of the Scripting tab page.
  2. Enter the Name and Description, select the directory, and set request parameters as required. Select the added URL Request and click Save.
  3. In the Keyword Library > Combine tab page, view the combined keywords that have been saved.

Scenario 2

  1. On the Keyword Library > Combine page, click next to the folder to be saved.

  2. Set Name and Description.
  3. You can add user-defined URL requests to the combined keywords.

    Click the API tab, select the folder where the keyword to be added is located, and click on the right of the keyword to be added or hover the cursor over the keyword area and drag the keyword to the test step area.

  4. Click Save.

For an added combined keyword, you can hover the cursor over the keyword area and perform the following operations:

  • Click on the right of the Keyword to create a folder. You can create combined keywords in a custom folder by referring to Step 1.
  • Click or hover the cursor over Combine to drag the combined keyword to the blank page of the test step to add it to the script.

  • Hover the cursor over Combine to adjust the sequence of combined keywords.
  • Click to edit the keyword information.

  • Click Mark As. You can set the status of Normal, New, or Update for the combined keyword.
  • Click Copy to copy a combined keyword test case in the folder.
  • Click Delete to delete a combined keyword.