Refactor – Convert to Data Driven Test

Data Driven Testing

One of the major advantages of test automation is to reduce the cost of testing for those tests that are either impossible or cumbersome to perform by manual testing. Data driven testing allows you to use a single script and create multiple tests out of this by accepting data from an external source – CSV file.

Create multiple tests from a single script

MarathonITE allows you to execute a test script with some parts(or all) of input and expected values from a CSV file. With this feature, you can broaden your test coverage.

With MarathonITE DDT feature, you can create reusable test scripts that perform the same operations, but with different inputs and expected values.

Use MarathonITE to convert a test script to a data driven test

Marathonite Data Driven Test refactoring

You can convert a regular test script into a data driven test by using MarathonITE’s data driven test refactoring. Just select the refactoring from the menu and select the inputs and expected values from the test script that need to be provided externally.

If the CSV file contains a column named marathon_test_name, MarathonITE uses that to name the test case.

Use MarathonITE‘s inbuilt CSV editor to quickly create test data

Marathonite CSV Editor

MarathonITE includes a simple editor for editing CSV files. Use it to quickly enter data for various cases.