Overriding JMeter User Defined Variables

732 views
Skip to first unread message

goodm...@gmail.com

unread,
Feb 10, 2016, 9:50:33 AM2/10/16
to codename-taurus
I'm having trouble getting JMeter User Defined Variables overwritten.

In JMeter, I create a User Defined Variables Config Element and named it "ScenarioVars"
I added a 'loops' variable, and reference in my Jmeter Thread Group Loop Count as ${loops}

I want to override this variable in my Taurus scenario.

What am I doing wrong, or is this functionality supported?

The following "set-prop" is not working.

---
execution:
- scenario:
    modifications:
      set-prop:
        ScenarioVars>ScenarioVars.loops: '200'
    script: Login.jmx

Andrey Pokhilko

unread,
Feb 10, 2016, 10:04:05 AM2/10/16
to codenam...@googlegroups.com
You don't need modifications, just use "variables":

---
execution:
- scenario:
    variables:

      ScenarioVars>ScenarioVars.loops: '200'
    script: Login.jmx


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/af2efcb8-5dcf-4ead-b89d-275ac2d3eff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

goodm...@gmail.com

unread,
Feb 10, 2016, 11:22:18 AM2/10/16
to codename-taurus
Thank you!  This works, and I don't need the element overrides either.

execution:
- scenario:
    variables:
     loops: '200'
    script: Login.jmx
Reply all
Reply to author
Forward
0 new messages