Test Cases Design
The partner's test engineers design test cases.

Security scanning cases can use third-party tools or the security scanning function provided by InnoStage Workbench.
The security automation function of InnoStage Workbench(includes web automated scanning and binary automated scanning) depends on the capabilities of the VSS cloud service on the China website. Therefore, the security scanning data is sent to the China website. We will perform the following operations to ensure your data security:
1. Encrypt your data during transmission.
2. Encrypt your sensitive data during scanning.
3. Destroy your data periodically after the scan is complete.
You can also use a third-party test tool. we provides the third-party test tool guide is provided later.
Reuse Verified Solution-No
After the test requirement is submitted, the system automatically generates security test cases and performance test cases based on the test case template, and generates function test cases and integration test cases based on the function list and architecture.
- Design Function Cases.
The function test cases generated by the system contain only the name of the test case. You need to add other contents.
- Method 1,Editing Test Cases:If there are few function cases, you can manually edit the cases.
- Click the editing button of the function case to enter the editing page.
Figure 1 Test Case Management
- Enter the case description(Optional), prerequisites(Optional), step description, and expected result, and you can click Add to add a step.Click OK.
Figure 2 Editing Test Case
- Click the editing button of the function case to enter the editing page.
- Method 2,Importing Test Cases in Batches:If there are a large number of function test cases, you can import test cases in batches to edit them in batches.
- Select function cases, click [Export], Export the generated test case information..
Figure 3 Export Test Case
- Enter the step description and expected result in the exported file.
Figure 4 Enter Exported File
- On the Case Management page, click [Import] and [select file] to import the case in batches.The system updates test case steps in batches.
Figure 5 Import Case
- Select function cases, click [Export], Export the generated test case information..
- Method 1,Editing Test Cases:If there are few function cases, you can manually edit the cases.
- Design security cases.
security test cases that are automatically loaded:16 manual interview cases, 1 manual antivirus scanning case, and 1automatic binary scanning case.
- If you use third-party tool to scan binary viruses ,retain the manual scanning case and delete the binary scanning cases in security automation.
Figure 6 Case Management
- If you use the security scanning function provided by InnoStage Workbench to scan the binary viruses (vulnerabilities and viruses can be scanned at a time), retain the binary scanning case in security automation and delete the manual scanning case.
Figure 7 Case Management
- If you use third-party tool to scan binary viruses ,retain the manual scanning case and delete the binary scanning cases in security automation.
- Design reliability test cases.(Optional)
Reliability test cases are used to determine whether to perform reliability tests based on your service requirements.
- If you don't do reliability test.
- Go to the requirement management page and click [Edit].
Figure 8 Edit Requirement
- In the Test Requirements step, click [Delete] of the reliability test requirement, delete the requirement, and click [Submit].
Figure 9 Delete Requirement
- If the [Edit] button for a test requirement is unavailable, check whether the requirement is being reviewed and whether the applicant clicks Edit.
- After the editing requirement is submitted, the requirement needs to be reviewed again.
- Go to the requirement management page and click [Edit].
- If you do reliability test.
- Method 1,manually create Test Cases:If you do not have many reliability test cases, you can manually create test cases.
- Select a reliability requirement and click Create.
Figure 10 Create Test Cases
- On the Create Case page, set Case Name, Deployment Environment, Priority, Description(Optional), Prerequisites(Optional), Step Description, and Expected Result.Click [Add] to add a test step.
Figure 11 Create Test Cases
- Select a reliability requirement and click Create.
- Method 2,Importing Test Cases in Batches:A large number of reliability test cases can be imported in batches.
- Click Import. In the dialog box that is displayed, click Download Case Template.
Figure 12 Import Test Cases
- In the case template file, fill in the case information according to the example content.
Figure 13 Edit Case Template
- Click [Import]. In the dialog box that is displayed, click [Select File] to import the cases in the case template. .
Figure 14 Import Reliability Test Cases
- Click Import. In the dialog box that is displayed, click Download Case Template.
- Method 1,manually create Test Cases:If you do not have many reliability test cases, you can manually create test cases.
- If you don't do reliability test.
- Design Integration Cases.
The system has automatically generated integration cases. You need to edit the case and replace "xx" in the case with the actual service information.
- Select the integration test requirement and click the [Edit] button of the integration test cases.
Figure 15 Test Case Management
- Replace "xx" in the case with the actual service information.
Figure 16 Edit Test Case
- Select the integration test requirement and click the [Edit] button of the integration test cases.
- Design Performance Cases(Optional)
Performance test cases are used to determine whether to perform performance tests based on your service requirements.
- If you don't do performance test.
- Go to the requirement management page and click [Edit].
Figure 17 Edit Requirement
- In the Test Requirements step, click [Delete] of the performance test requirement, delete the requirement, and click [Submit].
Figure 18 Delete Requirement
- If the Edit button for a test requirement is unavailable, check whether the requirement is being reviewed and whether the applicant clicks Edit.
- After the editing requirement is submitted, the requirement needs to be reviewed again.
- Go to the requirement management page and click [Edit].
- If you do performance test.
1 performance case is loaded from the case template when requirement is created.You can create more performance automation cases based on actual requirements.
1. Choose [Performance Automation]->Click [Edit] on the right of the performance automation case.
Figure 19 Test case management2. Go to the test case information page. Generally, you only need to modify the following basic information and retain the default values for other information:
- Case name: the default value is xx function point pressure test, as shown in the following figure. You need to change the placeholder xx to the name of the interface to be tested.
- Description: as shown in the following figure, the default value is "xx users concurrently perform xx functions for 5 minutes". You need to change the first placeholder xx to the number of concurrent interface pressure tests. Change the second placeholder xx to the name of the interface to be tested.
Figure 20 Editing test casesYou need to select a concurrency value that matches the cloud service specifications based on the specifications of the cloud service resources purchased in this test.
3. After the basic information is edited, continue to edit the test procedure. You only need to edit the test procedure of the CPTS test case. Retain the default settings of the manual test procedure. Click the case name in blue under CPTS Case.
Figure 21 Editing test cases4. Go to the CPTS script configuration page, click case [Step] on the right of the page, and configure the test procedure..
- Packet: data sent between applications. For details, see the operation guide.
- Think Time: specifies the waiting time between operations. This parameter is not required in authentication tests. For details, see the operation guide.
- Response extraction: The output of the previous packet is extracted as the input of the next packet. For details, see the operation guide.
- Checkpoint: Checkpoints are used to check whether the content returned by the server is correct based on customized verification information. For details, see the operation guide.
Figure 22 Case script
5. Configure the Pressure Configuration.
Configure the duration of the script based on the requirements in the requirement description
- Pressure test for basic function points:5 to 10 minutes
- Pressure test in hybrid scenarios:0.5 to 2 hours
- Comprehensive service fatigue test:4 to 6 hours
after the configuration is complete,click [Save].For details, see the operation guideFigure 23 Test Case ManagementFigure 24 Pressure Configuration6. After the configuration is complete, you can click [Debug] to quickly detect syntax or configuration errors and ensure that the model is available in the task.
Prerequisites
- The resource group is in the running state.
- Ports 32001 and 32003 on the debugging node of the resource group are enabled in the security group.
- The execution node of the resource group and applications under the pressure test are connected through the network.
Debugging a Test Case
After you create or edit a test case, you can debug it to detect syntax or configuration errors before testing.
- Click [Debug] in the upper right corner of the page.
- Select the target test resource group as the executor and click [Start].
- Click [View log] to view the test case debugging details.
If an error was reported in the debugging result, edit the case based on the log information and debug it again.
- On the Debug log tab page, you can view the debugging history.
7. After the CPTS test case script is configured, return to the test case page and click [OK] in the lower right corner.
Figure 25 Editing Test Cases- If you need to add performance automation test cases, click the [Performance Automation] Test Case tab and click [Create],and design test cases by referring to If you do performance te....
Figure 26
- If you use a third-party pressure test tool, delete automatic performance test cases and create manual performance test cases. If you have any questions, contact Huawei test engineers.
- If you don't do performance test.
Reuse Verified Solution-Yes
When Reuse Verified Solution, the test case management page automatically loads the function cases and integration cases to be retested,edit function cases and integration cases by referring toDesign Function Cases.andDesign Integration Cases....
If no function or cloud service needs to be retested, the case management is empty.

If you need to add case, select a case type and click Create. For details about the case, seeTest Cases Design


If the function list is changed compared with the reused solution, function cases are loaded, you need to perform a virus scanning test again. For details, contact Huawei test engineers.
wujunchuan:wujunchuan@huawei-partners.com
caofeng:caofeng24@h-partners.com
After all test cases are designed, click Submit Case Design . After the design is submitted, a to-do task is generated for the test case reviewer.If you do not select any test case, all test cases are submitted.

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