Breadcrumbs

Manually Editing Unit Test Data

Once you’ve created your Unit Test the data files comprising your test specification are listed on the left of the Unit Test editor. Selecting each of these will display it on the right-hand pane of the editor in an Excel-like tabular view.

image-20191205-115350.png

Putting your mouse cursor over the ‘pencil’ icon next to each column header will tell you the datatype of that column.

image-20191205-115433.png

Values in the cells can be edited just like you would in Excel.

image-20191205-121015.png

New rows (or even columns, if you want to update your metadata) can be added using the editor’s right-click menu items.

image-20191205-121052.png

Columns with time-based datatypes can be edited by clicking the drop-down selector in each cell.

image-20191205-115745.png
image-20191205-115820.png

Authoring, intercepting, or uploading large volumes of test data will eventually prevent those data from being interactively edited using MettleCI Workbench’s Unit Test Editor. In these circumstances you will be presented with the following message:

image-20251105-231606.png

In this instance you can still edit the data file by exporting it to a CSV file (using the Export button on the Unit Test Editor toolbar), editing it using your favourite local CSV editor, such as Microsoft Excel, and then re-importing it using the More → Import button.