# US 12,001,324 B2 · Operation pattern generation apparatus, operation pattern generation method and program

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

- Number: US 12,001,324 B2
- Document ID: US12001324B2
- Status: Granted
- Kind: B2
- Application number: 17/774,895
- Filed: 2019-11-07
- Published: 2022-12-22
- Granted: 2024-06-04
- Earliest claimed: 2019-11-07
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Yu Yoshimura; Yu Adachi; Haruto Tanno; Hiroyuki Kirinuki; Toshiyuki Kurabayashi
- Web page: https://patentgrep.com/patent/US12001324B2

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 8/70: Software maintenance or management
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An operation pattern generation apparatus has a generating unit which generates, with respect to a test script to be used for a web application, operation patterns related to combinations of operation elements that cause a transition between screens of the web application and input data candidates for input elements to be used to input data on the screens, and with respect to the input element of which a default value of input data is set in advance, the generating unit combines only the default value with the operation elements in order to reduce time required for specification restoration of screen transitions of the web application.

## Claims

### Claim 1

An operation pattern generation apparatus comprising a processor configured to execute operations comprising:
retrieving code data of screens of a web application for testing, wherein the data of screens include operation elements of the screens, and the operation elements include input data with a predetermined value;
generating a plurality of operation patterns of the web application, wherein an operation pattern of the plurality of operation patterns includes the operation elements that cause a transition between the screens of the web application and input data candidates for input elements to be used to input data on the screens, wherein the operating pattern includes the operation elements that cause the transition between screens of the web application based on only the predetermined value as a value of the input data among the input data candidates for input elements;
automatically operating, based on the plurality of operation patterns, the web application to reconstruct a specification of the web application based on a result from the automatically operating according to reverse based engineering; and
generating, based on the reconstructed specification of the web application, a test script for testing the web application.

### Claim 2 (depends on 1)

The operation pattern generation apparatus according to claim 1, wherein
the generating does not combine a link to which a query string has not been set among the operation elements with the input data candidates.

### Claim 3 (depends on 1)

The operation pattern generation apparatus according to claim 1, wherein
the generating includes adopting, with respect to a button among the operation elements, an input element in a form to which the button belongs as a candidate of a combination object of input data.

### Claim 4 (depends on 2)

The operation pattern generation apparatus according to claim 2, wherein
the generating includes adopting, with respect to a button among the operation elements, an input element in a form to which the button belongs as a candidate of a combination object of input data.

### Claim 5

An operation pattern generation method, comprising
retrieving code data of screens of a web application for testing, wherein the data of screens include operation elements of the screens, and the operation elements include input data with a predetermined value;
generating a plurality of operation patterns of a web application, wherein an operating pattern of the plurality of operating patterns include operation elements that cause a transition between the screens of the web application and input data candidates for input elements to be used to input data on the screens, wherein the operating pattern includes the operation elements that cause the transition between screens of the web application based on only the predetermined value as a value of the input data among the input data candidates for input elements;
automatically operating, based on the plurality of operation patterns, the web application to reconstruct a specification of the web application based on a result from the automatically operating according to reverse based engineering; and
generating, based on the reconstructed specification of the web application, a test script for testing the web application.

### Claim 6 (depends on 5)

The operation pattern generation method according to claim 5, wherein
the generating includes a link to which a query string has not been set among the operation elements is not combined with the input data candidates.

### Claim 7 (depends on 5)

The operation pattern generation method according to claim 5, wherein
the generating includes, for a button among the operation elements, an input element in a form to which the button belongs is adopted as a candidate of a combination object of input data.

### Claim 8 (depends on 6)

The operation pattern generation method according to claim 6, wherein
the generating includes, for a button among the operation elements, an input element in a form to which the button belongs is adopted as a candidate of a combination object of input data.

### Claim 9

A system for generating an operation pattern, the system comprises a processor configured to execute a method comprising:
retrieving code data of screens of a web application for testing, wherein the data of screens include operation elements of the screens, and the operation elements include input data with a predetermined value;
generating a plurality of operation patterns of a web application, wherein an operation pattern of the plurality of operation patterns include operation elements that cause a transition between the screens of the web application and input data candidates for input elements to be used to input data on the screens, wherein the operating pattern includes the operation elements that cause the transition between screens of the web application based on only the predetermined value as a value of the input data among the input data candidates for input elements;
automatically operating, based on the plurality of operation patterns, the web application to reconstruct a specification of the web application based on a result from the automatically operating according to reverse based engineering; and
generating, based on the reconstructed specification of the web application, a test script for testing the web application.

### Claim 10 (depends on 9)

The system according to claim 9, the generating does not combine a link to which a query string has not been set among the operation elements with the input data candidates.

### Claim 11 (depends on 9)

The system according to claim 9, the generating includes adopting, with respect to a button among the operation elements, an input element in a form to which the button belongs as a candidate of a combination object of input data.

### Claim 12 (depends on 10)

The system according to claim 10, the generating includes adopting, with respect to a button among the operation elements, an input element in a form to which the button belongs as a candidate of a combination object of input data.
