Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright improvements #3495

Merged
merged 2 commits into from
Mar 6, 2025
Merged

Playwright improvements #3495

merged 2 commits into from
Mar 6, 2025

Conversation

hassy
Copy link
Member

@hassy hassy commented Mar 6, 2025

Description

  • Update a Playwright TypeScript example to show how to use a before hook
  • Disable worker threads for Playwright tests:
    • Fixes/avoids current issue of load tests written in TypeScript not respecting phases config. Because each worker re-imports the script, the original phase configuration is preserved, which leads to the load being multiplied rather than distrubuted.
    • There's no performance benefit to multiple threads in this case anyway because the actual work will happen in an external Chrome process

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

  • Does this require an update to the docs? No
  • Does this require a changelog entry? Yes

@hassy hassy changed the title Feat/playwright improvements Playwright improvements Mar 6, 2025
@hassy hassy merged commit 9ea1688 into main Mar 6, 2025
42 checks passed
@hassy hassy deleted the feat/playwright-improvements branch March 6, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant