# US 2018/0024914 A1 · Generating test scripts for testing a network-based application

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

- Number: US 2018/0024914 A1
- Document ID: US20180024914A1
- Status: Published application
- Kind: A1
- Application number: 15/214,552
- Filed: 2016-07-20
- Published: 2018-01-25
- Earliest claimed: 2016-07-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ang Yi
- Web page: https://patentgrep.com/patent/US20180024914A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- 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

There is provided a computer-implemented method of testing an application. The method obtains first temporary test scripts for testing at least one test case of a first version of the application, and the first temporary test scripts are recorded with first mark data used for testing the first version of the application. The method obtains a first correspondence between the first mark data and test data. The method substitutes the test data for the first mark data in the first temporary test scripts based on the first correspondence to obtain first test scripts for testing the at least one test case of the first version of the application.

## Claims

### Claim 1

A computer-implemented method of testing an application, comprising:
obtaining first temporary test scripts for testing at least one test case of a first version of the application, the first temporary test scripts being recorded with first mark data used for testing the first version of the application;
obtaining a first correspondence between the first mark data and test data;
substituting the test data for the first mark data in the first temporary test scripts based on the first correspondence to obtain first test scripts for testing the at least one test case of the first version of the application.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising: storing the first correspondence.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising: testing the at least one test case of the first version of the application by using the obtained first test scripts.

### Claim 4 (depends on 2)

The method according to claim 2, further comprising: in response to a second mark data being included in the first mark data, wherein the second mark data is used for testing a second version of the application, performing steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
substituting the test data for the second mark data in the second temporary test scripts based on the first correspondence to obtain second test scripts for testing the at least one test case of the second version of the application.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising: testing the at least one test case of the second version of the application by using the obtained second test scripts.

### Claim 6 (depends on 2)

The method according to claim 2, further comprising: in response to the first mark data being included in a second mark data, wherein the second mark data is used for testing a second version of the application, performing steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
obtaining a second correspondence between increased test data and increased data in the second mark data compared with the first mark data;
substituting the test data and the increased test data for the second mark data in the second temporary test scripts based on both the first and second correspondences to obtain second test scripts for testing the at least one test case of the second version of the application.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising: testing the at least one test case of the second version of the application by using the obtained second test scripts.

### Claim 8 (depends on 4, 6)

The method according to claim 4 or 6, wherein both the first and second mark data are sets of data with data type, structure and unique values required by the application.

### Claim 9

A computer system for testing an application, comprising: at least one processor, a memory coupled to the at least one processor, computer program instructions stored in the memory and executed by the at least one processor, to perform steps of:
obtaining first temporary test scripts for testing at least one test case of a first version of the application, the first temporary test scripts being recorded with first mark data used for testing the first version of the application;
obtaining a first correspondence between the first mark data and test data;
substituting the test data for the first mark data in the first temporary test scripts based on the first correspondence to obtain first test scripts for testing the at least one test case of the first version of the application.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein the at least one processor executes the computer program instructions to perform steps of: storing the first correspondence.

### Claim 11 (depends on 9)

The computer system of claim 9, wherein the at least one processor executes the computer program instructions to perform steps of: testing the at least one test case of the first version of the application by using the obtained first test scripts.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the at least one processor executes the computer program instructions to, in response to a second mark data being included the first mark data, wherein the second mark data is used for testing a second version of the application, perform steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
substituting the test data for the second mark data in the second temporary test scripts based on the first correspondence to obtain second test scripts for testing the at least one test case of the second version of the application.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the at least one processor executes the computer program instructions to perform steps of: testing the at least one test case of the second version of the application by using the obtained second test scripts.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the at least one processor executes the computer program instructions to, in response to the first mark data being included in a second mark data, wherein the second mark data is used for testing a second version of the application, perform steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
obtaining a second correspondence between increased test data and increased data in the second mark data comparing with the first mark data;
substituting the test data and the increased test data for the second mark data in the second temporary test scripts based on both the first and second correspondences to obtain second test scripts for testing the at least one test case of the second version of the application.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the at least one processor executes the computer program instructions to perform steps of: testing the at least one test case of the second version of the application by using the obtained second test scripts.

### Claim 16 (depends on 12, 14)

The computer system of claim 12 or 14, wherein both the first and second mark data are sets of data with data type, structure and unique values required by the application.

### Claim 17

A computer program product for testing an application, comprising a computer readable storage medium, the computer readable storage medium storing program instructions thereon, the program instructions executed by at least one processor, causing the at least one processor to:
obtain first temporary test scripts for testing at least one test case of a first version of the application, the first temporary test scripts being recorded with first mark data used for testing the first version of the application;
obtain a first correspondence between the first mark data and test data;
substitute the test data for the first mark data in the first temporary test scripts based on the first correspondence to obtain first test scripts for testing the at least one test case of the first version of the application.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the program instructions, when executed on the processor, cause the processor to: store the first correspondence.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the program instructions, when executed on the processor, cause the processor to: in response to a second mark data being included in the first mark data, wherein the second mark data is used for testing a second version of the application, perform steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
substituting the test data for the second mark data in the second temporary test scripts based on the first correspondence to obtain second test scripts for testing the at least one test case of the second version of the application.

### Claim 20 (depends on 18)

The computer program product of claim 18, wherein the program instructions, when executed on the processor, cause the processor to: in response to the first mark data being included in a second mark data, wherein the second mark data is used for testing a second version of the application, perform steps of:
obtaining second temporary test scripts for testing at least one test case of the second version of the application, the second temporary test scripts being recorded with the second mark data;
obtaining the stored first correspondence;
obtaining a second correspondence between increased test data and increased data in the second mark data comparing with the first mark data;
substituting the test data and the increased test data for the second mark data in the second temporary test scripts based on both the first and second correspondences to obtain second test scripts for testing the at least one test case of the second version of the application.
