Executing a DataStage test case¶
You can execute DataStage® test cases either from the CPD Cluster home page, the DataStage designer canvas, or the DataStage test case editor.
From the CPD Cluster home page¶
- Open an existing project and select the Jobs tab.
- Click the name of the test case you wish to invoke. This will display the job details panel.
- Click the Run job button in the job details toolbar to invoke the test.
- When the status icon shows your test has completed click the timestamp to see test results.
From the DataStage canvas¶
- Open an existing DataStage flow for which you have created a test case.
- Click the Test cases icon to open up the test cases side panel.
- Click the Run icon alongside the name of the test case you wish to invoke.
- When the status icon shows your test has completed click the timestamp to see test results.
From the DataStage test case editor¶
- Open an existing test case.
- Click the Run button on the toolbar to invoke your test.
- Click View result on the notification that appears when your job is complete.
Once your test is complete you should verify your test results.
Background¶
When DataStage executes your test case it will dynamically replace your flow's input stages at runtime with components which inject data from the relevant CSV data files into your job on the links specified in your test specification. Any source data repositories (files, databases, etc.) included in your test specification will not be connected to or read during a test case execution.
Similarly, your flow's output stage(s) will be replaced at runtime with components which read the incoming data and compare it to the relevant CSV data files containing the output expected on those links. Any differences are reported in the test results.