You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/11/30 23:18:22 UTC

[Bug 60435] New: Cant specify proxy when running 'ant test'

https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

            Bug ID: 60435
           Summary: Cant specify proxy when running 'ant test'
           Product: JMeter
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: volcanic.ws@gmail.com
  Target Milestone: ---

Created attachment 34492
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34492&action=edit
Attached is a patch to build.xml to use the http(s) proxy settings if specified
when running the tests.

I was looking to build JMeter locally from source behind a corporate proxy.

After I set a proxy I could run 'ant download_jars'
set ANT_OPTS=-Dhttps.proxyHost=<interal-proxy> -Dhttps.proxyPort=3128
-Dhttp.proxyHost=<interal-proxy> -Dhttp.proxyPort=3128

But 'ant test' would not run properly due to the following types of error:

C:\jmeter\build.xml:2626: CSV Files are not identical.
        C:\jmeter\bin\testfiles\Bug52310.csv
        ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,200,OK,TG2 1-1,text,true
HTTP-Request-HC4,200,OK,TG2 1-1,text,true

        C:\jmeter\bin\Bug52310.csv
        ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,Non HTTP response code: java.net.ConnectException,Non HTTP
response message: Connection timed out:
 connect,TG2 1-1,text,false
HTTP-Request-HC4,Non HTTP response code: java.net.ConnectException,Non HTTP
response message: Connection timed out:
connect,TG2 1-1,text,false

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

--- Comment #2 from Cheyne <vo...@gmail.com> ---
I noticed  <property name="ant.version.required" value="1.9.1" /> in the build
script which is what I based the changes off.

I'm not too fussed when this goes in, it can be parked until a later version of
ant is available on travis-ci, as I can patch it locally for my build.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #34492|application/mbox            |text/plain
          mime type|                            |
  Attachment #34492|0                           |1
           is patch|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Thanks for your contribution.

A few notes to the patch. There seem to be a lot of white space change, that
makes it harder to see the differences. The patch uses features from ant 1.9.x,
but for the moment we have to use ant 1.8.x as that is the newest version
available on travis-ci.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

--- Comment #4 from Michael Osipov <19...@gmx.net> ---
(In reply to Michael Osipov from comment #3)
> I reported a similar issue today: Bug 60886
> 
> First of all, the proposed patch does not guarantee that HttpClient will
> pickup these properties because it is not URLConnection. Second, it still
> won't help because the DNS resolver tests use Google's 8.8.8.8 DNS server
> which requires UDP/outbound. This won't be handled by any HTTP proxy because
> it is TCP.

I must correct myself, a SOCKS5 proxy supports UDP as per definition, but I
highly doubt that one can hook that upto the DNS tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---


*** This bug has been marked as a duplicate of bug 60886 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Severity|trivial                     |enhancement
           Hardware|PC                          |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60435] Cant specify proxy when running 'ant test'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60435

--- Comment #3 from Michael Osipov <19...@gmx.net> ---
I reported a similar issue today: Bug 60886

First of all, the proposed patch does not guarantee that HttpClient will pickup
these properties because it is not URLConnection. Second, it still won't help
because the DNS resolver tests use Google's 8.8.8.8 DNS server which requires
UDP/outbound. This won't be handled by any HTTP proxy because it is TCP.

-- 
You are receiving this mail because:
You are the assignee for the bug.