c1e1f74557
Co-authored-by: Copilot <copilot@github.com>
stress-test-01
C# .NET console app that launches 20 Playwright Chromium instances, navigates to the deployed URL, and clicks a button every 200ms.
Defaults
- URL: prompted from user input every run
- Instances:
20 - Interval:
200ms - Button selector:
button:visible(first match) - Headless:
true
Run
cd Testing/stress-test-01
dotnet restore
dotnet build
./bin/Debug/net10.0/.playwright/node/linux-x64/node ./bin/Debug/net10.0/.playwright/package/cli.js install chromium
dotnet run
PowerShell alternative:
pwsh bin/Debug/net10.0/playwright.ps1 install chromium
The app will prompt:
Enter target URL:
Optional overrides
Use either environment variables or CLI args:
INSTANCE_COUNTor--instances=<value>CLICK_INTERVAL_MSor--intervalms=<value>BUTTON_SELECTORor--selector=<value>HEADLESSor--headless=<true|false>
Example:
INSTANCE_COUNT=20 CLICK_INTERVAL_MS=200 dotnet run