You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update `config.json` files inside the `XUnit-BrowserStack` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
10
-
11
-
## Running your tests
12
-
* To run tests, run `dotnet test --filter "profile=parallel"`
13
-
* To run local tests, run `dotnet test --filter "profile=local"`
8
+
* Open the solution `XUnit-BrowserStack.sln` in Visual Studio
9
+
* Build the solution
10
+
* Update `browserstack.yml` file with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
11
+
### Running your tests from CLI
12
+
* To run the test suite having cross-platform with parallelization, dotnet test --filter "Category=sample-test"
13
+
* To run local tests, dotnet test --filter "Category=sample-local-test"
14
+
### Running your tests from Test Explorer
15
+
- To run a parallel tests, run test with fixture `sample-test`
16
+
- To run local tests, run test with fixture `sample-local-test`
14
17
15
18
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
16
19
20
+
## Integrate your test suite
21
+
22
+
This repository uses the BrowserStack SDK to run tests on BrowserStack. Follow the steps below to install the SDK in your test suite and run tests on BrowserStack:
23
+
24
+
* Create sample browserstack.yml file with the browserstack related capabilities with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) and place it in your root folder.
25
+
* Add nuget library BrowserStack.TestAdapter
26
+
```sh
27
+
dotnet add BrowserStack.TestAdapter
28
+
```
29
+
* Build project `dotnet build`
30
+
17
31
## Notes
18
32
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
19
33
* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/c-sharp#setting-os-and-browser)
0 commit comments