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

Generating a Combinatorial Test Case on Mind Map

You can combine test factors to generate test cases. Data factor combinations enable full coverage of test factors for manual generation of test cases, and diversify test design functions.

Test factors refer to the factors that affect a test, such as the environment, test mode, and test difficulty. The number of test factors of a test is the number of factors that affect the test. By combining these factors, each test case can cover multiple conditions, which helps avoid missing tests.

Prerequisites

You have created a Test Point node, for example, Test the basic mobile phone functions. Note that combination can be done only on test points.

By Adding Action and Data Factors

During test design, you can add Action Factor, Data Factor, Valid Value, and Invalid Value to mind map nodes.

  1. Go to a mind map.
  2. On the top toolbar bar, click on the right of Expected Result. The Action Factor, Data Factor, Valid Value, and Invalid Value tag icons are displayed.
  3. Select the node to which you want to add action or data factors (max. 100 action factors and 100 data factors per mind map).

    Click on the toolbar above the mind map. Take the node Test the basic mobile phone functions as an example. If the test process is to use a mobile phone to perform {test action} in {connection mode} at {test time}, the data factors can be {test time}, {connection mode}, and {test action}, to cover all scenarios for manual testing.

  4. Add a valid or invalid value: Add subnodes to the data factor nodes, select the subnodes, and click the valid value tag icon or the invalid value icon on the toolbar.

    The following figure shows the valid or invalid value subnodes of the data factor nodes Test time, Connection mode, and Test action.

  5. Add an action factor: Select a subnode and click the action factor tag icon on the toolbar. For example, set Test the mobile phone to be an action factor.

  6. Right-click a test point node and choose Generate Combinatorial Case from the shortcut menu.

    The system finds the parent node of the DF nodes and displays their valid and invalid values.

  7. The Generate Combinatorial Case page is displayed. By default, the configured action and data factors are selected.
  8. Click Next.
  9. Hover over a combinatorial algorithm and click Use and Preview. The following table describes the combinatorial algorithms.

    Data Combination Coverage Type

    Description

    All Combinations (AC)

    All values of each test factor are combined. AC is the most comprehensive coverage mode.

    N-Wise

    This combination covers N inputs. When N equals the number of parameters, this mode generates AC.

    Tests prove that when N=2 (pair-wise), the generated test data provides the highest efficiency, making this one of the most widely used algorithms.

    PairWise

    Pair-wise testing is N-wise testing when N is 2.

    TripleWise

    Triple-wise testing is N-wise testing when N is 3. It generates more combinations than pair-wise testing.

    Basic Choice (BC)

    Change the value of an input to a BC combination to create a new combination.

    Each Choice (EC)

    Each test factor value appears at least once in any combination.

    To change the algorithm, click Change Algorithm and select another algorithm.

    If you go back to the mind map, modify or delete a data factor node, and click Generate Combinatorial Case again, you need to click Refresh to synchronize the modification.

  10. In the Combination Preview list, select the data combination to be created.

    Move the cursor over the first check box, select Select All Pages or Select Current Page, and click Next.

  11. On the Configure Test Case page, set the following parameters:

    • Test Case: The default case name is in the format of TP node name_${Data factor}.
    • ID: The case IDs will be generated based on the auto-increment rule you set.
    • Case Level: Select P0, P1, P2, P3, or P4.
    • Test Case Description: Enter a description. Max. 500 characters.
    • Prerequisite: Enter the prerequisites. Max. 2,000 characters.

  12. Write test steps. Use $ to reference data factors. Click Confirm.

  13. Click to view the test case list.
  14. The generated test cases are displayed by default. Choose Combination Strategies to view the history of combinatorial algorithms.
  15. Click in the Operation column of the test case to be archived, and click Archive Cases. Other operations:

    • Archive multiple test cases: Select multiple test cases and click Archive Cases.
    • Edit a test case: Click in the Operation column, and view and edit the test case.
    • Delete a test case: Click in the Operation column and click Delete.
    • Delete test cases in batches: Select multiple test cases and click Delete.
    • Search for a test case: Enter a keyword in the search box, and click .
    • Filter test cases: Click the drop-down list box under Test Cases, and select All, Unarchived, or Archived.

  16. On the Archive Case page, select the target test cases on the left. On the right area, select the version, test plan, execution mode, and feature directory, and click Confirm.
  17. In the navigation pane, choose Testing > Testing Case. Select the required version, test plan, and test type tab page, and view the archived test cases.

By Factor Library

Creating a Factor

  1. In the navigation pane, choose Testing > Testing Design.
  2. Click Test Factor Center in the upper right corner of the page.
  3. Create a directory if there is only the root directory: Click next to the root directory and click Create Directory.
  4. Enter a subdirectory name within 1 to 500 characters.
  5. Click the directory and click Create Factor.
  6. Configure the following information and click Confirm.

    Configuration Item

    Mandatory

    Description

    Factor Name

    Yes

    Max. 500 characters.

    Factor Type

    Yes

    Data Factor or Action Factor.

    Factor Description

    No

    Brief description of a factor. Max. 500 characters.

    Prerequisite

    Yes

    Prerequisites for action factors.

    Test Steps

    Yes

    Step descriptions and expected results for action factors. Max. 2,000 characters. Click + in the Operation column to add more test steps.

    Data Type

    No

    The default value is String.

    Valid Value/Invalid Value

    No

    Valid or invalid values for data factors.

    Click Add to add more valid or invalid values.

    Remarks

    No

    Max. 500 characters.

  7. The new factor is displayed in the directory. You can:

    • Copy a factor: Click in the Operation column. On the page that is displayed, modify the factor information and click Copy.
    • Edit a factor: Click in the Operation column. On the page that is displayed, modify the factor information.
    • Delete a factor: Click in the Operation column and click Delete.
    • Delete factors in batches: Select factors and click Delete on the tool bar below.
    • Export factors: Select factors, click Export on the tool bar below, and save the file to the local PC.
    • Filter factors: Click the drop-down list box on the right of Create Factor and select All Factor, My Factor, Action Factor, or Data Factor.
    • Search for a factor: Type a keyword in the search box and click the search icon.
    • Edit the factor list headers: Click in the Operation column of the factor list. In the dialog box that is displayed, select headers and adjust the display sequence on the right.
    • Import: Click Import in the upper right corner. In the displayed dialog box, click Download Template to download the template to the local PC. Edit the template file, click in the dialog box, select the file, and click OK.

Associating a Mind Map with the Factor Library

  1. In the navigation pane, choose Testing > Testing Design.
  2. Create or select a mind map.
  3. Right-click a node and choose Associate Factor Library from the shortcut menu.

    Association can be done only on test point nodes.

  4. On the Associate Factor Library page, select factors and click Confirm. The factors are displayed in the mind map.
  5. For details about how to generate a case, see 6.