Auto generation and linkage of source code to test cases

US9632754B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9632754-B2
Application numberUS-201213542798-A
CountryUS
Kind codeB2
Filing dateJul 6, 2012
Priority dateJul 6, 2012
Publication dateApr 25, 2017
Grant dateApr 25, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Aspects of the present invention disclose a system, method and program for automatic generation of source code under test case. In an example, a computer determines whether references to source code under test can be located from a test case. The computer automatically generates boiler plate code required for the creation of source code under test, wherein each section of the source code under test is associated with each section of the test case that caused its generation. The computer analyzes one or more test case syntax clues to provide additional information to form the boiler plate source code under test for the test case. The computer generates source code under test based on the type of boiler plate required for the creation of source code under test and the provided syntax clues in the test case.

First claim

Opening claim text (preview).

What is claimed is: 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. 2. The method of claim 1 , wherein the method for automatic generation of the class under test case is integrated with independent code language writing software. 3. The method of claim 1 , wherein the analyzing of one or more test case syntax clues is performed through a Batch Mode setting. 4. The method of claim 1 , wherein the analyzing step performs a task using an external IDE application. 5. The method of claim 1 , further comprising the step of deciphering certain parts of the test case and visual representing any correlation with the class under test. 6. A computer program product for automatic generation of source code under test case comprising: one or more non-transitory computer-readable tangible storage devices and program instructions stored on at least one of the one or more non-transitory computer-readable tangible storage devices, the program instructions comprising; program instructions to determine 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; program instructions to, responsive to at least one reference to a class under test that cannot be located, determine 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; program instructions to, responsive to determining the class under test that cannot be located is not due to a typographical error, generate 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 the 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; program instructions to analyze 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 program instructions to generate the class under the test case 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. 7. The computer program product of claim 6 , wherein the computer program product for automatic generation of the class under test case is integrated with independent code language writing software. 8. The computer program product of claim 6 , wherein the analyzing of one or more test case syntax clues is performed through a Batch Mode setting. 9. The computer program product of claim 6 , wherein the program instructions to analyze performs a task using an external IDE application. 10. The computer program product of claim 6 , further comprising program instructions to decipher certain parts of the test case and visually represent any correlation with the class under test. 11. A computer system for automatic generation of source code under test case comprising: one or more processors, one or more computer-readable memories and one or more computer-readable storage media, and program instruction, stored on at least one of the one or more storage media for execution by at least one of the one or more processors via at least one of the one or more computer-readable memories, the program instructions comprising: program instructions to determine 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; program instructions to, responsive to at least one reference to a class under test that cannot be located, determine 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; program instructions to, responsive to determining the class under test that cannot be located is not due to a typographical error, generate 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 the 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; program instructions to analyze 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 program instructions to generate the class under the test case 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. 12. The computer system of claim 11 , wherein the program instructions for automatic generation of the class under test case is integrated with independent code language writing software. 13. The computer system of claim 11 , wherein the analyzing of one or more test case syntax clues is performed through a Batch Mode setting. 14. The computer system of claim 11 , wherein the program instructions to analyze performs a task using an external IDE application. 15. The computer system of claim 11 , further comprising program instructions to dec

Assignees

Inventors

Classifications

  • G06F8/30Primary

    Creation or generation of source code · CPC title

  • for test design, e.g. generating new test cases · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9632754B2 cover?
Aspects of the present invention disclose a system, method and program for automatic generation of source code under test case. In an example, a computer determines whether references to source code under test can be located from a test case. The computer automatically generates boiler plate code required for the creation of source code under test, wherein each section of the source code under …
Who is the assignee on this patent?
Gyure Wesley J, Marum Matthew G, Robinson David G, and 1 more
What technology area does this patent fall under?
Primary CPC classification G06F8/30. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 25 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).