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
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- In the navigation pane, choose Testing > Testing Execution. By default, Test case library and Baseline are displayed.
- Click next to Test case library and select a test plan.
- On the Manual Test tab page, click Create Suite in the upper left corner. The creation page is displayed.
- 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.
- 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.
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- In the navigation pane, choose Testing > Testing Execution.
- Click next to Test case library and select a test plan.
- On the Auto API Test tab page, click Create Suite in the upper left corner. The creation page is displayed.
- 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.
- 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.
- Complete the execution settings as required and click Save.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot