# US 2024/0184692 A1 · Software testing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0184692 A1
- Document ID: US20240184692A1
- Status: Published application
- Kind: A1
- Application number: 18/287,599
- Filed: 2022-04-20
- Published: 2024-06-06
- Earliest claimed: 2021-04-22
- Assignees: Functionize, Inc.
- Applicants: Functionize, Inc.
- Inventors: Jonathon R. Seaton; Tamas Cser
- Web page: https://patentgrep.com/patent/US20240184692A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3692: {for test results analysis}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Provided herein is technology relating to testing software and particularly, but not exclusively, to systems and methods for visually validating a step in a software test case and using the visual validation to reinforce an element selection model, the technology provides methods for visually validating a step in a software test case. More particularly, embodiments of the technology provide a method of mapping web elements of a website or app to a visual screenshot of that website or app by combining data from the document object model (DOM) and page screenshot.

## Claims

### Claim 1

A method for visually validating a software test case, said method comprising:
obtaining document object model (DOM) information;
obtaining a first screenshot of a web page;
executing a step of a test script of user actions acting on said web page;
obtaining a second screenshot of said web page;
comparing the first screenshot and the second screenshot to identify a visual screenshot variation; and
identifying a web page element using the screenshot variation and the DOM information.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
displaying the first screenshot or second screenshot to a user;
overlaying a box on the first screenshot or second screenshot outlining a segment of the first screenshot or second screenshot comprising an image of the web page element; and
receiving user input indicating that the box correctly or incorrectly identifies the web page element.

### Claim 3 (depends on 2)

The method of claim 2 further comprising training a model and/or a neural network using said user input.

### Claim 4 (depends on 1)

The method of claim 1 further comprising providing said test script by recording user actions.

### Claim 5 (depends on 1)

The method of claim 1 wherein executing a step of a test script of user actions occurs on a local computer.

### Claim 6 (depends on 1)

The method of claim 1 wherein executing a step of a test script of user actions occurs on a cloud computing component.

### Claim 7 (depends on 1)

The method of claim 1 wherein executing a step of a test script of user actions comprises performing element selection for the step of the test script.

### Claim 8 (depends on 1)

The method of claim 1 further comprising segmenting the first screenshot or second screenshot using the visual screenshot variation and DOM information to provide a segment of the first screenshot or second screenshot comprising an image of the web page element.

### Claim 9 (depends on 1)

The method of claim 1 further comprising correlating a web page element and a screenshot variation and/or correlating a DOM element and a screenshot variation.

### Claim 10 (depends on 9)

The method of claim 9 further comprising displaying a correlation result describing the web page element and an image of the correlated web page element and/or describing the web page element and the correlated DOM element.

### Claim 11 (depends on 1)

The method of claim 1, further comprising displaying on a graphical user interface said web page and/or a screenshot of said web page and displaying the results of each step of a test script of user actions.

### Claim 12 (depends on 1)

The method of claim 1, further comprising receiving user inputs to pause said test script, move forward through the steps of said test script, and/or move forward through the steps of said test script.

### Claim 13 (depends on 1)

A system comprising a processor configured to perform the method of claim 1.

### Claim 14 (depends on 13)

The system of claim 13 further comprising a display and user input device.

### Claim 15 (depends on 13)

The system of claim 13 further comprising software code describing said web page.

### Claim 16 (depends on 13)

The system of claim 13 further comprising software code describing said test script.
