Skip to content

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

  1. Navigate to Googlehome page
  2. Enter a search term
  3. Verify that we landed on the results page

Archtiecture of the Framework The framework consists of 3 visual studio projects.

  1. Pages: Model the application pages. Currently, we have 2 pages: GoogleHomepage and ResultsPage
  2. Tests: Allow the testers to write test cases that mimic the manual tests,using the business domain language
  3. 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.

  1. EDGE
  2. CHROME
  3. FIREFOX
  4. IE
  5. CHROME_HEADLESS
  6. FIREFOX_HEADLESS

Objectives

  1. How to start an automation framework using the pge object model

The solution has 3 projects. 1.

Clone this wiki locally