Heres the relevant documentation http://jmeter.apache.org/usermanual/component_reference.html#config_elements "Configuration elements can be used to set up defaults and variables for later use by samplers. Note that these elements are processed at the start of the scope in which they are found, i.e. before any samplers in the same scope." So if you are setting your properties in some sampler than for the first run it wont work , but it works for subsequent runs because the property remains set.
one option is use a setup threadgroup and set your properties there. On Fri, Dec 28, 2012 at 11:27 PM, Deepak Shetty <[email protected]> wrote: > Are you setting the property within your test plan? pass it to the plan as > a parameter or edit the user.properties file > On Dec 28, 2012 10:34 PM, "Dzmitry_Kashlach" <[email protected]> > wrote: > >> No, I get correct value, screenshot is attached. >> Besides, it happens only when I run test-plan for the first time after >> starting JMeter. If I re-run test-plan - everything is ok. So, I suppose, >> that correct value is applied, but after it is passed to JDBC Connection >> Configuration for the first time. >> <http://jmeter.512774.n5.nabble.com/file/n5715671/9.jpg> >> >> >> >> -- >> View this message in context: >> http://jmeter.512774.n5.nabble.com/How-to-cast-String-to-Integer-in-JMeter-tp5715669p5715671.html >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >>
