Re: How to set system property within JMeter

2020-12-02 Thread Tong Sun
Yes, thanks a lot!

Re: How to set system property within JMeter

2020-12-01 Thread glin...@live.com
If this is *really* what you need - go for __groovy() function to call System.setProperty() method like: >

Re: How to set system property within JMeter

2020-12-01 Thread Tong Sun
On Tue, Dec 1, 2020 at 11:21 AM glin...@live.com wrote: > > You can set a JMeter Property via __setProperty() function > like: > > > > ${__setProperty(foo,bar,)} > > will create a JMeter property "foo" with the value of "bar"

Re: How to set system property within JMeter

2020-12-01 Thread glin...@live.com
You can set a JMeter Property via __setProperty() function like: > ${__setProperty(foo,bar,)} will create a JMeter property "foo" with the value of "bar" which you can read using __P() function

How to set system property within JMeter

2020-12-01 Thread Tong Sun
Hi, I need to set a system property programmatically *within* JMeter. How can I do that? in https://www.blazemeter.com/blog/apache-jmeter-properties-customization the Option 3 is to use JMeter __P, but It seems that I can only read system property from __P(), but cannot set it, correct? thx