https://github.com/testingbot/nunit-example
NUnit example for TestingBot
https://github.com/testingbot/nunit-example
nunit nunit3 nunit3testadapter
Last synced: about 1 month 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T11:58:58.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T19:17:38.145Z (about 1 year ago)
- Topics: nunit, nunit3, nunit3testadapter
- Language: C#
- Homepage: https://testingbot.com/support/getting-started/nunit.html
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- 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/)