Regeneration of tokens during the artillery test run. #2326
Replies: 3 comments 3 replies
-
I have a similar issue. I don't want to run it for that long, but trying to execute a script through run-lambda, the setup takes so much time, that when the first call is done, I'm getting a "token expired" message. Our authentication remains for one hour through SSO login, and auto-renewal doesn't work :
|
Beta Was this translation helpful? Give feedback.
-
Hi @Mmallineni , Apologies, we missed this discussion at the time. When you say the access tokens you use, do you mean access tokens from the service you're trying to test? Artillery allows you to run custom javascript logic during the test, so you can always have something to refresh the token mid test if needed. |
Beta Was this translation helpful? Give feedback.
-
We just added an example for generating + refreshing VU auth tokens as a test is running: https://github.com/artilleryio/artillery/tree/main/examples/refresh-auth-token |
Beta Was this translation helpful? Give feedback.
-
The access tokens I use exprire in 24 hrs, I want to run a 72 hours long test. How is it possible ? I can regenrate the tokens while the test is in run and whether the test be able to pick them up?
Beta Was this translation helpful? Give feedback.
All reactions