The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> JMeter

Pages: 1
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Not able to Bypass Proxy
      #695468 - 01/11/12 01:38 AM

Hi,

I am in a situation where i have a corporate proxy (http://pac.XXXXX.XXXXXXX/XXXX.pac ). It is a .pac file which runs on the port 80 and i have to load test a app over this proxy, but i am unable to configure jmeter to record the app.

I have gone through the posts in the forum the closest being http://www.sqaforums.com/printthread.php?Cat=0&Board=UBB54&main=568467&type=thread my situation is 90-95% same. but the solution here is not working for me .

Could you all help me resolve my problem ??

Thanks in advance


Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: tshankar123]
      #695479 - 01/11/12 03:51 AM

well i Have started the jmeter from the cmd prompt using the proxyhost,port,username and the password......Port : 80...

When i am trying to record the application under port 80 i am getting "Could not create proxy - port in use . choose another port" error.

(Note: 1. i have selected the pac file as my proxy which is set on port 80.
2. if i deselect the pac and select port 80 as my localhost i wont be able to browse internet.)

Question here is : Is there any way in which i can record script under the corporate proxy ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Susil
Junior Member


Reged: 03/19/04
Posts: 80
Loc: India
Re: Not able to Bypass Proxy [Re: tshankar123]
      #695855 - 01/16/12 01:19 AM

You should mention the proxy server name and not the pac file as your proxy.

--------------------
No one can see beyond their choice!


Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: Susil]
      #695857 - 01/16/12 01:34 AM

where do you think i should provide the Proxy server name for recording under the corporate proxy??? under the http proxy server i just have port name to be entered ... even if i provide the proxy server name in the properties of the Jmeter i need to provide the port no used in the HTTP Proxy Server(non test element). If the same port is entered in the HTTP Proxy Server(non test element) i will be getting "Could not create proxy - port in use . choose another port" error again....

can you suggest some solutions to this??


Post Extras: Print Post   Remind Me!   Notify Moderator  
Susil
Junior Member


Reged: 03/19/04
Posts: 80
Loc: India
Re: Not able to Bypass Proxy [Re: tshankar123]
      #695874 - 01/16/12 05:45 AM

Try launching jmeter using the below command from command prompt(http://jmeter.apache.org/usermanual/get-started.html#configuring_jmeter)

jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost

my.proxy.server - corporate proxy
followed by Proxy port
username/password are the NT credentials

--------------------
No one can see beyond their choice!


Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: Susil]
      #695971 - 01/17/12 03:50 AM

I have tried doing the same . I faced following error :

org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1593; received: 1585 at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178) at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:197) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:155) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1574) at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:228) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:281) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1018) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236)

I was trying to record Google behind the corporate Proxy. after the PAC authentication(Https) it navigates just to produce this error


Post Extras: Print Post   Remind Me!   Notify Moderator  
Susil
Junior Member


Reged: 03/19/04
Posts: 80
Loc: India
Re: Not able to Bypass Proxy [Re: tshankar123]
      #696022 - 01/17/12 10:13 AM

Can you print the command used for launching the jmeter?

Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: Susil]
      #696036 - 01/17/12 08:55 PM Attachment (54 downloads)

I used the following command to launch jmeter:

jmeter.bat -H <proxy ip> -P 80 -u <username> -a <password>

I was trying to record google.com behind the corporate proxy. I set the HttpProxyServer port to 9090 and changed the same in my IE.

Plz refer the attachment.


Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: tshankar123]
      #696037 - 01/17/12 08:57 PM Attachment (59 downloads)

Quote:

I used the following command to launch jmeter:

jmeter.bat -H <proxy ip> -P 80 -u <username> -a <password>

I was trying to record google.com behind the corporate proxy. I set the HttpProxyServer port to 9090 and changed the same in my IE.

Plz refer the attachment.




Post Extras: Print Post   Remind Me!   Notify Moderator  
Susil
Junior Member


Reged: 03/19/04
Posts: 80
Loc: India
Re: Not able to Bypass Proxy [Re: tshankar123]
      #696146 - 01/18/12 10:36 PM

In IE > LAN > Proxy settings, did you give localhost?

Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: Susil]
      #696148 - 01/18/12 10:50 PM

Yes i did!! i gave 9090 as the localhost (i dont know if doing that is right)....

well when i ran the jmeter test using the mannual test palns (not the recorded one) it worked over the proxy wall...

For me Recording the application under proxy is a problem where i am getting the error.

Thanks


Post Extras: Print Post   Remind Me!   Notify Moderator  
Susil
Junior Member


Reged: 03/19/04
Posts: 80
Loc: India
Re: Not able to Bypass Proxy [Re: tshankar123]
      #696159 - 01/19/12 12:22 AM

in IE, port should be 9090 or 8080, etc. Proxy address should be localhost.

Post Extras: Print Post   Remind Me!   Notify Moderator  
tshankar123
Newbie


Reged: 01/11/12
Posts: 8
Re: Not able to Bypass Proxy [Re: Susil]
      #696160 - 01/19/12 12:31 AM

yes i did the same ... It didnt work out for me...

i tried executing the manual test(HTTP REQUEST configured manually ) plans behind the Proxy it worked... But was not able to Record the same using HTTP PROXY SERVER...

(*capital letter used just to highlight the main points)


Post Extras: Print Post   Remind Me!   Notify Moderator  
harishrao
Newbie


Reged: 10/10/12
Posts: 2
Re: Not able to Bypass Proxy [Re: tshankar123]
      #717881 - 10/11/12 04:29 AM

Hi,

I am unable to record the sript with proxy server instead of localhost in browser options.

1) given proxy port in browser and port as 8080(If i give local host i can't access the internet, so can't navigate through)

2) same port in jmeter proxy server 8080

3)i am also opening the jmeter with -H proxy.port and -P port options.

providing proxy port in browser and same port in jmeter and browser, after starting and jmeter and navigating through script nothing is getting recorded.

can some one please suggest me the way to record.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Vivek_V
Member


Reged: 07/26/09
Posts: 104
Loc: India
Re: Not able to Bypass Proxy [Re: harishrao]
      #717931 - 10/12/12 12:03 AM

Quote:

3)i am also opening the jmeter with -H proxy.port and -P port options.





In addition to this, try specifying the username and password that you use to connect to the proxy server.

jmeter -H <proxy server name/ip> -P <proxy server port> -u <userid> -a <pwd>

--------------------
Cheers,
Vivek


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 6 anonymous users are browsing this forum.

Moderator:  icruiser, AJ 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4148

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5