Data Driven Testing (DDT) is to verify many different test cases by driving the test from an external data source instead of using the same hard-coded values each time the test runs. This way, you can test how the application handles various input without having a lot of similar tests that only have different data sets. SOFTWARE REQUIREMENTS: Windows 7 as OS Microsoft Visual Studio 2010 as IDE NUnit as Unit Testing Tool Selenium as a Test Automation Tool Microsoft Excel as External Data Source SET-UP INSTRUCTIONS: Refer my previous blog on set-up instructions. TEST SCENARIO: As an end user, I would like to visit the google search page And then I would like to search an item so that I can view the search results TEST EXECUTION INSTRUCTIONS: Create a sample spreadsheet using MS Excel and add some search text that needs to be searched. Copy and paste the code snippet below into your Visual Studio 2010. Add the reference to Microsoft.Office.Interop.Excel using .Net tab in the 'Add Reference' window.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

Agile,C#,Selenium,Test Automation,NUnit,Visual Studio