Artillery + Playwright: Login once using before #2279
Replies: 4 comments 18 replies
-
I'm also confused on how
|
Beta Was this translation helpful? Give feedback.
-
Alright figured this out, although there might be a cleaner way to do it. I'm using a My Artillery config:
My JS script:
|
Beta Was this translation helpful? Give feedback.
-
👋 You can now use Example of reusing authentication with Note: |
Beta Was this translation helpful? Give feedback.
-
Hello @priyankshivhare-mb , @alexandre-embie and others 👋 . This should now be fixed in Artillery v2.0.12. The example has been updated with the needed changes: https://github.com/artilleryio/artillery/tree/main/examples/browser-playwright-reuse-authentication |
Beta Was this translation helpful? Give feedback.
-
Hi, all! It's me again, your novice who is trying to use artillery + playwright.
I am using the Playwright engine with artillery and I am running into a scenario where I want to authenticate just once and then have all the vusers share that authenticated session. I tried a
before
but that did not seem to work.I also have my Playwright code using a setup method.
Any help would be much appreciated. I think I am missing something obvious.
Thank you for the help!
Beta Was this translation helpful? Give feedback.
All reactions