QA Deploy (fake):
Verify QA Ubuntu:
Verify QA Windows:
This is the reference repository for the following blog posts on swimburger.net:
- How to UI test using Selenium and .NET Core on Windows, Ubuntu, and maybe MacOS? 🤷♀️🤷♂️
- How to run .NET Core Selenium UI tests on Azure DevOps Pipelines Windows/Ubuntu agents? 🚀
- .NET Core SDK (2.2)
- Windows, Linux, or MacOS dev machine
- Chrome/Chromium web browser
- Chrome WebDriver (make sure the driver version matches the browser version)
To run the tests, use dotnet cli with the settings parameter pointing to .runsettings.
cd Demo.SeleniumTests
dotnet test -s .runsettings
The .runsettings allows you to specify test parameters, in this case webAppUrl
and headless
.
On a shell only OS (no gui), you'll need to use headless.