On 16/04/2009, Zhihong Zhang <zhih...@gmail.com> wrote: > > I wrote a sampler for Oauth request. Everything works fine except one > problem. Because I have to change the property files, I include it in my > jar. Every time we upgrade Jmeter, I have to rebuild the JAR to include the > new property file. So the maintenance is not as easy I would like.
There is no need to use the JMeter properties file unless you want JMeter to resolve the properties for you. You could just use fixed strings, or you could use your own property file. > I asked about the solution. Someone suggested to use TestBean so I can have > my own property file. I did some research and found out this is not an easy > task. It is easy to write a new sampler. > The sampler is an extension to existing HTTP request. The control panel > looks like this, > > > http://www.flickr.com/photos/61249...@n00/3448590576/sizes/o/ > > As you can see, it heavily relies on HTTP sampler, which doesn¹t use > testbean. I don¹t want rewrite everything from scratch. This would be possible, but I agree it would require quite a lot of work. > I wonder if there are enough interests to include this plugin in Jmeter. If > so, I can contribute the code. I've never heard of OAuth before, and as far as I can remember no-one has asked about it. But feel free to create a Bugzilla enhancement issue. Note that we only accept code licenced under the Apache Licence, and any 3rd party library dependencies need to be available with a compatible licence. > If not, I wonder if someone can check-in my property file changes so I don¹t > have to overwrite it with mine. See above, that's not necessary. But we would not allow that anyway. > Thanks! > > Zhihong > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org