Generating a Test Case
A test case describes a test task for a specific software product, including the test solution, method, technique, and policy. The content includes the test objective, test environment, input data, test procedure, expected result, and test script.
In CodeArts TestPlan, you can create test cases for manual testing, automated API testing, automated performance testing, and custom automated testing.
You can directly create test cases, or design the test on a mind map and then generate test cases on the map.
Concepts related to test case:
- Test case library: It stores all types of cases in different versions of a project. For details, see Test Case Library.
- Manual test case: It includes test steps for a specific test scenario, their expected results, the test case result, and the test case status.
- Automated API test case: It is used to automate the testing of predefined APIs to verify system functions and performance. These test cases simulate user operations and input data based on API design standards to check whether the system processes requests correctly and returns accurate responses.
Test Case Library
In the test case library, you can view, manage, and use all test cases of the versions of a project.
- You can add test cases from the test case library to test plans.
- You can view, manage, and use only the test cases in the current test plan.
- The test cases created in test plans are collected to the test case library.
To view the test case library, perform the following steps:
- On the top navigation bar, choose
. The test case library is displayed by default.
Select a test plan from the drop-down list of the test case library to view the test case details of the plan.
Generating Test Cases Based on Features
You can create a feature folder in the Features directory and then create test cases in the folder.
- In the navigation pane, choose .
- Click Features on the left of the page.
- By default, all test cases belong to this Features directory, which has a default subdirectory Other. Click
on the right of the Features directory to create another subdirectory. Click
next to the new subdirectory to delete or rename the subdirectory, or create test cases or subdirectories.
- By default, all test cases belong to this Features directory, which has a default subdirectory Other. Click
- Click the subdirectory, select an execution type tab, and click Create Case. Then, the created test case is saved in the subdirectory.
Generating Test Cases Based on Requirements
If a project has been associated with a requirement, you can create test cases for the requirement in the Requirements directory.
- In the navigation pane, choose .
- Click Requirements on the left of the page. By default, all associated requirements of the project belong to this Requirements directory.
To associate a project with requirements, see Creating a Work Item.
- Click a requirement in the Requirements directory, all test cases associated with the requirement are displayed. To create a test case, click an execution type tab and click Create Case. The new test case is associated with the requirement by default.
- On the right of the requirement name, click
and choose to view the requirement details or create a test case for the requirement.
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