-
Notifications
You must be signed in to change notification settings - Fork 3
A Data Driven Selenium Framework Using Visual Studio 2017 and C#
mfaci2000 edited this page Jan 17, 2018
·
4 revisions
This project provides a sample for building a testing framework using the page object model (POM) architecture. The framework supports a data-driven approach. We use an Excel worksheet (XLSX) to read data and execute the test case for each row in the sheet.
For this work, we use Visual Studio 2017 community edition with C# and Selenium.
The framework supports the following test case.
- Navigate to Google home page
- Enter a search term
- Click the search button
- Verify that we landed on the results page
Architecture of the Framework The framework consists of 3 Visual Studio projects.
- Pages: This project models the application pages. Currently, we have 2 pages: GoogleHomePage and ResultsPage
- Tests: This project allows testers to write test cases that mimic the manual tests, using the business domain language
- Browser Library: This project provides support for creating/closing browser instances, based on the various types
The test case is executed 6 times, once for browser.
- EDGE
- CHROME
- FIREFOX
- IE
- CHROME_HEADLESS
- FIREFOX_HEADLESS