Document toolboxDocument toolbox

Configuring Jobs for Unit Testing

MettleCI's powerful Unit Test capability allows developer to conduct unit testing using authored, captured, or fabricated data without having to alter your DataStage job design.  Unit Tests are created, maintained, and monitored using the MettleCI Workbench.  Unit Tests are executed using the Windows-based DataStage Designer or browser-based DataStage Flow Designer.

In order to use the Unit Test Feature, you’ll need to add an Environment Variable to each DataStage job for which you wish to use automated unit testing

Enabling Unit Testing for a Job:

If you are unable to complete these steps because the $DM_ENABLE_UNIT_TESTING environment variable is not present, please follow these instructions to enable MettleCI Unit Testing for an existing DataStage project.

  1. In DataStage Designer, open the job you wish to enable unit testing for and open the Job Properties dialog:

     

  2. Open the “Parameters” tab and click “Add Environment Variable…”:

     

  3. Add “$DM_ENABLE_UNIT_TESTING” from the “MettleCI” section:

     

  4. Save the job. You will now be able to choose the Unit Testing Configuration when executing your job:

     

 

 

© 2015-2024 Data Migrators Pty Ltd.