このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。
- 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.
Creating a Manual Test Case
Manual test cases are used to manage test scenarios and steps. You can view manual test cases on the Testing Case > Manual Test page. To create test cases in a project, you must have the system roles except the O&M manager, viewer, and participant in the project.
Creating a Manual Test Case
- 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.
- Baseline and Test case library are displayed by default. On the Manual Test tab page, click Create Case on the left.
- Enter the name, description, prerequisites, and test steps as required, and click Save.
The following table describes the main configuration items of manual test cases.
Configuration Item
Description
Name
(Mandatory) Enter 1 to 128 characters. Describe the test scenario or function.
Description
Brief description of a test case. Enter the test scope, test objectives, test policy, test methods, test tools, test data, test metrics, and test environments of the current test case.
Prerequisites
Prerequisites for executing the current test case.
Test Steps
Step description and expected result.
Tag
Tag for the current test case as required. Each test case can be associated with a maximum of 10 tags, which should be separated by spaces.
ID
Test case ID, which can be customized. If this item is left blank, a test case ID is automatically generated.
Case Level
Test case level based on the importance of the scenario or function. The default level is L2.
- L0: verification of underlying functions. Each module should have 10 to 20 test cases. L0 test cases account for 5% of all test cases.
- L1: verification of basic functions for inherited features or before sprint acceptance. L1 test cases account for 20% of all test cases.
- L2: verification of important features for manual tests in non-regression versions. L2 test cases account for 60% of all test cases.
- L3: verification of minor and non-important functions, and exception tests on basic and important functions. L3 test cases account for 15% to 20% of all test cases.
- L4: verification of special input, scenarios, and threshold conditions. L4 test cases account for less than 5% of all cases.
Module
Module of the current test case. The module list comes from the project settings. For details, see Adding Work Item Modules.
Version
Version number of the current test case.
Sprint
Sprint to test the current test case.
Processor
Person who needs to complete the test task.
Associated Requirement
It is recommended that test cases be bidirectionally associated with test requirements. If the current test case is used to test a specific requirement and the requirement has been recorded in the CodeArts Req service, click Associate to associate the test case with the requirement work item.
Folder
Associated feature directory. The test case is in the Other directory by default.
Attachment
Attachment related to the current test case. You can associate an existing file from the Files page or upload an attachment from the local PC.
Custom Field
Customized fields set in the Settings page. For details, see Test Case Fields.
Editing Test Case Details
Take a Scrum project as an example. Related requirements have been recorded in the project management module for the current sprint.
Before testing, the tester creates a manual test case for the corresponding function in the test case library based on front-end requirements, and associates them.
- After the operations described in Creating a Manual Test Case are complete, choose Testing Design > Manual Test, click the name of the test case to be edited, and click the Details tab.
- Edit the test details as required.
- In the table under Test Steps, click the blank area in the Test Steps Description and Expected Result columns and enter information. Click
in the Operation column to add a step and enter the step description and expected result.
- Click Associate on the right of the page. In the dialog box that is displayed, select the requirement to be associated and click OK.
- In the table under Test Steps, click the blank area in the Test Steps Description and Expected Result columns and enter information. Click
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