artillery-core icon indicating copy to clipboard operation
artillery-core copied to clipboard

Variables can now be grouped into sequences that can be used together

Open darrenlangley opened this issue 7 years ago • 0 comments

Variables can now be grouped into sequences that can be used together in a scenario.

PROBLEM: When you want a set of variables to be used together on requests. For example you have an auth header and xsrf token that are tied to a user and need them to go together. Currently the variables section uses lodash sample to randomly pick the value across the possible values.

CURRENT: Currently variables can be defined like this (where the value is pulled at random):

variables:
  xsrf: 
    - "dflfjsdlkjlwkwekkjlkjr"
    - "poipoiwerisdfsdf"
  auth:
    - "234rfewrew3243"
    - "765765dfgdf454"

SOLUTION: But also now like this:

variables:
  - 
    xsrf: "dflfjsdlkjlwkwekkjlkjr"
    auth: "234rfewrew3243"
  - 
    xsrf: "poipoiwerisdfsdf"
    auth: "765765dfgdf454"

Where auth and xsrf values are pulled out together in sets.

darrenlangley avatar Oct 03 '17 06:10 darrenlangley