My feature file is like this
Scenario Outline: I am able to log into application Given I have entered email address "<email>" and password "<password>" Then I am navigated to user homepage Examples: | email | password | | us...@gmail.com | qa1234 |My question:With this feature file I can login into app and do my tests but the login details must have to be changed each time before running test,
Instead If i there is a way to send testdata from external file where I can change it once and all feature files reading from that extenal file can use new login details
Things I have tried
- Use multiple lines of data in Examples
- Invoke a step and with step description start a method to read from excel file and then run tests by using it as data source
In simple I am looking for solution like this http://raveendran.wordpress.com/tag/data-driven-cucumber/ but for MAC
Thanks
Tej