Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.
- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Working with CodeArts TestPlan
- Enabling CodeArts TestPlan
- Accessing CodeArts TestPlan Homepage
- Configuring a Test Plan
- Configuring a Test Version
-
Configuring a Test Case
- Generating a Test Case
- Creating a Test Case by Using Mind Map
- Creating a Manual Test Case
-
Creating an Automated API Test Case
- Using Automated API Test Cases
- Creating an Automated API Test Case Template
- Adding an API Test Script by Using a Custom URL Request
- Adding an API Script by Importing a Postman File
- Adding an API Script by cURL
- Adding an API Script by Keyword Library
- Adding Logic Control to an API Script
- Setting Test Case Parameters of an API Script
- Setting Environment Parameters of an API Script
- Importing an Automated API Test Case Dataset
-
Built-in Functions
- Binary Addition Function
- Binary Subtraction Function
- Binary Multiplication Operation
- Binary Division Operation
- Obtaining the Current Timestamp
- Obtaining a Specified Timestamp
- Converting a Date into a Timestamp
- Converting a Timestamp into a Date
- Timestamp Addition and Subtraction Operations
- Generating Base64 Encoding
- Generating SHA512 Encoding
- Generating SHA256 Encoding
- Generating an MD5 Hash Value
- Generating a Random Number in a Specified Range
- Generating a Random String of a Specified Length
- Generating a Random Decimal in a Specified Range
- Generating a UUID
- Obtaining an Array via Reverse Index
- Obtaining the Element Values of an Array via Reverse Index
- Converting Uppercase Letters into Lowercase Letters
- Converting Lowercase Letters into Uppercase Letters
- Concatenating Strings
- Cutting Strings
- Obtaining String Length
-
System Keywords
- Overview
- GetIAMToken
- MySQLQuery
- MySQLUpdate
- MySQLInsert
- MySQLDelete
- OpenGaussQuery
- OpenGaussUpdate
- OpenGaussInsert
- OpenGaussDelete
- PostgreSQLQuery
- PostgreSQLUpdate
- PostgreSQLInsert
- PostgreSQLDelete
- MongoDBQuery
- MongoDBInsert
- MongoDBUpdate
- MongoDBDelete
- RedisGet
- RedisSet
- OBSWrite
- OBSDelete
- OBSQuery
- KafkaProducer
- KafkaConsumer
- TCP
- UDP
- WSConnect
- WSRequest
- WSWriteOnly
- WSReadOnly
- WSDisConnect
- DubboClient
- Executing a Test Case
- Managing Test Cases
- Creating and Executing a Test Suite
- Viewing and Evaluating Test Quality
- Settings
- API Reference
- Best Practices
-
FAQs
- What Do I Do If No Test Case Exists in a Test Suite?
- What Can I Do If I Do Not Have the Operation Permission?
- Why Am I See a Message Indicating that an API Automation Test Suite Is Being Executed or Queuing?
- What Do I Do If a Test Suite Does Not Exist?
- Why Can't I Download the Document in a Manual Test Case?
- What Do I Do If No Test Case Exists In a Test Plan
- Why Can't I Add Work Items of the Task Type When a Test Plan Is Created or Updated?
- What Do I Do If Test Cases Cannot Be Associated with Work Items of the Task Type?
- What Do I Do If the Test Case Completion Rate in the Test Report Is Lower Than 100%?
- Why Is the Status of Test Cases in a Test Plan Inconsistent with That in a Test Case Library?
- How Are Variables Passed Between Steps in API Automation Cases?
- How Do I Set Checkpoints for Test Procedures in API Automation Cases?
- Videos
- General Reference
Copied.
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. With this type of test cases designed according to the API design standards, user operations and input data are simulated to check whether the system can correctly process requests and return correct responses.
Test Case Library
In 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:
- Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
- On the top navigation bar, choose Testing > Testing Case. The test case library is displayed by default.
You can select a test plan from the drop-down list of the test case library to view the test case details in the test 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.
- 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 Case.
- 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 the Requirements
If a project has been associated with a requirement, you can create test cases for the requirement in the Requirements directory.
- 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 Case.
- 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 new test case, click an execution type tab and click Create Case. The new test case is associated with the requirement by default.
- Click
on the right of the requirement name to view the requirement details or create a test case associated with 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