Playwright Browser Load testing lack of configuring dynamic browser context with Artillery #3373
MariaStadnik
started this conversation in
Artillery
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Artillery for browser load testing and am struggling with how to configure dynamic contexts for each test scenario. Specifically, I need to set extraHTTPHeader for my browser dynamically without hardcoding token values. I want each scenario to create its own context that includes a unique authorization token, so each test can authenticate individually.
Currently, I can't find a way to pass a new token for every scenario without embedding the token directly in the configuration. Is there a method in Artillery to dynamically generate or fetch tokens per scenario, or to set headers on a per-scenario basis before the browser context is created? I also don't want to store the hardcoded token value in my repository anywhere, so would like to utilize a mechanism of retrieving a token value dynamically via some js function.
Here is my Artillery yaml below:
Thanks for any help
Beta Was this translation helpful? Give feedback.
All reactions