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

Creating a Test Suite

You can use a test suite to assign test cases to a specific processor.

Prerequisites

  • Multiple test cases have been created.

Creating a Manual Test Suite

  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 Execution. By default, Test case library and Baseline are displayed.
  3. Click next to Test case library and select a test plan.
  4. On the Manual Test tab page, click Create Suite in the upper left corner. The creation page is displayed.
  5. Configure the parameters by referring to the following table.

    Configuration Item

    Mandatory

    Description

    Name

    Yes

    Name of a suite. Enter 1 to 128 characters.

    Plan Period

    No

    Select the start time and end time of the test suite.

    Description

    No

    Brief description of the suite. Max. 500 characters.

    Tag

    No

    Enter up to 10 tags separated by spaces.

    ID

    No

    Enter 3 to 128 characters. If this is not set, the service will automatically generate an ID.

    Module

    No

    Select a module in the current project. For details about how to set a module, see Adding Work Item Modules.

    Version

    No

    Enter a version containing at least three characters.

    Processor

    No

    Select a person responsible for processing the suite.

  6. Click Add Case or Add now, select the test case to be tested, click OK, and click Save.

    To search for a test case, enter the name, ID, description, or custom fields in the search box.

Creating an Automated API Test Suite

With CodeArts TestPlan, you can create API test suite, run test cases in serial or parallel mode, and accelerate execution of some test cases. The service helps you use resource pools efficiently, reduce task blocking, intercept product defects in advance, and detect issues quickly.

  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 Execution.
  3. Click next to Test case library and select a test plan.
  4. On the Auto API Test tab page, click Create Suite in the upper left corner. The creation page is displayed.
  5. Configure the parameters by referring to the following table.

    Configuration Item

    Mandatory

    Description

    Name

    Yes

    Name of a suite. Enter 1 to 128 characters.

    Preparations

    No

    Prepare the data required during testing.

    Click Add Now to select preparation cases from the list.

    Followups

    No

    Release or restore the test data.

    Click Add Now to select followup cases from the list.

    Agent Pool

    Yes

    The agent pool allows you to access your own execution resources. When executing a task, you can select an agent in the agent pool to execute the task. This improves the task execution efficiency and does not depend on public resources of CodeArts. Click Agent Pool Management to see existing pools. For details about how to create an agent pool, see Creating an Agent Pool.

    ID

    No

    Enter a number of 3 to 128 characters.

    Tag

    No

    Set tags for the current task as required. The tags are separated by spaces. Each task can be associated with a maximum of 10 tags.

    Module

    No

    Module of the current test suite. The module list comes from the project settings. For details, see Adding Work Item Modules.

    Processor

    No

    Person who needs to complete the test task.

    Version

    No

    Select the version that has been set for the current test plan and test cases.

    Environment Parameters

    No

    Environment parameters can be referenced by parameters, checkpoints, variables, and URLs of test steps in the entire project. Click to create an environment parameter.

    Max. Duration

    Yes

    The longest time taken for executing a test case. Cases exceeding this limit will fail. Max. 10 minutes.

    Overwrite Test Suite Parameters

    No

    You can set advanced parameters for a test suite, and overwrite global parameters in a test suite. A maximum of three global parameters can be overwritten.

    Execute

    Yes

    There are two types. By default, the task is executed only once.

    • Once: The test suite is executed only once.
    • Regularly: After you set an execution frequency, the test suite is executed periodically. Set this parameter to daily.

    Start

    Yes

    There are two options. By default, the task is executed immediately.

    • Immediately: The task is executed immediately.
    • At specific time: The task is executed at a specified time.

    Sequence

    Yes

    There are two modes. The default mode is Serial.

    • Serial: Test cases in the API test suite are executed in serial mode.
    • Parallel: Test cases in the API test suite are executed in parallel mode.

  6. Click Add Case or Add Now and select the test case to be executed.

    To search for a test case, enter the name, ID, description, or custom fields in the search box.

  7. Complete the execution settings as required and click Save.