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.
Multiple datasets can be added to the test using a CSV file. Use the following CSV format to prepare the file.
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.
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.
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.