TABLE OF CONTENTS
2. Configuring Combinatorial Data Generation in algoQA
2.1. 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:
- Enter a username from the list:
- User1, User2, Guest, Admin.
- Enter a password from the list:
- Pass123, Pass245, Guest@123, Admin@123.
- 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:
- Log into algoQA using your credentials.
- Navigate to the Projects and click on '+' icon to create a project.
- In the Create Project page, enter the project name, select the automation type and click Create button to create a project.
- After creating a project, you must configure the node.
Perform the following:- Click '+' icon to add a node in Canvas and enter the name in the Node by clicking on edit icon in node.
- Click on the node to configure corresponding feature and UI elements, as shown in the following table:
Node Feature UI Elements Login Screen Login username with parameters as User1| User2|Guest| Admin
password with parameters as Pass123, Pass245, Guest@123, Admin@123 login button
In Test Design, configure the feature and UI elements for a specific node. - 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.
- Check that all options in the Data Generation settings are selected.
To find this, Navigate to settings>Date generation settings. By default, Correct Values is selected enable rest of the options and click on update.
- After Node configuration, you must record a scenario using Record Scenario feature. For more information on recording a scenario, see Record Scenario article.
- Upon recording the scenarios, you have to generate test cases.
- To generate test cases, click the Generate Test case button in Test Design after checking the scenario list.
- Test Cases are generated successfully pop-up appears. Click on View Test Cases to view test cases.
- The algoQA platform generates a Feature File with combinatorial data sets.
2.1. Configuring User-specific Combinatorial Data Generation using Edit Step Feature
Perform the following:
- Similarly, you can configure the user-specific parameters in Edit Step Feature.
- Navigate to the Test Design> Scenario List and click on edit icon besides 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 on More Options.
- Add the required parameters for both username and password test steps in the Custom Value textbox.
- 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 on Generate TestCase button.
- A Pop-up appears saying Test Cases are generated successfully.
- Test Cases are generated successfully pop-up appears. Click on View Test Cases to view test cases.
- The algoQA platform generates a Feature File with combinatorial data sets.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article