Perform functional test data

You can perform functional tests on your DataBlade® module routines by using the functional tests generated by BladeSmith. You must enter test data for functional tests in BladeSmith. You run functional tests on UNIX™, or you run them on Windows™ by using a toolkit that is compatible with UNIX, such as MKS Toolkit.

Tip: You can also generate unit tests, which run on Windows with the DBDK Visual C++ Add-In.

You can add functional test data for opaque type support routines, user-defined routines, and cast support functions. Using the test data you enter, BladeSmith generates a functional test for each routine. BladeSmith creates UNIX shell scripts and SQL scripts to create test tables in a database, populate them with your test data, and run SQL scripts that execute the DataBlade module routines.

BladeSmith generates functional tests for an object only if you enter test data for it. You must regenerate functional tests whenever you add test data to update the functional test scripts.

To enter test data for an object, select the object and choose Edit > Gather Test Data.

The following sections describe the test data you enter in BladeSmith.