Auto Test Case Generation

Modified on Thu, 21 Mar 2024 at 10:27 AM

 





 Auto Test Case Generation Feature 
With the Auto-Generate Test Cases option available under the ‘Generate Test Case’ feature, you can now generate test cases leveraging machine learning (ML) technology. This feature suggests test cases based on minimal user input and producing Feature Files without requiring test design by algoQA. This feature integrates with component-based design.


Here's how it works
Auto test case generation works by allowing you to specify the features that you want to include in a test case, instead of using a "FollowMe" approach. The system then automatically generates test cases based on user input.



 

Key capabilities:


User Input: You can provide the features that you want to be covered in a test case, and the system will automatically generate the test case(s).
Auto Generate Test Case: The system utilizes advanced algorithms and methodologies to generate test cases that cover various scenarios within the software or application under test.
Review and Edit: Once the test cases are generated, the user has the opportunity to review them. If necessary, they can make any required edits to the generated test cases to fine-tune the testing process according to their specific requirements and domain knowledge.
Learning and Improvement: The system learns from your edits provided during the review process. This learning is then intelligently applied in the subsequent test case generation, leading to improved accuracy and efficiency in generating future test cases.
Leveraging Previous Test Cases: If you have previously recorded test cases using the "FollowMe" approach, the system intelligently leverages this information during test case generation. It incorporates the knowledge gained from the recorded test cases to enhance the quality of newly generated test cases.



How to Use Auto Test Case Generation Feature

Perform the following:

  1. Navigate to the Main Canvas > select Down arrow associated to More Option > Auto Generate Test Cases.
  2. Auto Generate Test Cases pop-up window appears. Select the appropriate scenario(s) by clicking Add  Scenario button and click Submit to generate test cases. Upon generating the test cases successfully, a confirmation message will be displayed.


Duplicate Scenario Notification

When using the Auto Test Case Generation feature to generate test cases, if you select the same scenarios while adding them in the Auto Generate Test Cases window, a pop-up message will notify you of any duplicate scenario detected as shown:



How to View the Test Steps

Navigate to the Test Cases folder and you can view the test steps in the Feature File generated.



Managing Workflows

To manage workflows, you can edit scenarios by modifying the test steps and actions.

Perform the following: 

  1. Navigate to the Main Canvas > select down arrow icon corresponding to More to access Edit Scenario.

  2. The Edit Scenario Form window appears, allowing you to edit your test steps and actions. These modifications will be used to train the machine learning (ML) model in the background. It will also help when you generate additional test cases re-using these Features and UI elements.

    This feature is effective when managing a certain number of test cases. For example, if you choose to automate 10-15 test cases and then want to add additional test cases to it, there won't be many changes required in the Edit Scenario.
    However, if you are using auto test generation feature for the first time, you have to add or modify scenarios. This initial setup requires more changes to define and refine your scenarios.

    Note: Make sure to modify Scenario name and outline with appropriate name and description.


    When a new feature is added to an application with a large number of UI elements and has not been used before. When such a feature is not sequenced properly, the platform will automatically generate all the test steps needed to test this feature in the Edit Scenario Form.


    When the same UI elements (such as a button, dropdown, or textbox) associated with a feature is used in different scenarios involving the same feature, the platform learns from the first use and ensures that subsequent uses of the same feature along with associated UI elements are accurately tested.




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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article