1

I need help to build data driven framework for WATIR Webdriver. Here my concern is, can we build data driven framework by reading data from excel in Watir-webdriver as we have option in Selenium+Testng framework

Can anyone help with this?

0

Frameworks like Selenium and Watir itself do not provide functions to get data from sources like Excel. They are designed to automate and drive web-browsers with method that simplify this process.

As with most automation frameworks you combine them with a programming language and a test-runner. For most programming language Excel reading libraries are available, for Ruby this would be something like spreadsheet read the example guide.

So your data driven test framework would combine all four: Watir, testrunner, Excel library and programming language.

As you are also using Cucumber I would also have a look at the follow SO post: https://stackoverflow.com/questions/20955361/importing-csv-as-test-data-in-cucumber

  • Nice explanation @Niels van Reijmersdal – Rad N Apr 21 '15 at 6:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.