Specifying a predetermined degree of inconsistency for test data
First Claim
1. A method, comprising:
- at a respective computer system having one or more processors and memory storing one or more programs that when executed by the one or more processors cause the respective computer system to perform the method, the method comprising;
obtaining a test policy that specifies a predetermined degree of deliberate inconsistency between write operations and subsequent read operations on a set of data;
receiving a request to provide test data to an application; and
in response to the request to provide test data to the application, performing a sequence of operations, including;
accessing a transaction log that includes operations waiting to be performed on a database, wherein the database includes a plurality of entities;
selecting a first subset of operations from the transaction log to perform on the database in accordance with the test policy, wherein a second subset of operations from the transaction log is not included in the first subset of operations;
performing the first subset of operations on the database in accordance with the test policy while excluding the second subset of operations from performance on the database;
retrieving the test data from the database, wherein the test data includes a respective entity of the plurality of entities that is not consistent with a write operation in the second subset of operations; and
providing the test data to the application.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and a test system for specifying a predetermined degree of inconsistency for test data are disclosed. The test system obtains a test policy, which specifies a predetermined degree of inconsistency between write operations and subsequent read operations on a set of data and subsequently receives a request to provide test data to an application. In response to the request to provide test data to the application the test system generates a set of test data including a plurality of entities retrieved from the set of data, based at least in part on the test policy. The test data includes a respective entity that is not consistent with a previous write operation. The test system further provides the set of test data to the application. The application optionally processes the set of test data to produce results, which are used to determine performance of the application.
78 Citations
18 Claims
-
1. A method, comprising:
at a respective computer system having one or more processors and memory storing one or more programs that when executed by the one or more processors cause the respective computer system to perform the method, the method comprising; obtaining a test policy that specifies a predetermined degree of deliberate inconsistency between write operations and subsequent read operations on a set of data; receiving a request to provide test data to an application; and in response to the request to provide test data to the application, performing a sequence of operations, including; accessing a transaction log that includes operations waiting to be performed on a database, wherein the database includes a plurality of entities; selecting a first subset of operations from the transaction log to perform on the database in accordance with the test policy, wherein a second subset of operations from the transaction log is not included in the first subset of operations; performing the first subset of operations on the database in accordance with the test policy while excluding the second subset of operations from performance on the database; retrieving the test data from the database, wherein the test data includes a respective entity of the plurality of entities that is not consistent with a write operation in the second subset of operations; and providing the test data to the application. - View Dependent Claims (2, 3, 4, 5, 6, 9, 10)
-
7. The method of 1, wherein the test policy specifies a probability of selecting a respective operation to be excluded from the first subset of operations based on an age of the respective operation.
-
8. The method of 1, wherein the test policy specifies a deterministic procedure for identifying operations to be excluded from the first subset of operations.
-
11. A computer system, comprising:
-
one or more processors; memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for; obtaining a test policy that specifies a predetermined degree of deliberate inconsistency between write operations and subsequent read operations on a set of data; receiving a request to provide test data to an application; and in response to the request to provide test data to the application, performing sequence of operations, including; accessing a transaction log that includes operations waiting to be performed on a database, wherein the database includes a plurality of entities; selecting a first subset of operations from the transaction log to perform on the database in accordance with the test policy, wherein a second subset of operations from the transaction log is not included in the first subset of operations; performing the first subset of operations on the database while excluding the second subset of operations from performance on the database; retrieving the test data from the database, wherein the test data includes a respective entity that is not consistent with a write operation in the second subset of operations; and providing the test data to the application. - View Dependent Claims (12, 13, 14)
-
-
15. A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a computer system with one or more processors, cause the computer system to:
-
obtain a test policy that specifies a predetermined degree of deliberate inconsistency between write operations and subsequent read operations on a set of data; receive a request to provide test data to an application; and in response to the request to provide test data to the application, perform a sequence of operations that; access a transaction log that includes operations waiting to be performed on a database, wherein the database includes a plurality of entities; select a first subset of operations from the transaction log to perform on the database in accordance with the test policy, wherein a second subset of operations from the transaction log is not included in the first subset of operations; perform the first subset of operations on the database and exclude the second subset of operations from performance on the database; retrieve the test data from the database, wherein the test data includes a respective entity that is not consistent with a write operation in the second subset of operations, and; provide the test data to the application. - View Dependent Claims (16, 17, 18)
-
Specification