TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver. This example demonstrates how to use NUnit to run a test in parallel across several browsers.
-
TestingBot Credentials
- Add your TestingBot Key and Secret as environmental variables. You can find these in the TestingBot Dashboard.
$ export TESTINGBOT_KEY=<your TestingBot Key> $ export TESTINGBOT_SECRET=<your TestingBot Secret>
-
Setup
- Clone the repo
-
Run tests
- Single test:
dotnet test --filter "Single"
- Paralle tests:
dotnet test --filter "Parallel"
(run 2 tests simultaneously) - DevTools (CDP) test:
dotnet test --filter "DevTools"
(runs a CDP test) - WebDriver BiDi test:
dotnet test --filter "BiDi"
- Single test:
Click Run Unit Tests, you will see the test result in the TestingBot Dashboard