Repository navigation
Playwright + Artillery: Only first VU succeeds with auth when using storageState #3709
ramanpreetkaurbbsi
started this conversation in
Artillery
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m trying to set up load testing using Artillery with the Playwright engine, following the official documentation. However, I’m running into an issue where authentication only works for the first virtual user (VU), and all subsequent VUs fail.
What I’m doing
I authenticate once in a before hook (loginAndSave)
I save the session using storageState into a JSON file (./auth/user.json)
I reuse that storage state in my test scenario
Issue
The first VU is able to successfully authenticate and proceed
All other VUs fail authentication
my yml file:
any guidance would be really helpful.
All reactions