发明名称 Test data generation and scale up for database testing using unique common factor sequencing
摘要 Embodiments of the present invention provide a system and computer program product for test data generation using unique common factor sequencing. In an embodiment of the invention, a computer program product for test data generation using unique common factor sequencing is provided. The computer program product includes loading a table for population with test data in a test data generation tool executing in a memory of a computer. A column set of multiple columns in the table associated with a key to the table is selected for processing and different cardinality sequence values are assigned to the columns in the set such that the cardinality sequence values do not share a common factor except for unity as in the case of prime numbers.
申请公布号 US9171025(B2) 申请公布日期 2015.10.27
申请号 US201313974623 申请日期 2013.08.23
申请人 International Business Machines Corporation 发明人 Clifford Austin;Emanowicz Konrad;McCallig Enda;Murtagh Gary;Scally Clare
分类号 G06F17/30;G06F7/00;G06F11/36 主分类号 G06F17/30
代理机构 CRGO Law 代理人 Greenberg Steven M.;CRGO Law
主权项 1. A test data generation data processing system comprising: a host computer with at least one processor and a memory; a test data generator configured to generate test data executing in the memory of the host computer; and a unique common factor sequencing module coupled to the test data generator, the unique common factor sequencing module comprising program code configured to: select in a first table loaded for test data generation in the test data generator, a column set of multiple columns in the first table associated with a key to the first table;assign different cardinality sequence values to each column in the column set of multiple columns, wherein the cardinality sequence values do not share a common factor except for unity and each cardinality sequence value indicates a number of values in a sequence before the sequence repeats;generate data for a specified number of rows of each column in the column set of multiple columns according to a corresponding one of the cardinality sequence values;additionally generate random data for other columns of the first table without regard to any particular cardinality sequence value;persist the first table for use in database testing; andscale up the first table to a new table of an original upper portion and an added lower portion by continuing into the added lower portion of the new table a sequence for each column in the column set of multiple columns based upon corresponding ones of the cardinality sequence values and based upon computing values of rows for each column in the column set of multiple columns in the added lower portion of the new table according to a formula: modifiedRowValue=(L+V−1% R)+1,where L is a last value in the first table for the column, V is an existing value for a row of the column in the new table, and R is a range for the column in the new table, while duplicating data in the other columns of the first table in the added lower portion of the new table.
地址 Armonk NY US