Hi,
I'm wondering at what point does JMeter resolve all variables (or
parameters? :) ) stored in a User Defined Variables element?
I'm using serveral JMS samplers (point-to-point) and I'm using the same
timeout value for each one, so for convenience I would like to define it in a
User Defined Variables element and reference it in the Timeout field of the
JMS Sampler as ${timeout}.
The problem is that when the GUI stores the data to the test element, or it is
reloaded (i.e. once transfer() or configure() is called) the default timeout
value (2000) is stored in the test element and displayed in the GUI
I've debugged through it and the cause is that the getTimeout() method in
JMSSampler.java is trying to return the value as an int, but as in my case
timeout is ${timeout}, it is not resolved and the default value is returned
instead.
Is this a bug?
What can I do in the meantime to work around it? I see two approaches:
1. Modify getTimout() to return a string
2. Somehow resolve ${timeout} to its value
What are the ramifications of either of these approaches?
Thanks,
Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]