# US 9,355,016 B2 · Automated regression testing for software applications

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

- Number: US 9,355,016 B2
- Document ID: US9355016B2
- Status: Granted
- Kind: B2
- Application number: 14/198,271
- Filed: 2014-03-05
- Published: 2015-09-10
- Granted: 2016-05-31
- Earliest claimed: 2014-03-05
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Bryce B. Baril; Alexander G. Gounares; Russell S. Krajec
- Web page: https://patentgrep.com/patent/US9355016B2

## CPC

- G06F 11/3676: {for coverage analysis}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- 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

Regression testing of an application may gather performance tests for multiple functions within an application and determine when performance changes from one version of the application to another. The analysis may be further broken down by input sequences that may be processed by various functions. A detailed regression analysis may be presented as a heat map or other visualizations. A regression testing system may be launched during a build process by automatically launching a set of performance tests against an application. In many cases, the application may be executed in a system with a known or consistent performance capabilities. The application may be executed and tested in a new version and at least one prior version on the same hardware and software execution environment, so that results may be normalized from one execution run to another. A regression testing system may be deployed as a paid-for service that may integrate into a source code repository.

## Claims

### Claim 1

A method performed on at least one computer processor on a first hardware device, said method comprising:
receiving a first version of a software module, said software module comprising a plurality of functions;
configuring a first execution environment;
causing said first version of said software module to be executed on said first execution environment with a tracer;
receiving first tracer data from said tracer, said first tracer data being collected while said first version of said software module is executed on said first execution environment, said first tracer data comprising performance data for at least some of said plurality of functions;
receiving second tracer data from said tracer, said second tracer data being collected while a second version of said software module is executed on a second execution environment, said second tracer data comprising performance data for at least some of said plurality of functions;
comparing said first tracer data to said second tracer data to populate a regression database comprising performance differences for said at least some of said plurality of functions.

### Claim 2 (depends on 1)

The method of claim 1, said first execution environment being a virtual machine.

### Claim 3 (depends on 2)

The method of claim 2, said virtual machine operating on said first hardware device.

### Claim 4 (depends on 1)

The method of claim 1, said first execution environment being on a second device.

### Claim 5 (depends on 1)

The method of claim 1:
said first tracer data further comprising a first performance dataset for a first input stream for a first function and a second input stream for said first function;
said second tracer data further comprising a second performance dataset for said first input stream for said first function and said second input stream for said first function;
said regression database further comprising said performance differences for said first input stream for said first function and said second input stream for said first function.

### Claim 6 (depends on 5)

The method of claim 5 further comprising:
displaying a visualization of at least a portion of said regression database.

### Claim 7 (depends on 6)

The method of claim 6, said visualization showing a first regression statistic for said first input stream of said first function and a second regression statistic for said second input stream of said first function.

### Claim 8 (depends on 6)

The method of claim 6, said visualization being a heat map.

### Claim 9 (depends on 1)

The method of claim 1 further comprising causing said second version of said software module to be executed on said first execution environment with said tracer and generating said second tracer data.

### Claim 10 (depends on 9)

The method of claim 9 further comprising:
causing a third version of said software module to be executed on said first execution environment with said tracer and generating third tracer data; and
comparing said second tracer data to said third tracer data to further populate a regression database comprising performance differences for said at least some of said plurality of functions.

### Claim 11 (depends on 1)

The method of claim 1, said performance data comprising usage data of at least one of a group composed of:
processor resources;
memory resources;
storage resources;
network resources;
peripheral resources;
input/output resources;
database resources;
local service resources; and
remote service resources.

### Claim 12

A system comprising:
a testing component that:
receives a first version of a software module, said software module comprising a plurality of functions;
configures a first execution environment;
causes said first version of said software module to be executed on said first execution environment with a tracer;
an analysis component executing on a computer processor, said analysis component that:
receives first tracer data from said tracer, said first tracer data being collected while said first version of said software module is executed on said first execution environment, said first tracer data comprising performance data for at least some of said plurality of functions;
receives second tracer data from said tracer, said second tracer data being collected while a second version of said software module is executed on a second execution environment, said second tracer data comprising performance data for at least some of said plurality of functions;
compares said first tracer data to said second tracer data to populate a regression database comprising performance differences for said at least some of said plurality of functions.

### Claim 13 (depends on 12)

The system of claim 12, said first execution environment being a virtual machine.

### Claim 14 (depends on 13)

The system of claim 13, said virtual machine operating on said first hardware device.

### Claim 15 (depends on 12)

The system of claim 12, said first execution environment being on a second device.

### Claim 16 (depends on 12)

The system of claim 12:
said first tracer data further comprising a first performance dataset for a first input stream for a first function and a second input stream for said first function;
said second tracer data further comprising a second performance dataset for said first input stream for said first function and said second input stream for said first function;
said regression database further comprising said performance differences for said first input stream for said first function and said second input stream for said first function.

### Claim 17 (depends on 16)

The system of claim 16 said analysis component that further:
displays a visualization of at least a portion of said regression database.

### Claim 18 (depends on 17)

The system of claim 17, said visualization showing a first regression statistic for said first input stream of said first function and a second regression statistic for said second input stream of said first function.

### Claim 19 (depends on 17)

The system of claim 17, said visualization being a heat map.

### Claim 20 (depends on 12)

The system of claim 12 said testing component that further:
causes said second version of said software module to be executed on said first execution environment with said tracer and generates said second tracer data.

### Claim 21 (depends on 20)

The system of claim 20 said testing component that further:
causing a third version of said software module to be executed on said first execution environment with said tracer and generating third tracer data; and
said analysis component that further:
compares said second tracer data to said third tracer data to further populate a regression database comprising performance differences for said at least some of said plurality of functions.

### Claim 22 (depends on 12)

The system of claim 12, said performance data comprising usage data of at least one of a group composed of:
processor resources;
memory resources;
storage resources;
network resources;
peripheral resources;
input/output resources;
database resources;
local service resources; and
remote service resources.
