Editing a DataStage test case
You can edit test cases in DataStage® both on the project page or directly in the design canvas.
To edit a DataStage test case on the project page, open the and click the test case that you want to edit.
To edit a DataStage test case from the canvas level, open an existing DataStage flow and click Test cases icon to open the side panel where you can click the test case to edit.
In the test case editor, you can inspect and modify your test case specification and edit the contents of your input and output test data files.

Editing the test case specification
To edit the test case specification, in the Data tab, open the Specification section.
In the Test data in use tab, you can find each data file that is referenced in you JSON specification. For more information about specification's format and options that are available for you to control how does your test case behave, see DataStage specification format.
Editing test data
- Undo/redo of editing actions with the traditional keyboard shortcuts
- Values that are entered into a cell are validated based on the column's metadata definition. Invalid data is highlighted in red.
- You can add or delete rows by selecting Add row or Delete icon.
- You can add or delete columns by selecting Add column or Delete column icon.

Modifying test data outside of the DataStage interface
- Open the More options tab and click Download.
- Modify the local file name as required and click Download.
Managing test cases
- Rename a test case
- Rename your test case by moving your pointer over the test case name and clicking the Edit icon.
- Delete a test case
- Delete your test case by clicking the Delete button.
- Save changes
- Store your changes by clicking the Save button on the editor toolbar.
- Export a test case
- Export your test case to a .zip file by clicking the Export icon on the test case toolbar and then the Download button. This export does not contain test data.
Test case settings
- Use Historic record storage to specify the number of historical test results you want to retain. This can be specified with either the number of days or the number of runs.
- Use Schedule option to specify the date and time when you want your test case job to run automatically. You can specify the frequency with which the job should be re-executed.