# US 2017/0286273 A1 · Virtual service data set generation

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

- Number: US 2017/0286273 A1
- Document ID: US20170286273A1
- Status: Published application
- Kind: A1
- Application number: 15/085,928
- Filed: 2016-03-30
- Published: 2017-10-05
- Earliest claimed: 2016-03-30
- Assignees: CA, Inc.
- Applicants: CA, Inc.
- Inventors: Rich J. Lau; Fang Yang
- Web page: https://patentgrep.com/patent/US20170286273A1

## CPC

- G06F 11/3668: Testing of software
- 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

A virtual service is instantiated from a service model that is operable to receive requests intended for a particular one of a plurality of software components in a system and generate simulated responses of the particular software component based on a service model modeling responses of the particular software component. A particular request is identified that has been redirected to the virtual service. A size of a data set for inclusion in a simulated response of the virtual service to the particular request is determined based on a size value in the particular request. The data set is generated using the virtual service according to the size value and the simulated response that includes the data set is sent to the other software component in response to the particular request.

## Claims

### Claim 1

A method comprising:
instantiating a virtual service from a service model, wherein the virtual service is operable to receive requests intended for a particular one of a plurality of software components in a system and generate simulated responses of the particular software component based on a service model modeling responses of the particular software component;
identifying a particular request from another software component intended for the particular software component, wherein the particular request is a particular type and is to be redirected to the virtual service;
determining, from a size value in the particular request, a number of records to be included in a data set for inclusion in a simulated response of the virtual service to the particular request, wherein the number of records is different than a particular number of records defined in the service model to be included in responses to requests of the particular type;
generating the data set using the virtual service according to the size value; and
sending the simulated response to the other software component in response to the particular request, wherein the simulated response comprises the data set.

### Claim 2 (depends on 1)

The method of claim 1, wherein the size value comprises a value in a field unused by the particular component.

### Claim 3 (depends on 2)

The method of claim 2, wherein the field comprises a field of a header of the particular request.

### Claim 4 (depends on 1)

The method of claim 1, wherein the value is added to the particular request following generation of the particular request.

### Claim 5 (depends on 4)

The method of claim 4, wherein the value is added to the particular request in association with a test of a software component upstream from the virtual service.

### Claim 6 (depends on 5)

The method of claim 5, wherein the test is managed by a testing system and the value is provided by the testing system.

### Claim 7 (depends on 5)

The method of claim 5, wherein the test tests reaction of the software component upstream from the virtual service to responses comprising the data set of the size.

### Claim 8

(canceled)

### Claim 9 (depends on 1)

The method of claim 1, wherein the data set is generated to comprise a unique value for each of the number of records.

### Claim 10 (depends on 9)

The method of claim 9, wherein the unique values are generated based on a template defined in the service model.

### Claim 11 (depends on 10)

The method of claim 10, wherein the template is based on record values generated by the particular software component and observed during computer monitoring of the particular software component.

### Claim 12 (depends on 9)

The method of claim 9, wherein the virtual service comprises loop logic to loop a value generator according to the number of records.

### Claim 13 (depends on 1)

The method of claim 1, wherein the particular request comprises a first request, the value comprises a first value, the data set comprises a first data set, and the simulated response comprises a first simulated response, the method further comprising:
identifying a second request redirected to an instance of the virtual service;
determining a size of a second data set for inclusion in a second simulated response of the virtual service to the second request;
generating a second data set using the virtual service; and
sending the second simulated response to the other software component in response to the second request, wherein the second simulated response comprises the second data set and the size of the second data set is different from the size of the first data set.

### Claim 14 (depends on 13)

The method of claim 13, wherein the second request comprises a second size value and the size of the second data is determined from the second size value.

### Claim 15 (depends on 13)

The method of claim 13, wherein the size of the second data is determined according to a default defined in the service model.

### Claim 16 (depends on 1)

The method of claim 1, wherein the service model is generated from transaction data describing responses of the particular software component to requests of the particular software component observed during computer monitoring of the particular software component.

### Claim 17

A computer program product comprising a non-transitory computer readable storage medium comprising computer readable program code embodied therewith, the computer readable program code comprising:
computer readable program code configured to instantiate a virtual service from a service model, wherein the virtual service is operable to receive requests intended for a particular one of a plurality of software components in a system and generate simulated responses of the particular software component based on a service model modeling responses of the particular software component;
computer readable program code configured to identify a particular request from another software component intended for the particular software component, wherein the particular request is a particular type and is to be redirected to the virtual service;
computer readable program code configured to determine, from a size value in the particular request, a number of records to be included in a data set for inclusion in a simulated response of the virtual service to the particular request, wherein the number of records is different than a particular number of records defined in the service model to be included in responses to requests of the particular type;
computer readable program code configured to generate the data set using the virtual service according to the size value; and
computer readable program code configured to send the simulated response to the other software component in response to the particular request, wherein the simulated response comprises the data set.

### Claim 18

A system comprising:
a data processor;
a memory;
a virtualization system to host a virtual service, operable to simulate responses of a particular one of a plurality of software components in a system based on a service model corresponding to the particular software component,
wherein the virtual service is to comprise data set generation logic to:
identify a size identifier added to a particular request redirected to the virtual service from another software component in the plurality of software components, wherein the particular request is of a particular type;
determine, from the size identifier, a number of records to be included in a data set to generate for inclusion in a simulated response generated by the virtual service in response to the particular request, wherein the number of records is different than a particular number of records defined in the service model to be included in responses to requests of the particular type;
and the virtual service is to send the simulated response comprising the data set to the other software component in response to the particular request.

### Claim 19 (depends on 18)

The system of claim 18, further comprising a testing system to test a first software component in the plurality of software components based on the simulated response.

### Claim 20 (depends on 19)

The system of claim 19, wherein the testing system is to cause the size identifier to be added to the particular request based on a test case defining the test.
