# US 2025/0094320 A1 · Test generation for robotic process automation robots that interact with user interfaces

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

- Number: US 2025/0094320 A1
- Document ID: US20250094320A1
- Status: Published application
- Kind: A1
- Application number: 18/506,232
- Filed: 2023-11-10
- Published: 2025-03-20
- Earliest claimed: 2023-09-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: IAN PARTRIDGE; Christopher Neil Bailey; Sandra Hayward; Matthew Paul Wilson; David Richard Jones
- Web page: https://patentgrep.com/patent/US20250094320A1

## CPC

- G06F 11/3676: {for coverage analysis}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer program product, and computer system for testing of robotic process automation robots that interact with user interfaces. The method includes obtaining analysis of commands in a robotic process automation script to determine interaction of the commands with one or more user interface applications. The method includes extracting a list of commands that interact with user interface controls and grouping the commands by user interface application. The method then generates a set of tests for each user interface application, with the set of tests including the commands for user interface control interactions and assertions of a state of each user interface control interacted with. The method provides a set of tests for a robot for each user interface application.

## Claims

### Claim 1

A computer-implemented method for test generation for robotic process automation robots that interact with user interfaces, said method comprising:
obtaining analysis of commands in a robotic process automation script to determine interaction of the commands with one or more user interface applications;
extracting a list of commands that interact with user interface controls and grouping the commands by user interface application;
generating a set of tests for each user interface application, with the set of tests including the commands for user interface control interactions and assertions of a state of each user interface control interacted with; and
providing a set of tests for a user interface application.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating a set of tests for each user interface application includes keeping the commands in sequence to retain an appropriate state within the application.

### Claim 3 (depends on 1)

The method of claim 1, wherein providing a set of tests for a user interface application provides a set of tests in the form of a robotic process automation robot or a technology-specific framework for the application.

### Claim 4 (depends on 1)

The method of claim 1, further includes distributing or making available the sets of tests to owners of the user interface applications for execution.

### Claim 5 (depends on 1)

The method of claim 1, further includes executing a set of tests for a user interface application, including executing the user interface interactions and assertions.

### Claim 6 (depends on 5)

The method of claim 5, wherein executing a set of tests is in a robotic process automation robot execution infrastructure or in a lightweight test runner.

### Claim 7 (depends on 5)

The method of claim 5, wherein, when the user interface application is a user interface application that maintains state in a system, executing the set of tests using mock outs of external systems.

### Claim 8 (depends on 1)

The method of claim 1, wherein a set of tests includes contract tests that are lightweight tests checking specific interactions with the UI.

### Claim 9 (depends on 1)

The method of claim 1, wherein obtaining analysis of commands accesses existing categorization of commands by type.

### Claim 10 (depends on 1)

The method of claim 1, wherein a user interface application is one of the group of: a web application, a desktop application, a terminal application, a mobile application, a voice application.

### Claim 11

A system for test generation for robotic process automation robots that interact with user interfaces, comprising:
a processor and a memory configured to provide computer program instructions to the processor to execute the function of the components:
a command analysis component for obtaining analysis of commands in a robotic process automation script to determine interaction of the commands with one or more user interface applications;
a command extraction component for extracting a list of commands that interact with user interface controls and a command grouping component for grouping the commands by user interface application;
a test generating component for generating a set of tests for each user interface application, with the set of tests including the commands for user interface control interactions and assertions of a state of each user interface control interacted with; and
a test output component for providing a set of tests for a user interface application.

### Claim 12 (depends on 11)

The system of claim 11, wherein the test generating component includes a command order component for keeping the commands in sequence to retain an appropriate state within the application.

### Claim 13 (depends on 11)

The system of claim 11, wherein the test output component distributes or makes available for retrieval the sets of tests to owners of the user interface applications for execution in the form of a robotic process automation robot or a technology-specific framework for the application.

### Claim 14 (depends on 11)

The system of claim 11, including a test executing component for executing a set of tests for a user interface application including executing the user interface interactions and assertions.

### Claim 15 (depends on 14)

The system of claim 14, wherein the test executing component executes a set of tests in a robotic process automation robot execution infrastructure or in a lightweight test runner.

### Claim 16 (depends on 15)

The system of claim 15, wherein the test executing component includes a mock out component for providing mock components for external systems for when the user interface application maintains state in a system.

### Claim 17 (depends on 16)

The system of claim 16, wherein a set of tests includes contract tests that are lightweight tests checking specific interactions with the UI.

### Claim 18 (depends on 17)

The system of claim 17, wherein the command analysis component obtains analysis of commands accesses existing categorization of commands by type.

### Claim 19 (depends on 18)

The system of claim 18, wherein a user interface application is one of the group of: a web application, a desktop application, a terminal application, a mobile application, a voice application.

### Claim 20

A computer program stored on a computer readable medium and loadable into the internal memory of a digital computer, comprising software code portions, when said program is run on a computer, for performing the method comprising:
obtaining analysis of commands in a robotic process automation script to determine interaction of the commands with one or more user interface applications;
extracting a list of commands that interact with user interface controls and grouping the commands by user interface application;
generating a set of tests for each user interface application, with the set of tests including the commands for user interface control interactions and assertions of a state of each user interface control interacted with; and
providing a set of tests for a user interface application.
