This is a User Interface testing Framework using C#, .NET Core, xUnit, Specflow BDD test framework and Selenium WebDriver to test UltimateQA Practice site.
Selenium WebDriver is a collection of open source APIs which are used to automate the testing of a web application. Selenium WebDriver tool is used to automate web application testing to verify that it works as expected. It supports many browsers such as Firefox, Chrome, IE, and Safari. WebDriver is a web automation framework that allows you to execute your tests against different browsers. It also enables you to use a programming language in creating your test scripts. https://www.seleniumhq.org/projects/webdriver/
Use SpecFlow to define, manage and automatically execute human-readable acceptance tests in .NET projects. Writing easily understandable tests is a cornerstone of the BDD paradigm and also helps build up a living documentation of your system. https://specflow.org/
.NET Core 2.1
A free place to practice some scenarios like:
- Testing a large complicated page
- Work with simple HTML elements like buttons
- Fill out forms
- Automate an application that evolves over time
https://www.ultimateqa.com/automation/
Microsoft Visual Studio IDE is used to develop this Framework.
- Extensions => Manage Extensions => Search and Install SpecFlow for Visual Studio
- Build => Build Solution
- Test => Windows => Test Explorer => Run All
- Open Folder in File Explorer where you have the "UserInterfaceTesting.Framework.BarbaryLion.sln" file
- Open Command Prompt/Windows PowerShell
- Run "msbuild.exe"
- Make sure the 'PATH' of the "Environment Variables" is set for 'MSBuild'.
- PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\
- Open Folder in File Explorer: ..\UserInterfaceTesting.Framework.BarbaryLion\bin\Debug\netcoreapp2.1
- Open Command Prompt/Windows PowerShell
- Run "dotnet vstest UserInterfaceTesting.Framework.BarbaryLion.dll"