jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ari Heino <ext.ari.he...@tieto.com>
Subject Re: Need help using Restlet with JMeter
Date Thu, 25 Jun 2009 13:59:38 GMT



albert_newton wrote:
> 
> Thanks for the reply. I tried that before and that did not work. This is
> what I did:
> 
> Right clicked on the junit test name -> Run as -> Run Configurations
> Clicked on Arguments tab
> In the program arguments text box, I typed in:
> -Dhttp.proxyHost=127.0.0.1
> -Dhttp.proxyPort=8080
> 
> This did not work.
> 
> I even typed the above text into the VM arguments text box ( which is
> below
> the program arguments text box), but that still did not work.
> 
> Wonder why it does that, am I missing something?
> 
> 
> 
> On Thu, Jun 18, 2009 at 4:09 PM, Deepak Shetty <shettyd@gmail.com> wrote:
> 
>> you should be able to specify proxyHost and port in the Eclipse window
>> where
>> you run junit (there is a text box for system parameters - under where
>> you
>> can specify command line arguments
>>
>>  -Dhttp.proxyHost=*proxyhost*
>>    [-Dhttp.proxyPort=*portNumber*]
>>
>> regards
>> deepak
>>
>>
>> On Thu, Jun 18, 2009 at 12:18 PM, Whatis myname <myname.whatis@gmail.com
>> >wrote:
>>
>> > Hello,
>> > I am trying to make a client request through the proxy server for
>> Restlets,
>> > so that I can use the JMeter Proxy Server to record it and play back. I
>> was
>> > able to do some tweaking around to be able to do this for SOAP
>> requests,
>> > but
>> > am unable to find anything for Restlets. Does anyone have any idea how
>> to
>> > do
>> > this? I am running my rest application in Eclipse. Maybe some config
>> file
>> > that can be added in my project within eclipse, before I run the
>> junits?
>> >
>>
> 
> 
You need to add the used proxy to the used http client as well:

config.getProperties().put(ApacheHttpClientConfig.PROPERTY_PROXY_URI,
proxyUri);
-- 
View this message in context: http://www.nabble.com/Need-help-using-Restlet-with-JMeter-tp24099429p24203774.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message