Skip to main content

Eclipse Plug-in for Generating and Executing Test Cases for Database Objects

An Eclipse plug-in capable of automatically generating JUnit and SQLUnit test cases for database objects.

Date Posted: December 11, 2008

alphaworks tab navigation


Update: February 27, 2009
Fixes to software include INOUT type parameters and VARBINARY data type. Added a step to the documentation to guide users to download JDBC drivers.

1. What databases does TC4DBO support?

TC4DBO supports IBM® DB2® UDB, Oracle, SQL Server, and Informix database.

2. What kinds of unit test frameworks does TC4DBO support?

TC4DBO supports JUnit and SQLUnit.

3. How do I create a TC4DBO project?

Create a Java™ project. Then right-click on the Java project and select Enable TC4DBO on the pop-up menu.

4. How do I generate unit test code?

5. How do I run generated SQLUnit test code?

We can use the ant task to run the SQLUnit test scripts. There are two ways to do this job:

The first way is to run the test case in WSAD:

— Dscript.name&=<script file name>

or

—Dscript.dir=<the folder which you want to run>

The second way is to run the ant task in cmd. You must first have put the path of ANT_HOME\bin into the Environment Variables. Then cd to the folder of build.xml, and run either of the following:

ant —Dscript.name&=<test script name>

—Dscript.dir&=<the folder that contains the scripts>

You can find the report in the output folder.

6. Where can I get more details about SQLUnit?

Please refer to SQLUnit User Guide.

Trademarks




Related technologies