Browse Prior Art Database

C++ Class SourceCode Generater and Unit Test stub Code Generater

IP.com Disclosure Number: IPCOM000014125D
Original Publication Date: 2001-Feb-01
Included in the Prior Art Database: 2003-Jun-19
Document File: 2 page(s) / 45K

Publishing Venue

IBM

Abstract

This Disclosure is a solution to generate "source code" , "test case List format" , "test data Input Sheet format" , "Unit Test (UT) test driver source code"from text base Input Informations of Class of OOP(for example c++,Java). In OOP , once class definition is completed ,coding and UT test drivers are made in a simple way in its language characterization. Input Information is "Class name","Attribute name","Attribute type","customised method definition"and "comment for descrived left. Output Information is OOP source code(include header) , UT test dirver (code). Work files are" UT test case List" and "Test data input sheets". 1) Source codes of Inevitable methods like default constructer, destoracter, copy constructer, chara parameter constructer,operator=,operator<< , ,get attribute value,set attributevalue and soob are generated , taking pointers into consideration. 2) UT test case canditates are defined from class methods. 3) each test data are coming from class attribute value and method parameter value. 4) UT test drivers codes are generated from 1) , 2) and 3) .

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 2

C++ Class SourceCode Generater and Unit Test stub Code Generater

    This Disclosure is a solution to generate "source code" , "test case List format" , "test data
Input Sheet format" , "Unit Test (UT) test driver source code"from text base Input Informations of
Class of OOP(for example c++,Java). In OOP , once class definition is completed ,coding and UT test
drivers are made in a simple way in its language characterization.

Input Information is "Class name","Attribute name","Attribute type","customised method definition"and
"comment " for descrived left.

Output Information is OOP source code(include header) , UT test dirver (code).
Work files are" UT test case List" and "Test data input sheets".

1) Source codes of Inevitable methods like default constructer, destoracter, copy constructer, chara
parameter constructer,operator=,operator<< , ,get attribute value,set attributevalue and soob are
generated , taking pointers into consideration.
2) UT test case canditates are defined from class methods.
3) each test data are coming from class attribute value and method parameter value.
4) UT test drivers ( codes ) are generated from 1) , 2) and 3) .

work flow is as follows.

1

[This page contains 1 picture or other non-text object]

Page 2 of 2

2