PNUnit Integration with BrowserStack.
- Download and install NUnit 2.6.4
- Run PNUnit agent
start pnunit-agent.exe agent.conf
- Clone the repo
- Open the solution
PNUnit-BrowserStack.sln
in Visual Studio - Build the solution
- Update
*.config.xml
files inside theconfig
directory with your BrowserStack Username and Access Key(https://www.browserstack.com/accounts/settings)
- To run a single test, run
pnunit-launcher.exe config\single.config.xml
- To run local tests, run
pnunit-launcher.exe config\local.config.xml
- To run parallel tests, run
pnunit-launcher.exe config\parallel.config.xml
Understand how many parallel sessions you need by using our Parallel Test Calculator
-
You can view your test results on the BrowserStack automate dashboard
-
To test on a different set of browsers, check out our platform configurator
-
You can export the environment variables for the Username and Access Key of your BrowserStack account
export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>