Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Testcase script generator

IP.com Disclosure Number: IPCOM000014967D
Original Publication Date: 2001-Jul-15
Included in the Prior Art Database: 2003-Jun-20
Document File: 2 page(s) / 28K

Publishing Venue

IBM

Abstract

A program is disclosed that acts as a test harness that solves the problem of the test harness interfering with the testcases. A testcase is a computer program whose purpose is to test some aspect of a system or program under test. A test harness is a computer program which runs a set of testcases (known as a test suite). A typical test harness will perform the following: 1. Select the testcases to be run from the test suite with regard to options specified by the user. 2. Read user options which specify the test environment for the testcases and program under test. 3. Set up the test environment for the testcases and program under test. 4. Execute the selected testcases. 5. Determine which testcases have passed and failed. 6. Produce a report containing: a description of the test environment, a list of testcases that passed and failed, and detailed output from testcases that failed. The disclosed program also has the following additional features: 1. Interference between the testcase and test harness is eliminated. 2. Support for testcases that mix Java* and native code and compile C++ code (for example: JNI Java Native Interface). Currently the various testsuites that do this differ from each other and in the way they are started on different platforms. 3. It is easy to run a testcase standalone. 4. Compile delay is removed from interactive test runs. Explanation of the additional features: 1. Interference between the testcase and test harness is eliminated.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 51% of the total text.

Page 1 of 2

Testcase script generator

  A program is disclosed that acts as a test harness that solves
the problem of the test harness interfering with the testcases.

    A testcase is a computer program whose purpose is to test
some aspect of a system or program under test. A test harness is
a computer program which runs a set of testcases (known as a test
suite). A typical test harness will perform the following:
1. Select the testcases to be run from the test suite with
regard to options specified by the user.
2. Read user options which specify the test environment for the
testcases and program under test.
3. Set up the test environment for the testcases and program
under test.
4. Execute the selected testcases.
5. Determine which testcases have passed and failed.
6. Produce a report containing: a description of the test
environment, a list of testcases that passed and failed, and
detailed output from testcases that failed.

  The disclosed program also has the following additional
features:
1. Interference between the testcase and test harness is
eliminated.
2. Support for testcases that mix Java* and native code and
compile C++ code (for example: JNI - Java Native Interface).
Currently the various testsuites that do this differ from each
other and in the way they are started on different platforms.
3. It is easy to run a testcase standalone.
4. Compile delay is removed from interactive test runs.

Explanation of the additional features:
1. Interference between the testcase and test harness is
eliminated.

    If the test harness is running while the testcases are being
executed the test harness can impact the way the testcase
executes. This can mean the testcase fails while being run inside
the testcase and passes when run standalone or vice versa. This
is clearly undesirable. The disclosed program overcomes this by
generating a script file to perform steps 3 to 6. This script
file is then executed to perform the main activities normally
carried out by a test harness. Since the script file is just a
list of Operating System commands there is no application
software running while the testcases are executing so
interference cannot happen.
2. Support for testcases that mix Java and native code and
compile C++ code.

Java programs can run on any Operating System which has a Java
Virtual Machine. C++ programs can only run on the Oper...