System and a method for automated unit test generation
AssigneeCognizant Technology Solutions India Pvt. Ltd.
InventorsSakthivel Sabanayagam, Saroj Pradhan, Srujana Korukoppula, Angusamy Vimal Kumar
Life of this patent
Estimating the term…
Loading patent…
AssigneeCognizant Technology Solutions India Pvt. Ltd.
InventorsSakthivel Sabanayagam, Saroj Pradhan, Srujana Korukoppula, Angusamy Vimal Kumar
Estimating the term…
A system and a method for automating unit test case including generating a codebase extract by analysing an application source code, identifying one or more potential executable paths within a selected class or method based on an analysis of the codebase extract, executing one or more statements associated with each of the one or more potential paths using a symbolic execution technique and identifying one or more calls to external dependencies associated with the respective paths, and subsequently, a hint for spying and mocking respective external dependencies is generated, as a by-product of symbolic execution on identification of the external dependencies, whereby each hint is updated with respective ideal return value, and a unit test case for testing a selected class or method is generated by processing the hints with test data and an exclusion list.
A computer implemented method for automating unit test case generation for one or more methods associated with an application source code, wherein the method is implemented by a processor executing program instructions stored in a memory, the method comprising:
A system for automating unit test case generation for one or more methods associated with an application source code, wherein the system interfaces with an application subsystem comprising the application source code, the system comprising:
A computer program product comprising:
Dependencies are inferred from the claim text.