Method to speed up creation of JUnit test cases
First Claim
Patent Images
1. A method, comprising:
- statically analyzing a software program source code;
generating a graph of the program execution paths based on the static analysis of the source code;
utilizing the graph to find at least one execution path for a method for testing in the source code;
executing the program along the at least one execution path;
creating environmental objects during program execution;
pausing the program after reaching the method for testing;
serializing the environmental objects to file;
de-serializing the environmental objects;
editing the state of the environmental objects;
serializing the edited environmental objects to file; and
utilizing the serialized environmental objects to automatically generate code in the setup section of JUnit test cases.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method for quickly and efficiently developing JUnit test cases by enabling automated creation of test environment objects that are needed by the JUnit test cases. The system and method maps and captures program code execution paths or “blueprints” such that the blueprints can be utilized to automatically “drive” the program along an execution path to any point in the program. These points can then be used to “harvest” the environment objects needed for JUnit test cases.
-
Citations
1 Claim
-
1. A method, comprising:
-
statically analyzing a software program source code; generating a graph of the program execution paths based on the static analysis of the source code; utilizing the graph to find at least one execution path for a method for testing in the source code; executing the program along the at least one execution path; creating environmental objects during program execution; pausing the program after reaching the method for testing; serializing the environmental objects to file; de-serializing the environmental objects; editing the state of the environmental objects; serializing the edited environmental objects to file; and utilizing the serialized environmental objects to automatically generate code in the setup section of JUnit test cases.
-
Specification