Taurus blazemeter yml multiple scripts in single scenario

16 Views Asked by At

I want to know how to run multiple scripts in single scenario using Taurus Blazemeter inside of .yml configuration file.

Example:

scenarios:
  simple:
    script: someScript.jmx
    properties:
      hostname: localhost
      protocol: http
      port: 5017

What I want to do is something like this:

scenarios:
  simple:
    script: [someScript.jmx, otherScript.jmx]
    properties:
      hostname: localhost
      protocol: http
      port: 5017

I have seen people creating custom tags like !include but i don't want to create any custom tag, is there any way to do this?

1

There are 1 best solutions below

0
Ivan G On

I think you can only have one .jmx script under "script" tag, however you can have multiple scenarios under one execution.

Something like:

execution:
- scenario: Scenario1
- scenario: Scenario2
  

scenarios:
  Scenario1:
    requests: 
      - url: https://example.com
  Scenario2:
    requests:
      - url: https://blazedemo.com
      

Also JMeter Properties are defined differently in Taurus YAML:

modules:
  jmeter:
    properties:
      hostname: localhost
      protocol: http
      port: 5017