jp@gc - Throughput Shaping Timer - Variables not evaluated

534 views
Skip to first unread message

Joe Weisblatt

unread,
Sep 1, 2016, 4:57:09 AM9/1/16
to jmeter-plugins
I'm using jp@gc - Throughput Shaping Timer and trying to use variables in the Start/End/Duration fields.
But I get:
ERROR - jmeter.testelement.property.AbstractProperty: Tried to parse a non-number string to an integer java.lang.NumberFormatException: For input string: "${variable}"

Are variables not permitted here?
Or am I doing something else wrong.

Variables are set via UDV Element at the top level of the test plan.
The Shaping Timer Element is within a Thread Group Element.

Thanks,
- joe w.

Andrey Pokhilko

unread,
Sep 1, 2016, 5:42:58 AM9/1/16
to jmeter-...@googlegroups.com

Hi,

The shaping timer is shared among threads, so it has no access to thread's variables. Switch into using global properties and ${__P()} function, it will work.

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages