Generate Test Scripts from Images Using algoQA
Users can upload screenshots of the application pages either while creating the project or after the project has been created.
Using the uploaded screenshots, an offline model can be created. The offline model consists of nodes, features, and controls associated with the specific page under testing.
Create an Offline Model Using an Image
Follow the steps below to create an offline model and generate test scripts from images.
Create a New Project
- Start by creating a new project.
- Enter the Project Name.
- Select the Automation Type.
- Browse and attach the image in the Upload Application Screenshots/Scraper Output
File.
You can upload multiple screenshots at a time.
- Click Create.

Once the project is created, a node configuration will be generated.

Upload Additional Images
You can upload additional images or replace existing images if required.
- Navigate to the canvas.
- Click the More dropdown.
- Select Upload Application Screenshot.
- Upload the additional image.
Select Replace Existing Configuration check box to replace existing configuration.

A new configuration will be added for the uploaded image.

Offline Model Creation
After uploading the required images, the offline model will be ready for use.
Navigate to Test Design
- Go to the Test Design section.
- Select the required node.
Values will also be added for the controls, where applicable.
- Click on Prompting.

Enter Prompt
Enter the prompt based on the uploaded image and the required test scenario.

Generate Scenarios
- Click on Generate Test Cases.
- The scenarios will be generated.
Review Generated Scenarios
- Click on Redirect to review the generated scenarios.

Generated scenarios with redirect option to view and review scenario details - Verify and make changes if required.

Generate Test Cases and Test Scripts
After reviewing the scenarios, click on Generate Test Cases to generate test cases.

The test cases will be generated.

To know more on generating test cases and test scripts, refer Generate Test Cases and Test Scripts.
Limitations
- User will not receive the XPath directly — it must be added manually.
- To reduce noise, not all label elements are being captured.