Configuring Combinatorial Data Generation in algoQA

Modified on Mon, 6 Jan at 10:18 AM

TABLE OF CONTENTS

1. Overview

2. Configuring Combinatorial Data Generation in algoQA

2.1. Configuring User-specific Combinatorial Data Generation using Follow Me Feature

2.2. Configuring User-specific Combinatorial Data Generation using Edit Scenario Feature 

1. Overview

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

2. Configuring Combinatorial Data Generation in algoQA

Perform the following: 

  1. Log into algoQA using your credentials.
  2. Navigate to the Main Canvas and click Project button in the title bar of Project Explorer pane.
  3. In the Create Project page, enter the project name, select the automation type and click Create Project button to create a project.
  4. After creating a project, you must configure the node.
    Perform the following: 
    1. Drag and drop the node to the Main Canvas and enter the name in the Node Name textbox.
    2. Click the edit icon to configure corresponding feature and UI elements, as shown in the following table:

      Node Feature UI Elements
      Login ScreenLogin username with parameters as

      User1| User2|Guest| Admin

      password  with parameters as Pass123, Pass245, Guest@123, Admin@123 
      login button

      In algoQA, configured feature and UI elements for a specific node will be displayed as follows:
    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 on Business Rules button and click Save, as shown.
       
  5. Check that all options in the Data Generation section are selected.

    To find this section, look for an arrow at the end of the Main Canvas screen and click it to open to view the Data Generation options, as shown. By default, Correct Values is selected.

  6. After Node configuration, you must record a scenario using Follow Me feature. For more information on recording a scenario, see Follow Me article.
  7. Upon recording the scenarios, you have to generate test cases. 
  8. To generate test cases, click the Generate button in the Main Canvas. 
  9. Test Cases are generated successfully. Click the OK button.
  10. Navigate to the Project folder, expand the test cases folder to view the test cases inside the feature files.
  11. The algoQA platform generates a Feature File with combinatorial data sets, as shown in the following example table:


2.1. Configuring User-specific Combinatorial Data Generation using Follow Me Feature

Perform the following:  

  1. Repeat the steps from step1 to step 5 from the previous section except that you can configure the parameters while recording a scenario using the Follow Me feature.
  2. In the Main Canvas, click the FollowMe button to view the pop-up window. In this window, enter the scenario name and outline and click Create.
  3. Select the appropriate feature and configure the parameters for the associated UI elements as shown. To do this, select the UI element to highlight it with distinct color and then click the Edit icon corresponding to that element to view the secondary screen. In the secondary screen, add the parameters in the Custom Value text box for both username and password UI elements, click Save and then click OK. 
  4. Upon recording the scenarios, you must regenerate the Test Cases by navigating back to the Main Canvas and clicking the Generate button.
  5. Test Cases are generated successfully and click OK button.
  6. Repeat the steps 10 and 11 to view the Feature File generated.

2.2. Configuring User-specific Combinatorial Data Generation using Edit Scenario Feature

Perform the following:  

  1. Similarly, you can configure the user-specific parameters in Edit Scenario Feature.
  2. Navigate to the Main Canvas > More > Edit Scenario.
  3. In the Edit Scenario window, select the required test case.
  4. Click the Edit icon.
  5. In the scenario Sequence section, select the edit icon of the required test step to view the details.
  6. Click Show More link.
  7. Add the required parameters for both username and password test steps in the Custom Value textbox:
  8. Click Save.
  9. After making changes in the Edit Scenario, you must regenerate the Test Cases by navigating back to the Main Canvas and clicking the Generate button. 
  10. Test Cases are generated successfully and click OK button.
  11. Repeat the steps 10 and 11 to view the Feature File generated.





 







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article