Using test datasets

Datasets provide a way to define data for data-driven testing by using the test parameters. It provides a way to test the application thoroughly by running a test in different environments and validates whether the application performs correctly for different input values.

Add a test dataset

  1. Click on the Datasets link in the Parameters panel.
  2. A new test page on the useMango™ application website displays test details and contains Datasets section.
  3. Click on the Datasets section to view existing test datasets.
  4. Click on Add Dataset button to add a new dataset and define data for testing.

Import datasets

Multiple datasets can be added to the test using a CSV file. Use the following CSV format to prepare the file.

  1. The header row should include individual columns with the names of the test parameters.
  2. Subsequent rows should contain the corresponding values for each dataset.

By default, dataset names will be automatically generated by useMango™.

For instance, if a test includes input parameters such as name and age, employ the following CSV format:

To specify the dataset names:

Include a column named datasetname in the header row to provide the intended dataset name. Rest of the format remains the same as mentioned above. The CSV format would resemble the example below if dataset names were to be provided:

If both text and table parameters are present, the imported csv will only populate the text parameters for each dataset. The table parameters will be set to empty values, which you can update later.

Edit a test dataset

  1. On the useMango™ application website, click on the Datasets section on the test page.
  2. Double click on the dataset name or parameters values to edit the dataset.
  3. Press ENTER or TAB key to save changes.

To edit a Table dataset parameter, refer to the Data Types in useMango™ page.

To edit dataset table values the table parameter should have a default table value. Additionally, the tables you add should have the same structure as the default table.

Delete a test dataset

  1. On the useMango™ application website, click on the Datasets section on the test page.
  2. Select a dataset to delete by using the checkbox.
  3. Click Delete Datasets to delete a test dataset.

During the test execution, a test dataset is chosen, and the useMango™ application uses the data provided for that dataset as inputs for test execution. The test execution report includes dataset details using which the test was executed.