This directory contains example scripts and dependencies for running automated Selenium tests on Sauce Labs using C#.
- Production-level framework doing web automation on desktop and mobile
.net
best practice
appium
visual
accessibility
cross-browser
parallel
- 👁🗨Visual e2e framework
.net
best practice
- 📱Real devices framework
.net
best practice
All examples are using .NET and Mstest unless specified
- Simple W3C Selenium test
.net
mstest
selenium4
- Accessibility Test
.net
mstest
- Selenium 4 New Features
.net
mstest
selenium4
- Quick start with Selenium
.net framework
- Parallel, cross-browser, NUnit, Selenium
.net framework
- Selenium W3C examples
.net framework
- CICD with Azure DevOps
.net framework
- Examples,Selenium,MsTest
.net framework
- Sauce Labs REST API
.net framework
- Set pass/fail status,Selenium,NUnit
.net framework
- Set pass/fail status,Selenium,MsTest
.net framework
- Visual E2E
.net
- Visual E2E
.net framework
- Front-end perf testing examples
.net framework
- Performance testing and nework throttling
.net framework
- Creating a shareable test url
- Mobile automation framework for native apps
.net
best practice
nunit
- 📱Mobile testing framework for web
.net
best practice
nunit
-
Emusim
- Web
- Native app
- Native app tests
- Legacy RDC ❗️Deprecated! Use Unified Platform
-
Real Devices
- Native App, IOS
- Native App, Android
- Specflow,MsTest in Parallel
- Download test assets from real devices
- Legacy RDC ❗️Deprecated! Use Unified Platform
Azure DevOps Sauce Labs Plugin does NOT work! You cannot view Sauce Labs videos inside of Azure DevOps. You need to go to saucelabs.com to view the test assets. You can add richer logging to your tests and add test asset links directly into the logs (but this is extra work).
How to configure Azure DevOps with Sauce Labs
Example task to run tests in Sauce
- task: DotNetCoreCLI@2
displayName: 'Run tests'
inputs:
command: test
projects: '**DotnetCore/Sauce.Demo/*.csproj'
arguments: '--configuration $(buildConfiguration) --filter TestCategory=desktop'
env:
SAUCE_USERNAME: $(sauceUsername)
SAUCE_ACCESS_KEY: $(sauceKey)
Coming soon...
How do different libraries parallelize tests?
MsTest | NUnit | xUnit | SpecFlow |
---|---|---|---|
Test method | Test class | Test class | Test class |