Skip to content

Scenarios

bboron86 edited this page Sep 25, 2018 · 2 revisions

Scenarios group and orchestrate different actions. They may also override actions' parameters by redefining them. All actions defined in one scenario are executed synchronously (in the order of definition) whereas multiple scenarios run in parallel.

Load Testing

Scenarios may also be used to run the same actions' set multiple times with different variables. For this to work they must define loadFactor and loadVariables properties. The former defines how often actions defined for the scenarios will be executed while the latter defines which values should be injected in each run.

    Example: 
    if an Action 'A' defines a property 'p: 0' and there is a scenario 'S' based on the execution of 'A'
    having set 'loadFactor: 3' and 'loadVariables: { p: [1,2,3] }' the actual execution will be like:
    - A-1 (p: 1)
    - A-2 (p: 2)
    - A-3 (p: 3)
    (The actions will be called 3 times injecting each time different value (as defined in the 'loadVariables') to 
    the property 'p')