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:
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.