-
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 smaple template for building testing framework using the page object model (POM) architecture. For the solution, we use Visual Studio 2017 community edition with C# and Selenium.
The framework supports the following test
- Navigate to Googlehome page
- Enter a search term
- Verify that we landed on the results page
Archtiecture of the Framework The framework consists of 3 visual studio projects.
- Pages: Model the application pages. Currently, we have 2 pages: GoogleHomepage and ResultsPage
- Tests: Allow the testers to write test cases that mimic the manual tests,using the business domain language
- Browser Library: Provides support for creating/closing browser instances, based on the various types.
The framework supports a data-driven approach. We use an Excel worksheet to read data and execute the test case for each row in the sheet. The test case is executed 6 times, once for browser.
- EDGE
- CHROME
- FIREFOX
- IE
- CHROME_HEADLESS
- FIREFOX_HEADLESS
Objectives
- How to start an automation framework using the pge object model
The solution has 3 projects. 1.