Per-thread variables for parallel jobs #3786
Replies: 3 comments 3 replies
-
|
Hi @PhilShaughnes :) If you're talking about running variations of the same Hurl file like in a matrix strategy, for now, you can create a Hurl template like Either way, we can have a debate about the need of having a new |
Beta Was this translation helpful? Give feedback.
-
|
If we had array variable |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, just my two cents. If you want to add a unique variable value per file you can use an [Options] section. For example, let's say we have three files:
The first option section in each file: Will declare a variable Will produces: Now in parallel Now, it you repeat this sequence |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to provide a variable that is unique or specified for each thread?
For example, say I am testing some jobs that require locking behavior:
https://url/job/namespaceWhere:
When running multiple jobs, this means I can't actually run tests against multiple namespaces simultaneously(e.g. namespace-one, namespace-two, namespace-three, etc) without wrapping hurl in
parallelor something similar.Ideally each file could have something like
POST https://url/job/test_{{SUFFIX}}and then I could specify
--job-variables SUFFIX="red,green,blue"or something (indicates run a max of 3 jobs)?Beta Was this translation helpful? Give feedback.
All reactions