# US 2019/0377668 A1 · Regression testing of cloud-based services

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

- Number: US 2019/0377668 A1
- Document ID: US20190377668A1
- Status: Published application
- Kind: A1
- Application number: 16/001,903
- Filed: 2018-06-06
- Published: 2019-12-12
- Earliest claimed: 2018-06-06
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Thomas Angermayer
- Web page: https://patentgrep.com/patent/US20190377668A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 16/958: Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F 11/3672: {Test management}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for regression testing may include detecting a client request sent from a client to a cloud-based service. One or more actions triggered at the cloud-based service by the one or more actions may be detected. The one or more actions may include a change to a database coupled with the cloud-based service. A test case may be generated for regression testing the cloud-based service. The test case may include the client request and an expected result of the client request. The expected result of the client request may include the one or more actions triggered at the cloud-based service by the client request. The cloud-based service may be regression tested by at least executing the test case. Related systems and articles of manufacture, including computer program products, are also provided.

## Claims

### Claim 1

A system, comprising:
at least one data processor; and
at least one memory storing instructions which, when executed by the at least one data processor, cause operations comprising:
detecting a client request, the client request being sent from a client to a cloud-based service;
detecting one or more actions triggered at the cloud-based service by the client request, the one or more actions including a first change to a database coupled with the cloud-based service;
generating a test case for regression testing the cloud-based service, the test case including the client request, the test case further including an expected result of the client request, and the expected result of the client request comprising the first change to the database;
regression testing the cloud-based service by at least executing the test case, the test case being executed by at least sending, to the cloud-based service, the client request included in the test case;
determining an actual result of the client request by at least detecting an action triggered at the cloud-based service by the client request, the actual result of the client request comprising a second change to the database; and
determining that the cloud-based service passes the test case based at least on a difference between the first change to the database and the second change to the database not exceeding a threshold value.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first change to the database comprises a change in a state of the database from a first state before the client request is fulfilled by the cloud-based service to a second state of the database after the client request is fulfilled by the cloud-based service.

### Claim 3 (depends on 2)

The system of claim 2, wherein the change includes an addition of data to the database and/or a modification of data in the database.

### Claim 4 (depends on 1)

The system of claim 1, wherein the detecting of the one or more actions comprises detecting a query to store, modify, and/or retrieve data from the database.

### Claim 5 (depends on 1)

The system of claim 1, further comprising:
detecting a response sent, in response to the client request, to the client from the cloud-based service; and
generating the test case to include the response as part of the expected result of the client request.

### Claim 6 (depends on 5)

The system of claim 5, wherein the client request and/or the response is detected by at least detecting an exchange of data between the client and the cloud-based service, and wherein the exchange of data is conducted via a user interface generated by a presentation layer of the cloud-based service.

### Claim 7 (depends on 5)

The system of claim 5, wherein the response comprises a confirmation that the client request is fulfilled and/or data retrieved from the database.

### Claim 8

(canceled)

### Claim 9

(canceled)

### Claim 10 (depends on 1)

The system of claim 1, wherein the cloud-based service comprises a hardware resource and/or a software resource that is remote to the client and accessible to the client via a wired and/or wireless network.

### Claim 11 (depends on 1)

The system of claim 1, wherein the cloud-based service comprises an infrastructure as a service (IaaS), a platform as a service (PaaS), and/or a software as a service (SaaS).

### Claim 12 (depends on 1)

The system of claim 1, wherein the one or more actions further includes a change to a state of the cloud-based service, and wherein the state of the cloud-based service comprises a quantity of active client sessions and/or a quantity of pending client requests.

### Claim 13

A method, comprising:
detecting a client request, the client request being sent from a client to a cloud-based service;
detecting one or more actions triggered at the cloud-based service by the client request, the one or more actions including a first change to a database coupled with the cloud-based service;
generating a test case for regression testing the cloud-based service, the test case including the client request, the test case further including an expected result of the client request, and the expected result of the client request comprising the first change to the database;
regression testing the cloud-based service by at least executing the test case, the test case being executed by at least sending, to the cloud-based service, the client request included in the test case;
determining an actual result of the client request by at least detecting an action triggered at the cloud-based service by the client request, the actual result of the client request comprising a second change to the database; and
determining that the cloud-based service passes the test case based at least on a difference between the first change to the database and the second change to the database not exceeding a threshold value.

### Claim 14 (depends on 13)

The method of claim 13, wherein the first change to the database comprises a change in a state of the database from a first state before the client request is fulfilled by the cloud-based service to a second state of the database after the client request is fulfilled by the cloud-based service, and wherein the change includes an addition of data to the database and/or a modification of data in the database.

### Claim 15 (depends on 13)

The method of claim 13, wherein the detecting of the one or more actions comprises detecting a query to store, modify, and/or retrieve data from the database.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
detecting a response sent, in response to the client request, to the client from the cloud-based service, the client request and/or the response being detected by at least detecting an exchange of data between the client and the cloud-based service, the exchange of data conducted via a user interface generated by a presentation layer of the cloud-based service, and the response comprises a confirmation that the client request is fulfilled and/or data retrieved from the database; and
generating the test case to include the response as part of the expected result of the client request.

### Claim 17

(canceled)

### Claim 18

(canceled)

### Claim 19 (depends on 13)

The method of claim 13, wherein the one or more actions further includes a change to a state of the cloud-based service, and wherein the state of the cloud-based service comprises a quantity of active client sessions and/or a quantity of pending client requests.

### Claim 20

A non-transitory computer-readable medium storing instructions, which when executed by at least one data processor, result in operations comprising:
detecting a client request, the client request being sent from a client to a cloud-based service;
detecting one or more actions triggered at the cloud-based service by the client request, the one or more actions including a first change to a database coupled with the cloud-based service;
generating a test case for regression testing the cloud-based service, the test case including the client request, the test case further including an expected result of the client request, and the expected result of the client request comprising the first change to the database;
regression testing the cloud-based service by at least executing the test case, the test case being executed by at least sending, to the cloud-based service, the client request included in the test case;
determining an actual result of the client request by at least detecting an action triggered at the cloud-based service by the client request, the actual result of the client request comprising a second change to the database; and
determining that the cloud-based service passes the test case based at least on a difference between the first change to the database and the second change to the database not exceeding a threshold value.
