Sample test case to demonstrate integration of a Specflow test on BrowserStack.
- Identify your BrowserStack username and access key from the BrowserStack Automate Dashboard and export them as environment variables using the below commands.
- For *nix based and Mac machines:
export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key> - For Windows:
set BROWSERSTACK_USERNAME=<browserstack-username> set BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
- For *nix based and Mac machines:
- You can view your test results on the BrowserStack Automate dashboard
- To test on a different set of browsers, check out our platform configurator
- Restore Nuget packages -
dotnet restore - Build the project -
dotnet msbuild - Run the test -
dotnet test