Automate Test Cases
Atto processes your requirements and prompts to generate detailed test cases and create NLP-based automated steps. It also ensures that any existing scenarios are seamlessly incorporated into the output. This article discusses how to generate automated test cases and manage the updated test cases.
Prerequisites
Before you begin, ensure that you have referred to the documentation on adding the requirements.
Steps to Generate Automated Test Cases
- After adding the required requirements, enter a clear and descriptive prompt in the Prompt box to generate the test cases.

- The Read existing test case library checkbox is selected by default. Clear this checkbox if you do not want the system to consider existing test cases while generating new ones.

NOTE:
- Once the Read existing test case library option is enabled, it cannot be unselected during the same session. The selection remains applicable throughout the session. However, you can enable this option at any time during a session if it was not selected earlier.
- Click Generate with AI.

- Wait for the Generator Agent to generate multiple test cases.
- After the test cases are generated, expand a category and click on a test case.

- In the Test Case Details dialog, go to the Manual Steps tab and review the generated steps.

- Click Edit to add a step or block manually, or to modify existing steps.

- If you want to refine the steps using Atto, enter a prompt and click Refine manual steps.

- Click Generate Automated Steps to convert the manual steps into NLP-based automated steps.

- To execute the test before saving, hover over Run with Copilot and select the environment where you want to run the test steps. Copilot executes the steps automatically. Review the results to ensure everything works as expected, then click Save to Library to save the test case to your project.

- To save the test directly, click Save to Library. In the Select Location dialog box, expand the required Feature and select the Scenario where you want to save the automated test case.

Manage Updated Test Cases
When you generate automated test cases, Atto checks for existing test cases. If a test case already exists, Atto updates it instead of creating a new one.
- After the test cases are generated, expand a scenario and select a test case. Updated test cases are marked with the Update tag.

- When you open an updated test case, the Test Case Details dialog appears.
- Click See What’s New to compare the previous steps with the newly generated steps.

- Select Hide Difference to close the comparison.

- Click Generate Automated Steps.

- Once generated, when you click Save to Library, the Overwrite Test Case dialog opens.

-
In the Overwrite Test Case dialog, do one of the following:
- To replace the existing test case with the new version, select Overwrite.
- To save the test case as a new copy and keep the existing version, select Save as New.
- To review the existing test case before saving, select Link to original test case.

NOTE:
- To learn about Agentic Learning, please refer to the documentation on Generator Agent.
- To understand the difference between Run with Copilot and Agentic Learning, please refer to the documentation on Run with Copilot vs Agentic Learning.
