Browse Prior Art Database

Automated Function Test Generation Method

IP.com Disclosure Number: IPCOM000099680D
Original Publication Date: 1990-Feb-01
Included in the Prior Art Database: 2005-Mar-15
Document File: 5 page(s) / 161K

Publishing Venue

IBM

Related People

Ho, WJ: AUTHOR

Abstract

A technique is described whereby an automated pro- gramming method is used to generate function design simulation test cases with input/output response, as used in the testing of microprocessing systems. The method is designed to eliminate manual writing of code and data for each test case, thereby enabling a test to be generated for every simulation required.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Automated Function Test Generation Method

       A technique is described whereby an automated pro-
gramming method is used to generate function design simulation test
cases with input/output response, as used in the testing of
microprocessing systems.  The method is designed to eliminate manual
writing of code and data for each test case, thereby enabling a test
to be generated for every simulation required.

      The automated function test generation method is designed to
provide the following: ; a) Data control tables to quickly generate
new test cases. ;b) Test code drivers to enable code to be written
that will test any specific function not covered by the table. ;c) A
method whereby parameters are gathered in data control tables and a
test code in a driver so as to avoid many problems associated with
keeping track of a large number of separate items.

      The flow chart of Fig. 1 illustrates how the automated function
test case generator method is used.  Data control file 10 contains
the data which describes all test cases that are to be performed.
This data describes the test cases and either contains specific input
and output data, or a table of the key data required to expand
specific input and output data.  In this way, the test case generator
provides the intelligence to enable the test case specifications to
serve as the data control. The Data Control Table illustrates an
example of the data control matrix to provide the necessary data
required to quickly generate new test cases.

      Driver code control 11, as shown in Fig. 1, consists of a main
routine and a set of test routines.  The main routine reads the
command list and calls for the appropriate test routine along with
the address of the parameters for the test routine.  Driver code
control 11 also contains code which will be evoked only upon
receiving some external signal, such as an interrupt.  The code used
for these routines may be hard-coded directly into the driver, or may
be a separate command list that is only performed upon the receipt of
a certain signal.

      The test routines are responsible for performing the test and
logging any information required for comparison with expected
results.  This determines whether a test has passed or failed.  There
is a unique set of driver codes for each system being tested.  As the
functions required to be tested become fully specified, the
specifications for each driver will also become more clearly
specified.

      Test case generator 12 uses the data from data control file 10
to generate test cases automatically.  There is one generic test case
generator which is used for all systems being tested.  The test
cases, which test control generator 12 generates, consists of the
following:
1) Any initialization which is required.
2) Com...