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
Align with nunit-browserstack (Selenium) sample conventions:
- browserstack.yml: parallelsPerPlatform 2 -> 1, browserstackLocal false -> true
- Tag fixtures with [Category("sample-test")] / [Category("sample-local-test")]
so `dotnet test --filter "Category=..."` scopes the run (matches
nunit-browserstack/SampleTest.cs and SampleLocalTest.cs)
- README: swap FullyQualifiedName filters for Category= filters; drop the
now-redundant "flip the toggle" step; update parallelism narrative to ppp=1
(4 platforms x 1 x 2 NUnit-parallel fixtures = still 8 concurrent sessions)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: NunitPlaywrightBrowserstack.Tests/browserstack.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -64,18 +64,18 @@ platforms:
64
64
#
65
65
# Example 2 - If you have configured 1 platform and set `parallelsPerPlatform` as 5, a total of 5 (1 * 5) parallel threads will be used on BrowserStack
66
66
#
67
-
# This sample sets parallelsPerPlatform: 2 to demonstrate NUnit's fixture-level
67
+
# This sample sets parallelsPerPlatform: 1 to demonstrate NUnit's fixture-level
68
68
# parallelism on top of the SDK's per-platform fan-out: 4 platforms x 2 fixtures
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ This sample shows how to run [NUnit](https://nunit.org/) + [Playwright](https://
15
15
16
16
```sh
17
17
cd NunitPlaywrightBrowserstack.Tests
18
-
dotnet test --filter "FullyQualifiedName~BStackDemoCart"
18
+
dotnet test --filter "Category=sample-test"
19
19
```
20
20
21
21
The sample runs `BStackDemoCartTest` across all four platforms declared in `browserstack.yml` (Windows 11 / Chrome, macOS / WebKit, Windows 11 / Firefox, Windows 11 / Edge) in parallel.
@@ -24,7 +24,7 @@ Understand how many parallel sessions you need by using our [Parallel Test Calcu
24
24
25
25
### Testing a private host (BrowserStack Local)
26
26
27
-
If your app lives on `localhost`, a staging host, or behind a firewall, set `browserstackLocal: true` in `browserstack.yml` and run the local fixture:
27
+
If your app lives on `localhost`, a staging host, or behind a firewall, run the local fixture (`browserstackLocal: true`is already set in `browserstack.yml`):
28
28
29
29
```sh
30
30
# 1. Stand up a tiny static page locally on port 45454 (any HTTP server works)
@@ -36,11 +36,9 @@ cat > index.html <<'HTML'
36
36
HTML
37
37
python3 -m http.server 45454 &
38
38
39
-
# 2. Flip the toggle in browserstack.yml: browserstackLocal: true
40
-
41
-
# 3. Run the local fixture
39
+
# 2. Run the local fixture
42
40
cd ../NunitPlaywrightBrowserstack.Tests
43
-
dotnet test --filter "FullyQualifiedName~BStackLocalSample"
41
+
dotnet test --filter "Category=sample-local-test"
44
42
```
45
43
46
44
The SDK starts and stops the BrowserStack Local tunnel for you -- no manual binary download or lifecycle management. The cloud browser reaches your local server through `http://bs-local.com:<port>/`.
@@ -74,7 +72,7 @@ This sample stacks two layers of parallelism:
74
72
| SDK platform fan-out |`browserstack.yml` -> `platforms` + `parallelsPerPlatform`| The SDK spawns one NUnit run per `(platform x parallelsPerPlatform)` cell |
75
73
| NUnit fixture-level parallelism |`AssemblyInfo.cs` -> `[assembly: Parallelizable(ParallelScope.Fixtures)]`| Within each NUnit run, `[TestFixture]` classes execute concurrently |
76
74
77
-
With the shipped defaults (4 platforms x `parallelsPerPlatform: 2`, 2 fixtures: `BStackDemoCartTest` + `BStackLocalSampleTest`), a single `dotnet test` produces **up to 8 concurrent BrowserStack sessions**. Tune `parallelsPerPlatform` and `LevelOfParallelism` in `AssemblyInfo.cs` to match your BrowserStack plan.
75
+
With the shipped defaults (4 platforms x `parallelsPerPlatform: 1`, 2 fixtures: `BStackDemoCartTest` + `BStackLocalSampleTest` running in parallel via NUnit), a single `dotnet test` produces **up to 8 concurrent BrowserStack sessions**. Tune `parallelsPerPlatform` and `LevelOfParallelism` in `AssemblyInfo.cs` to match your BrowserStack plan.
0 commit comments