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

Add Step

Request Header

  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. On the Case Script tab, click Steps.
  5. Click Header under Add Control.
  6. Set Name and Value.

    Add headers and contents based on the headers to be verified or used by a pressure test server. Headers are not mandatory. Only user-defined headers are transparently transmitted to the pressure test server. For details about Header, see Header Description.

  7. When the configuration is complete, click Save.

Comment

  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. On the Case Script tab, click Steps.
  5. Click Comment under Add Control.
  6. Enter the comment content. Comments are added to facilitate test case maintenance. Comments are not actually executed.
  7. When the configuration is complete, click Save.

Sleeping Time

  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. On the Case Script tab, click Steps.
  5. Click Sleep under Add Control.
  6. Enter the sleeping time. You can add the sleeping time for subsequent interface invoking.
  7. When the configuration is complete, click Save.

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. On the Cases tab, select the desired test case in the case list on the left.
  4. On the Case Script tab, click Steps.
  5. Click Group under Add Control.
  6. Enter a group name. If there are too many interfaces in a test case, you can use the grouping component to classify functions to facilitate subsequent maintenance. The grouping component is used only for classification maintenance.
  7. When the configuration is complete, click Save.

Transactions

  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. On the Case Script tab, click Steps.
  5. Click Transaction under Add Control.
  6. Enter the transaction name.
  7. When the configuration is complete, click Save.

if condition

  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. On the Case Script tab, click Steps.
  5. Click if condition under Add Control.
  6. Enter the judgment condition. Execute the corresponding branch based on the judgment result of the if condition statement.
  7. When the configuration is complete, click Save.

Loop

  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. On the Case Script tab, click Steps.
  5. Click Loop under Add Control.
  6. Enter the number of loops.
  7. Click on the right of Loops to set the loop interruption condition. When the test meets the interruption condition, the loop exits.
  8. When the configuration is complete, click Save.

Fail

  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. On the Case Script tab, click Steps.
  5. Click Fail under Add Control.
  6. Set the conditions for failing the test in the if statement. When the conditions are met, the operation fails and subsequent interfaces will not be executed.
  7. When the configuration is complete, click Save.

Percentage

  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. On the Case Script tab, click Steps.
  5. Click Fail under Add Control.
  6. Set the concurrent weight percentage.
  7. When the configuration is complete, click Save.