https://github.com/testingbot/nunit-example
NUnit example for TestingBot
https://github.com/testingbot/nunit-example
nunit nunit3 nunit3testadapter
Last synced: 22 days ago
JSON representation
NUnit example for TestingBot
- Host: GitHub
- URL: https://github.com/testingbot/nunit-example
- Owner: testingbot
- Created: 2022-07-20T12:14:20.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-30T06:46:04.000Z (11 months ago)
- Last Synced: 2026-03-29T07:39:37.524Z (about 2 months ago)
- Topics: nunit, nunit3, nunit3testadapter
- Language: C#
- Homepage: https://testingbot.com/support/web-automate/selenium/csharp/nunit
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/testingbot/nunit-example/actions/workflows/test.yml)
## TestingBot - NUnit
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.
### Environment Setup
1. TestingBot Credentials
* Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members/).
```
$ export TESTINGBOT_KEY=
$ export TESTINGBOT_SECRET=
```
2. Setup
* Clone the repo
3. 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"`
### Running your tests from Test Explorer via NUnit Test Adapter
Click Run Unit Tests, you will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)
### Resources
##### [TestingBot Documentation](hhttps://testingbot.com/support/web-automate/selenium/csharp/nunit)
##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [NUnit Documentation](https://nunit.org/)