Replies: 1 comment 2 replies
-
Hi @rujiel, there are some issues with your scenario:
if (context.vars.count === undefined)
context.vars.count = 0; this won't work because in your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a use case where I need to generate X number of directories containing Y number of files. In order to do this I have to pass an incrementing count into a function that I'm calling in a loop. But right now it looks like the "beforeRequest" and "afterRequest" methods are never called. As a result the count I am trying to feed into the js file is always undefined. Everything else is working properly though if I don't use any functions.
I'm using artillery version 1.7.6 with node version v14.17.0
Here is a simplified example. My artillery test file:
And the process.js script:
Beta Was this translation helpful? Give feedback.
All reactions