Updated on 2024-10-11 GMT+08:00

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

  1. Search for your target project and click the name to access the project.
  2. In the navigation pane, choose Testing > Testing Design.
  3. 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.

  4. 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

  1. Log in to the CodeArts homepage, search for your target project, and click the project name to access the project.
  2. In the navigation pane, choose Testing > Testing Design.
  3. Click next to Create and choose Templates.
  4. Select a required template. Click Preview to view the mind map details. Click Use to access the mind map.
  5. View the displayed mind map page and details about the selected template.
  6. 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.

  7. 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

  1. In the mind map list, click in the Operation column and choose Rename.
  2. The name of the mind map is displayed in the dialog box. Enter a new name. The length cannot exceed 500 characters.
  3. Click OK. The mind map is renamed.

Drawing a Mind Map

On the Testing Design page, click the name of a mind map to be edited to draw the mind map.

Adding a Node

You can add new sibling nodes and subnodes. Select any node in the mind map and select the type of the new node as required. Only subnodes can be added to the root node. Sibling nodes and subnodes can be added to other nodes.
  • 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.

  1. Go to a mind map.
  2. Add a subnode to the root node. (You can set any node as a scenario.)
  3. Enter a scenario description. For example, Membership registration.
  4. 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.

  1. Go to a mind map.
  2. Add a subnode to the root node. (You can set any node as a test point.)
  3. 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 (-_/|*&`'^~;:(){}=+,×...—!@#$%.[]<>?–").

  4. 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.

  1. Go to a mind map.
  2. Under the Membership registration node, create subnodes and enter the descriptions of prerequisites, steps, and expected results.
  3. 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.

  4. 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.

  5. 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.

  1. Access a mind map, right-click a node, and choose Add Tag.
  2. Enter the tag content in the text box under the node as required and click any position on the screen to save.
  3. 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.

  1. Access a mind map, select a node, and click Remarks in the upper part of the page.

  2. Enter remarks in the window that is displayed on the right of the page and click anywhere on the screen to save.
  3. 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.

  1. Access the mind map to be reviewed, right-click a test case node, and choose Add Review.
  2. In the dialog box that is displayed, select a type, enter comments, and click Add Review. The review record is added.
  3. View the review record in the historical review comments.

  4. 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

  1. In the mind map, right-click the test point (TP) node for which a test case is to be generated and choose Generate Case.
  2. 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.

    1. When a test case is generated from a TP node, only the first-layer step (ST) subnodes are read, from top to bottom.
    2. There will be no expected result (EX) displayed if not set for an ST node.
    3. 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.

  1. In the mind map, select a scenario node that contains multiple test points.
  2. 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.

  1. 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.
  2. 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.

  3. 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.