Method and apparatus for automatically generating test data for code testing purposes
First Claim
Patent Images
1. A method for automatically generating test data for code testing purposes, comprising:
- receiving code under test (CUT);
determining type information for one or more parameters for methods of the CUT; and
automatically selecting, based on the type information, one or more test data factories (TDFs) to generate test data for parameters of the CUT.
1 Assignment
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system that automatically generates test data for code testing purposes. During operation, the system receives code under test (CUT). The system then determines type information for one or more parameters for methods of the CUT. Next, the system automatically selects, based on the type information, one or more test data factories (TDFs) to generate test data for parameters of the CUT.
26 Citations
42 Claims
-
1. A method for automatically generating test data for code testing purposes, comprising:
-
receiving code under test (CUT);
determining type information for one or more parameters for methods of the CUT; and
automatically selecting, based on the type information, one or more test data factories (TDFs) to generate test data for parameters of the CUT. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for automatically generating test data for code testing purposes, the method comprising:
-
receiving CUT;
determining type information for one or more parameters for methods of the CUT; and
automatically selecting, based on the type information, one or more TDFs to generate test data for parameters of the CUT. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28)
-
-
29. An apparatus for automatically generating test data for code testing purposes, comprising:
-
a receiving mechanism configured to receive CUT; and
a selection mechanism configured to;
determine type information for one or more parameters for methods of the CUT; and
to automatically select, based on the type information, one or more TDFs to generate test data for parameters of the CUT. - View Dependent Claims (30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42)
-
Specification