Re: JMeter send double requests when configure proxy with authentication

2018-09-28 Thread Artem Fedorov
Hi Philippe I added simple test to my PR Artem On Wed, Sep 19, 2018 at 9:42 PM Philippe Mouawad wrote: > Hello Artem, > At minimum, we should have a JMX Test plan that allows testing all > combinations of an authentication using httpbin.org for example and some > java library that could play t

Re: JMeter send double requests when configure proxy with authentication

2018-09-19 Thread Philippe Mouawad
Hello Artem, At minimum, we should have a JMX Test plan that allows testing all combinations of an authentication using httpbin.org for example and some java library that could play the role of a proxy, I see the following cases but feel free to complete: - No proxy set - Global Proxy set at

Re: JMeter send double requests when configure proxy with authentication

2018-09-19 Thread Artem Fedorov
Hi Philippe I have very simple use case I configure squid proxy with authentication and I have jmx Test Plan that makes 3 HTTP Request. I attached jmx file and access log from squid. Is there any ways for create a JUnit test with the same scenario? Also I want to remove !isDynamicProxy(getProxyH

Re: JMeter send double requests when configure proxy with authentication

2018-09-16 Thread Philippe Mouawad
Thanks for last PR update. We'll merge it once 5.0 is released; But before, could you describe the use case met that made you see this issue ? Is the a possibility to provide a JMX Test plan that could be used as integration test ? and if possible a JUnit test ? Thanks On Sat, Sep 1, 2018 at 4:

Re: JMeter send double requests when configure proxy with authentication

2018-09-01 Thread Philippe Mouawad
Hello, Thanks for latest updates of PR. 1/ I would not use Object but AuthState instead. 2/ Shouldn't we use HTTPCLIENTS_CACHE_PER_THREAD_AND_HTTPCLIENTKEY and store AuthState there (transforming Pair to Triple)? This would be the case for a Thread representing a Virtual User. But it would not be

Re: JMeter send double requests when configure proxy with authentication

2018-08-29 Thread Artem Fedorov
Fixed. Regarding (HttpClientContext.PROXY_AUTH_STATE + this) I also have doubts: - minimal number of authstate, that we should store = Number of Requests in Test Plan. (each request can use own proxy). Does the AuthState is Thread Safe and we can share it between threads? I think no and it'll bet

Re: JMeter send double requests when configure proxy with authentication

2018-08-28 Thread Philippe Mouawad
Thank you Artem, I made a little comment on PR. Just to be sure I understand the PR: - You set HttpClientContext.PROXY_AUTH_STATE so that it is used if updated But is it correct to store it as: - "http.auth.proxy-scope" + this Because we'll end per Thread with : - Number of Reque

Re: JMeter send double requests when configure proxy with authentication

2018-08-27 Thread Artem Fedorov
Hi Philippe https://github.com/apache/jmeter/pull/397 Let's discuss the details in the PR Thanks, Artem On Sun, Aug 26, 2018 at 12:04 AM, Philippe Mouawad < philippe.moua...@gmail.com> wrote: > Hello Artem, > Go ahead and propose a patch or PR. > It will be a clearer base to discuss. > > Thank

Re: JMeter send double requests when configure proxy with authentication

2018-08-25 Thread Philippe Mouawad
Hello Artem, Go ahead and propose a patch or PR. It will be a clearer base to discuss. Thank you On Wed, Aug 22, 2018 at 10:56 AM Artem Fedorov wrote: > I work with the latest JMeter version from github > (revision f27c31590cf07bc8427663b62fc22d6d650b95af) > > I create a Thread Group with 1 loo

Re: JMeter send double requests when configure proxy with authentication

2018-08-22 Thread Artem Fedorov
I work with the latest JMeter version from github (revision f27c31590cf07bc8427663b62fc22d6d650b95af) I create a Thread Group with 1 loop and 1 user. This Thread Group contains View Results Tree (Listener) and HTTP Resuest (Sampler) Configuration of HTTP Sampler: testclass="HTTPSamplerP

Re: JMeter send double requests when configure proxy with authentication

2018-08-21 Thread Philippe Mouawad
Hello Artem, I am not sure to understand. Can you clarify with an example or reformulating what you mean by HTTP Request that use proxy with authentication. and also clarify what’s after that, it’s really not clear for me. Thank you On Tuesday, August 21, 2018, Artem Fedorov wrote: > HI All >

Re: JMeter send double requests when configure proxy with authentication

2018-08-21 Thread Philippe Bossu
Hello Artem, On what version of JMeter are you seing this ? Thanks On Tuesday, August 21, 2018, Artem Fedorov wrote: > HI All > > I configure HTTP Request that use proxy with authentication > > In proxy log I can see, that JMeter *always send 2 requests*: (I used > `squid` in tests) > > 153484

JMeter send double requests when configure proxy with authentication

2018-08-21 Thread Artem Fedorov
HI All I configure HTTP Request that use proxy with authentication In proxy log I can see, that JMeter *always send 2 requests*: (I used `squid` in tests) 1534844834.248 0 127.0.0.1 TCP_DENIED/407 4056 GET > http://blazedemo.com/ - HIER_NONE/- text/html > 1534844834.320 52 127.0.0.1 TC