Creating a Mind Map and Generating a Test Case
Mind maps, also called brain maps, are used to plan test schemes, design test scenarios, define test points, orchestrate test steps, and generate test cases. You can use the mind map function on the test design page.
Prerequisites
You have the permission to create mind maps (that is, you have roles except the viewer, participant, and O&M manager in the project). For details, see Adding Members and Assigning Roles.
Creating a Mind Map
Direct Creation
- Search for your target project and click the name to access the project.
- In the navigation pane, choose .
- Click Create in the upper left corner of the page.
The new mind map page is displayed. The root node is displayed in the middle of the page, and the name of the root node is automatically set to Mind Map. You can double-click the root node to change its name.
- Click in the upper left corner of the page. The test design list is displayed. The name of the root node of the mind map is displayed in the list.
Creating by Using a Template
- 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 .
- Click next to Create and choose Templates.
- Select a required template. Click Preview to view the mind map details. Click Use to access the mind map.
- View the displayed mind map page and details about the selected template.
- Click in the upper left corner of the page. The mind map list is displayed.
The root node name of the mind map is displayed in the list. You can view the created mind map.
- To open multiple mind maps on multiple tab pages, click in the Operation column and choose the option for opening mind maps in new tabs.
Renaming a Mind Map
- In the mind map list, click in the Operation column and choose Rename.
- The name of the mind map is displayed in the dialog box. Enter a new name. The length cannot exceed 500 characters.
- Click OK. The mind map is renamed.
Drawing a Mind Map
On the
page, click the name of a mind map to be edited to draw the mind map.Adding a Node
- Add a subnode.
Access a mind map, select a node, and add a subnode in either of the following ways:
- Right-click and choose Add Subnode (Ins) from the shortcut menu.
- Press Insert or Tab.
- Add a sibling node.
Access a mind map, select any node except the root node, and add a sibling node in either of the following ways:
- Right-click and choose Add Sibling Node (Enter) from the shortcut menu.
- Press Enter.
Deleting a Node
You can delete any node except the root node in the mind map. If the deleted node contains subnodes, the subnodes are also deleted.
Access a mind map, select any node except the root node, and delete the node in one of the following ways:
- Right-click and choose Delete Node (Del) from the shortcut menu.
- Click in the upper right corner of the page and select Delete Current Node.
- Press Delete.
Moving a Node
- Move a node up or down.
Access a mind map, select the node to be moved, and click or on the toolbar above the mind map to move the node up or down among nodes of the same level.
- Drag a node.
Access a mind map, select the node to be moved, hold down the left mouse button, drag the node to the required position, and release the mouse.
Designing a Scenario
On a mind map, you can design scenarios for a requirement.
- Go to a mind map.
- Add a subnode to the root node. (You can set any node as a scenario.)
- Enter a scenario description. For example, Membership registration.
- Select the node created in 2 and click on the toolbar above the mind map.
If is displayed on the selected node, the scenario is added successfully.
Designing a Test Point
On a mind map, you can design test points for a requirement.
- Go to a mind map.
- Add a subnode to the root node. (You can set any node as a test point.)
- Enter a subnode name. For example, Membership registration.
The test point name can contain only 1 to 128 characters and allows letters, digits, and special characters (-_/|*&`'^~;:(){}=+,×...—!@#$%.[]<>?–").
- Select the node created in 2 and click on the toolbar above the mind map.
If is displayed on the selected node, the test point is added successfully.
Designing a Test Case
After a test point designed, you can design test cases for it.
A test case consists of prerequisites, steps, and expected results. Set the three parts during test case design.
- Go to a mind map.
- Under the Membership registration node, create subnodes and enter the descriptions of prerequisites, steps, and expected results.
- Select a node to which you have entered a prerequisite, and click on the toolbar above the mind map.
If is displayed on the node, it is set as a prerequisite node.
- Select a node to which you have entered a step, and click on the toolbar above the mind map.
If is displayed on the node, it is set as a step node.
- Select a node to which you have entered an expected result, and click on the toolbar above the mind map.
If is displayed on the node, it is set as an expected result node.
Adding a Tag
During test design, you can add tags to nodes as auxiliary information.
- Access a mind map, right-click a node, and choose Add Tag.
- Enter the tag content in the text box under the node as required and click any position on the screen to save.
- After the settings are saved, a tag with a yellow background is displayed under the node.
Adding Remarks
During test design, you can add remarks to nodes as auxiliary information.
- Access a mind map, select a node, and click Remarks in the upper part of the page.
- Enter remarks in the window that is displayed on the right of the page and click anywhere on the screen to save.
- If is displayed on the node, the remarks are successfully added to the node.
Performing Online Review
You can review and comment on mind map nodes.
- Access the mind map to be reviewed, right-click a test case node, and choose Add Review.
- In the dialog box that is displayed, select a type, enter comments, and click Add Review. The review record is added.
- View the review record in the historical review comments.
- To edit the comment, click on its right.
To close a confirmed review, toggle off the switch on its right.
Generating Test Cases
After test cases are designed, you can use the mind map to generate real test cases.
Generating a Single Test Case
- In the mind map, right-click the test point (TP) node for which a test case is to be generated and choose Generate Case.
- If is displayed on the node, the operation is successful. In this case, a draft case is generated.
Click . The case details are displayed on the right of the page.
- When a test case is generated from a TP node, only the first-layer step (ST) subnodes are read, from top to bottom.
- There will be no expected result (EX) displayed if not set for an ST node.
- If multiple expected results are set for one ST node, only the first result is read.
Generating Cases in Batches
If multiple test points are set in a scenario, draft cases can be generated in batches based on the scenario.
- In the mind map, select a scenario node that contains multiple test points.
- Right-click the node and choose Generate Case from the shortcut menu.
If is displayed on all test point nodes in this scenario, the operation is successful, and draft test cases are generated.
Archiving Cases
After draft test cases are generated, you can archive them and find them on the test case page.
- In the mind map, right-click a node for which test cases have been generated and choose Archive Case from the shortcut menu. The Archive Case window is displayed.
- Select the test cases to be archived on the left. On the right of the page, set the version, test case library/test plan where the cases are to be stored, and execution type, select a feature, and click Confirm.
- If is displayed on the node, the operation is successful. You can find the test cases on the Testing Case page.
Click . The test case details page is displayed.
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