Jmeter User-define Variables override in Taurus

938 views
Skip to first unread message

surendra matta

unread,
May 5, 2016, 10:48:42 AM5/5/16
to codename-taurus
Hi 

How to over-ride jmeter user define variable in Taurus and is there any way to define Loop Count as forever in Taurus.

Please let me know.

Regards,
Venkat

pri...@blazemeter.com

unread,
May 6, 2016, 7:42:08 AM5/6/16
to codename-taurus
Hello.

If you're using plain Taurus config (with no JMX), you can get infinite tests by not specifying `ramp-up`, `hold-for` and `iterations` execution settings.

However, it seems that you use JMX file. In this case, you can set loop count with `modifications` scenario-level section. Here's an example.
---
execution
:
- scenario:
    script
: script.jmx
    modifications
:
     
set-prop:
       
"Thread Group>ThreadGroup.main_controller>LoopController.continue_forever": "true"  # set loop count to 'Forever'
       
"Thread Group>ThreadGroup.scheduler": "false"  # disable scheduler that may limit test duration
        # where 'Thread Group' is the name of a ThreadGroup element in JMeter's test plan

Overriding variables works like that:
---
execution:
- scenario:
    script: script.jmx
    variables:
      varname: varvalue
When executing this configuration, Taurus will add additional 'User Defined Variables` block to JMX script, which will define additional variables (and override existing ones, if they were defined earler).


Dmitri
Reply all
Reply to author
Forward
0 new messages