Design the TestsConfiguring Combinatorial Data Generation in algoQA

Configuring Combinatorial Data Generation in algoQA

The Combinatorial Data Generation capability in algoQA generates all possible combinations of input values for different parameters for a given scenario. This ensures that all possible input combinations are tested for the scenario, providing comprehensive test coverage.

Consider an example scenario to test the login functionality of a website using different username and password combinations.

User actions include:

  1. Enter a username from the list:
    • User1, User2, Guest, Admin.
  2. Enter a password from the list:
    • Pass123, Pass245, Guest@123, Admin@123.
  3. Click the Login button.

Possible combinations of test cases:
The combinatorial data set will consist of all possible pairs of usernames and passwords.

In the preceding example, you have 4 parameters for username and 4 parameters for password. algoQA will generate 16 combinations (4 usernames × 4 passwords = 16 test cases).

Configuring Combinatorial Data Generation in algoQA

Perform the following:

  1. Log into algoQA using your credentials.

  2. Refer Creating a Project article to create a project.

  3. After creating a project, you must configure the node.

    Perform the following:

    1. Click the Add Node ‘+’ button to add a node in Canvas and enter the name in the Node by clicking the edit icon in node.
    2. Click on the node to view the configuration, then configure the feature and UI elements for a specific node.
      NodeFeatureUI Elements
      Login ScreenLoginusername with parameters as User1| User2|Guest| Admin
      Login ScreenLoginpassword with parameters as Pass123, Pass245, Guest@123, Admin@123
      Login ScreenLoginlogin button
      In Test Design, configure the feature and UI elements for a specific node.
    3. After configuring all the UI elements, you must set the data generation to N for only required UI elements (username and password) by clicking the Business Rules button and click Save.
  4. Check that all options in the Data Generation settings are selected. To find this, Navigate to Settings > Data Generation Settings. By default, Correct Values is selected. Enable the rest of the options and click Update.

  5. After Node configuration, you must record a scenario using Record Scenario feature. For more information on recording a scenario, see Record Scenario article.

  6. Upon recording the scenarios, you have to generate test cases.

  7. To generate test cases, click the Generate button in Test Design after checking the scenario list.

  8. Test Cases are generated successfully pop-up appears. Click View Test Cases to view test cases.

  9. The algoQA platform generates a Feature File with combinatorial data sets.

    Generated Feature file code showing Login scenario outline with Examples table of username and password data

Configuring User-Specific Combinatorial Data Generation Using Node Configuration

Perform the following:

Similarly, you can configure the user-specific parameters in Edit Step Feature.

Navigate to the Test Design> Scenario List and click the edit icon beside a scenario to view Scenario Steps List.

In the Scenario Steps List, click the edit icon of the required test step to view the details.

Click More Options.

Add the required parameters for both username and password test steps in the Custom Value textbox.

Edit Step panel with Custom Value User1, User2, Guest, Admin and Save button

Click Save.

After making changes in the Edit Steps, you must regenerate the Test Cases by navigating back to Test Design > Scenario List and click the Generate TestCase button.

A pop-up appears saying that test cases were generated successfully.

The 'Test Cases are generated successfully' pop-up appears.

Click View Test Cases to view test cases.

The algoQA platform generates a Feature File with combinatorial data sets.