# US 2019/0317884 A1 · Processing automation scripts of software

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

- Number: US 2019/0317884 A1
- Document ID: US20190317884A1
- Status: Published application
- Kind: A1
- Application number: 16/454,060
- Filed: 2019-06-27
- Published: 2019-10-17
- Earliest claimed: 2011-09-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Xue Shen; Qi Wei Zhang
- Web page: https://patentgrep.com/patent/US20190317884A1

## CPC

- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/362: Debugging of software
- 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

Processing automation scripts used for testing pages includes running the automation scripts using a processor, searching for an element on the page according to locating information in an instruction of the automation scripts, collecting element-related information of the element in response to finding of the element on the page according to the locating information, and associating the collected element-related information of the element with the instruction of the automation scripts. The element-related information associated with the instruction is saved.

## Claims

### Claim at position 1

1-15. (canceled)

### Claim 16

A method of processing an automation script used for testing a page, the method comprising:
executing the automation script;
searching for an element on the page according to locating information contained within an instruction of the automation script;
collecting, responsive to finding the element on the page according to the locating information, element-related information;
determining, according to the collected element-related information, that a better instruction for performing the searching exists; and
updating, using the better instruction, the automation script.

### Claim 17 (depends on 16)

The method of claim 16, wherein
the locating information includes:
an attribute of the element,
content of the element, and
an XPath of the element.

### Claim 18 (depends on 16)

The method of claim 16, wherein
the element-related information includes at least one of full attribute, text, and location.

### Claim 19

A system configured to process an automation script used for testing a page, comprising:
a hardware processor configured to initiate the following executable operations:
executing the automation script;
searching for an element on the page according to locating information contained within an instruction of the automation script;
collecting, responsive to finding the element on the page according to the locating information, element-related information;
determining, according to the collected element-related information, that a better instruction for performing the searching exists; and
updating, using the better instruction, the automation script.

### Claim 20 (depends on 19)

The system of claim 19, wherein
the locating information includes:
an attribute of the element,
content of the element, and
an XPath of the element.

### Claim 21 (depends on 19)

The system of claim 19, wherein
the element-related information includes at least one of full attribute, text, and location.

### Claim 22

A computer program product for processing automation scripts used for testing a page, comprising:
a computer hardware storage device having stored thereon program code,
the program code, which when executed on a computer hardware device, causes the computer hardware device to perform:
executing the automation script;
searching for an element on the page according to locating information contained within an instruction of the automation script;
collecting, responsive to finding the element on the page according to the locating information, element-related information;
determining, according to the collected element-related information, that a better instruction for performing the searching exists; and
updating, using the better instruction, the automation script.

### Claim 23 (depends on 22)

The computer program product of claim 22, wherein
the locating information includes:
an attribute of the element,
content of the element, and
an XPath of the element.

### Claim 24 (depends on 22)

The computer program product of claim 22, wherein
the element-related information includes at least one of full attribute, text, and location.
