INFORMIX
DataBlade Developers Kit User's Guide
Chapter 9: Testing and Debugging DataBlade Modules on Windows
Home Contents Index Master Index New Book

Testing DataBlade Modules

When you generate functional tests, BladeSmith creates a set of files that include shell scripts and SQL scripts for testing extended data types, user-defined routines, and casts. By default, these files are created in the functest subdirectory of the directory containing the BladeSmith project file.

Functional tests are generated only for the DataBlade module objects for which you enter test data in your BladeSmith project. See Chapter 3, "Using BladeSmith," for information about entering test data.

The test scripts are created to run in a UNIX shell; therefore, you must install a UNIX-compatible toolkit on your Windows computer: for example, MKS Toolkit. For information about functional tests, see "Functional Test Overview".

Testing a DataBlade module is usually an iterative process, repeated several times until the code passes all the tests. The testing process has the following general steps:

    1. Build the project.bld file (if necessary).

    2. Install the project.bld file and the contents of the scripts directory into the %INFORMIXDIR%\extend\project directory.

    3. Set the attributes of the project.bld file as read-only so that it can be loaded by the Informix database server. If the project.bld file is not read-only, the database server issues an "unable to load function" message in the online.log file.

    4. Start your Informix database server from the Services application in the Control Panel. Do not start the Informix messaging service; it is started automatically by the database server.

    See INFORMIX-Universal Server Administrator's Supplement for Windows NT for more information.

    5. Create a test database.

    See the DB-Access User Manual for more information.

    6. If you are replacing an existing project.bld file, shut down and restart the database server from the Services application in the Control Panel.

    7. Register the DataBlade module, using BladeManager (if necessary).

    8. Execute the functional tests from a UNIX shell using MKS Toolkit.

    9. Edit the source code (if necessary).

    10. Regenerate tests in BladeSmith if you change any of your test data. If you change the definition of any of your DataBlade module objects, regenerate source code and tests in BladeSmith.

    11. Repeat the procedure, as necessary.




DataBlade Developers Kit User's Guide, version 3.6
Copyright © 1998, Informix Software, Inc. All rights reserved.