System and method for testing a software unit of an application
First Claim
1. A method comprising:
- receiving a first method signature for a first method of a software unit of an application, the first method signature comprising a plurality of parameters including at least one input parameter and at least one output parameter;
identifying, based only on the at least one input parameter and the at least one output parameter of the first method signature without using a method name of the first method and using at least one processor, a generic test specification for a generic test of the first method, the generic test specification being one of a plurality of test specifications, wherein each generic test specification is identified by an associated method signature, and wherein the generic test specification includes a definition for at least one reference input parameter value of the first method corresponding to the at least one input parameter and a definition for at least one reference output parameter value of the first method corresponding to the at least one output parameter;
executing the first method using the at least one reference input parameter value to produce at least one test output parameter value; and
determining a test result based on a comparison between the at least one test output parameter value and the at least one reference output parameter value.
2 Assignments
0 Petitions
Accused Products
Abstract
A system, computer readable storage medium including instructions, and a computer-implemented method for testing a software unit of an application is described. A method signature for a method of the software unit of the application is received. A generic test specification for a generic test of the method is identified based on the method signature, the generic test specification being one of a plurality of test specifications, wherein the generic test specification includes a definition for at least one reference input parameter value of the method and a definition for at least one reference output parameter value of the method. The method is executed using the at least one reference input parameter value to produce at least one test output parameter value. A test result is determined based on a comparison between the at least one test output parameter value and the at least one reference output parameter value.
-
Citations
19 Claims
-
1. A method comprising:
-
receiving a first method signature for a first method of a software unit of an application, the first method signature comprising a plurality of parameters including at least one input parameter and at least one output parameter; identifying, based only on the at least one input parameter and the at least one output parameter of the first method signature without using a method name of the first method and using at least one processor, a generic test specification for a generic test of the first method, the generic test specification being one of a plurality of test specifications, wherein each generic test specification is identified by an associated method signature, and wherein the generic test specification includes a definition for at least one reference input parameter value of the first method corresponding to the at least one input parameter and a definition for at least one reference output parameter value of the first method corresponding to the at least one output parameter; executing the first method using the at least one reference input parameter value to produce at least one test output parameter value; and determining a test result based on a comparison between the at least one test output parameter value and the at least one reference output parameter value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A system to test a software unit of an application, comprising:
-
at least one processor; memory; and at least one program stored in the memory, the at least one program comprising instructions to; receive a first method signature for a first method of the software unit of the application, the first method signature comprising a plurality of parameters including at least one input parameter and at least one output parameter, the first method signature further comprising a method type; identify, based only on the at least one input parameter, the at least one output parameter, and the method type of the first method signature without using a method name of the first method and using at least one processor, a generic test specification for a generic test of the first method, the generic test specification being one of a plurality of test specifications, wherein each generic test specification is identified by an associated method signature, wherein the generic test specification is usable to test functionality that is common across a plurality of methods, and wherein the generic test specification includes a definition for at least one reference input parameter value of the first method corresponding to the at least one input parameter and a definition for at least one reference output parameter value of the first method corresponding to the at least one output parameter; execute the first method using the at least one reference input parameter value to produce at least one test output parameter value; and determine a test result based on a comparison between the at least one test output parameter value and the at least one reference output parameter value. - View Dependent Claims (16, 17, 18)
-
-
19. A non-transitory computer readable storage medium storing at least one program configured for execution by a computer, the at least one program comprising instructions to:
-
receive a method signature for a method of a software unit of an application, the method signature comprising a plurality of parameters including at least one input parameter and at least one output parameter; identify, based only on the at least one input parameter and the at least one output parameter of the method signature without using a method name of the first method and using at least one processor, a generic test specification for a generic test of the method, the generic test specification being one of a plurality of test specifications, wherein each generic test specification is identified by an associated method signature, wherein the generic test specification is usable to test functionality that is common across a plurality of methods, and wherein the generic test specification includes a definition for at least one reference input parameter value of the method corresponding to the at least one input parameter and a definition for at least one reference output parameter value of the method corresponding to the at least one output parameter; execute the method using the at least one reference input parameter value to produce at least one test output parameter value; and determine a test result based on a comparison between the at least one test output parameter value and the at least one reference output parameter value.
-
Specification