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
assert_p("Radio Two", "Component.Selected", "false")
select("Radio Two", $radio_two_value)
assert_p("Radio Two", "Component.Selected", "true")
assert_p("Radio Two", "Type", "JRadioButton")
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
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 includes a simple editor for editing CSV files. Use it to quickly enter data for various cases.