Patent ID: 9632754
Date: 2017-04-25
CPC Classifications: G06F

Claim:
1. A method for automatic generation of source code under test case comprising: determining whether references to one or more classes under test can be located from a test case, wherein the test case is in a first high-level code language; responsive to at least one reference to a class under test that cannot be located, determining whether the class under test that cannot be located is due to a typographical error, wherein a pattern of one or more recurring syntax clues dictates whether the at least one reference to the class under test includes a typographical error; responsive to determining the class under test that cannot be located is not due to a typographical error, generating boiler plate code in a second high-level code language required for a creation of the class under test in the second high-level code language for the at least one reference to a class under test that cannot be located, wherein functional content of the boiler plate code is different from functional content of the test case such that results generated from the test case are independently different from results generated from the boiler plate code; analyzing one or more syntax clues in the test case to provide additional information for the generation of the class under test of the generated boiler plate code; and generating the class under test into the generated boiler plate based on both a type of boiler plate required for the creation of the class under test and the provided syntax clues in the test case, wherein each section of the class under test is associated with each section of the test case that caused its generation; wherein at least one of the steps is carried out using a computing device.