In order to run the same test with different sets of data, you need to create a DataTable. There are three ways to create a DataTable in mabl:
- In the mabl app
- From a CSV file
- From test data-driven variables
Maximum number of scenarios
DataTables can have a maximum of 500 scenarios.
To create a new DataTable in the mabl app, take the following steps:
- Click on Configurations in the left-hand navigation.
- Navigate to the DataTables tab.
- Click on the + New Table button.
- Enter your data:
- To add variables, click on Add variable. Enter the variable name in the row header, then add the values for each scenario (row) below.
- To add a scenario, click on Add scenario. Enter the scenario name in the "Scenario name" column. Add the values for each variable in this scenario.
- Save the DataTable.
If your data resides in a spreadsheet, you can copy and paste the spreadsheet values into the table. The DataTable automatically expands to properly format the data.
File type must be CSV
Currently, CSV is the only supported file format for DataTables. Attempts to upload other file types as a DataTable result in the following error: "Unsupported file type."
The first row of the CSV is converted into DataTable variable names when imported into mabl. For example, if the following table were uploaded as a DataTable, the variables would be
|Iniciar sesión||Qué bueno verte de nuevo||Cerrar sesión|
You may define scenario names before uploading to mabl by adding a column called "scenario name" to your CSV file. This step is optional; you can also add scenario names after uploading the CSV file to the mabl app.
- Visit Configurations from the left-hand navigation.
- Click on the DataTables tab.
- Click on the Upload CSV button.
- Select the CSV file from your local machine that you'd like to add as a DataTable. The data from this CSV populates the table on the "Add new DataTable" page.
- If you did not add a "Scenario name" column to your CSV file, the "Scenario Names" column appears empty. You can add scenario names on the Add New DataTable page.
- Click the Save button.
If a test contains test data-driven variables, you can create a DataTable table from the Test Details page by clicking the Generate DataTable button.
Clicking on this button takes you to the Add New DataTable page, where you can add different scenarios to test.
Updated 4 months ago