You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ramesh_Tester <ko...@polaris.co.in> on 2006/04/03 23:51:40 UTC
Not able to record with HTTP Proxy Server
Hi All,
I am new to this group and I am exploring Jmeter(2.1.1) as part of Load
Testing on Java based component Testing.
I am not able to record my Web application with HTTP Proxy Server recording.
I followed all the steps in the "jmeter_proxy_step_by_step.pdf".
My web application is a http application.
Steps I had followed are:
1) Add aThread group to Test Plan.
2) Add HTTP Request Default to Thread group
Filled details as below
Protocol: HTTP
Server Name or IP: jakarta.apache.org
Port No : 80
3) Added Http Proxy Server to Work Bench
Filled details as below
Port 9090
Target Controller Test PLan> Thread Group
Grouping : Do not group Samplers
Patterns to Include : .*
I have been to IE v 6.0.XXX.XXX. ( internet Options--> Connections--> Lan
Settings).
Selected Use proxy Server for Lan
Address: 172.22.81.148 Port : 9090
After this. I had clicked on Start button in HTTP Proxy Server
Started a new IE session( home Page blank).
Browsed through my application.
Jmeter does not record any thing under test plan.?.
Let me know where am I missing?
Thanx
Ramesh
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3734603
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
UnknownHostException: jakarta.apache.org
This is a DNS problem - JMeter cannot find the IP address.
You probably need to contact your local IT support to resolve this.
Or just use the IP address.
S.
On 04/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Hi ,
>
> I started Jmeter with jmeter -H proxyhost -P proxyport and I got the
> recording from Jmeter to my Intrane tsites.
> My goal is to test the intranet applications and as of now I am able to
> record my intranet applications.
> Thanx for that.
> When I tried to record internet sites like jakara..., google
> I get the following exception in browser
>
> java.net.UnknownHostException: jakarta.apache.org at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at
> java.net.Socket.connect(Socket.java:478) at
> java.net.Socket.connect(Socket.java:428) at
> sun.net.NetworkClient.doConnect(NetworkClient.java:158) at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:646) at
> sun.net.www.http.HttpClient.(HttpClient.java:336) at
> sun.net.www.http.HttpClient.(HttpClient.java:297) at
> sun.net.www.http.HttpClient.New(HttpClient.java:369) at
> sun.net.www.http.HttpClient.New(HttpClient.java:350) at
> sun.net.www.http.HttpClient.New(HttpClient.java:345) at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:562)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:539)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514)
> at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
>
>
> --
> View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3747989
> Sent from the JMeter - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by ramesh_Tester <ko...@polaris.co.in>.
Hi ,
I started Jmeter with jmeter -H proxyhost -P proxyport and I got the
recording from Jmeter to my Intrane tsites.
My goal is to test the intranet applications and as of now I am able to
record my intranet applications.
Thanx for that.
When I tried to record internet sites like jakara..., google
I get the following exception in browser
java.net.UnknownHostException: jakarta.apache.org at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at
java.net.Socket.connect(Socket.java:478) at
java.net.Socket.connect(Socket.java:428) at
sun.net.NetworkClient.doConnect(NetworkClient.java:158) at
sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at
sun.net.www.http.HttpClient.openServer(HttpClient.java:646) at
sun.net.www.http.HttpClient.(HttpClient.java:336) at
sun.net.www.http.HttpClient.(HttpClient.java:297) at
sun.net.www.http.HttpClient.New(HttpClient.java:369) at
sun.net.www.http.HttpClient.New(HttpClient.java:350) at
sun.net.www.http.HttpClient.New(HttpClient.java:345) at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:562)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:539)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3747989
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by Simon <sd...@gmail.com>.
maybe you have enable the cache in the browser. you must disable cache
settings.
Simon
2006/4/3, sebb <se...@gmail.com>:
>
> On 04/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
> >
> > Hi Sebb,
> > In my Browser Internet Options: Lansettings
> > I have Use automatic configuration Script
> > And I had a .pac file which has the proxy information in it.
> > I unchecked that option .
> >
> >
> > I returned to Jmeter Http Proxy Server and clicked on the Start button
> >
> >
> > Now I get following exception in the browser.
> >
> >
> > java.net.UnknownHostException: jakarta.apache.org at
> > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at
> > java.net.Socket.connect(Socket.java:478) at
> > java.net.Socket.connect(Socket.java:428) at
> > sun.net.NetworkClient.doConnect(NetworkClient.java:158) at
> > sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at
> > sun.net.www.http.HttpClient.openServer(HttpClient.java:646) at
> > sun.net.www.http.HttpClient.(HttpClient.java:336) at
> > sun.net.www.http.HttpClient.(HttpClient.java:297) at
> > sun.net.www.http.HttpClient.New(HttpClient.java:369) at
> > sun.net.www.http.HttpClient.New(HttpClient.java:350) at
> > sun.net.www.http.HttpClient.New(HttpClient.java:345) at
> > sun.net.www.protocol.http.HttpURLConnection.plainConnect(
> HttpURLConnection.java:562)
> > at
> > sun.net.www.protocol.http.HttpURLConnection.connect(
> HttpURLConnection.java:539)
> > at
> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(
> HTTPSampler.java:424)
> > at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
> HTTPSamplerBase.java:514)
> > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
> >
> >
> > Note: My Jmeter Http Proxy is recording the error pages.
> >
> > How can I browse with this settings??
> >
>
> Sounds like you are behind a firewall proxy.
>
> You will need to find out the proxy host and port details, and then
> start JMeter with these defined:
>
> jmeter -H proxyhost -P proxyport
>
> S
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
On 04/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Hi Sebb,
> In my Browser Internet Options: Lansettings
> I have Use automatic configuration Script
> And I had a .pac file which has the proxy information in it.
> I unchecked that option .
>
>
> I returned to Jmeter Http Proxy Server and clicked on the Start button
>
>
> Now I get following exception in the browser.
>
>
> java.net.UnknownHostException: jakarta.apache.org at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at
> java.net.Socket.connect(Socket.java:478) at
> java.net.Socket.connect(Socket.java:428) at
> sun.net.NetworkClient.doConnect(NetworkClient.java:158) at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:646) at
> sun.net.www.http.HttpClient.(HttpClient.java:336) at
> sun.net.www.http.HttpClient.(HttpClient.java:297) at
> sun.net.www.http.HttpClient.New(HttpClient.java:369) at
> sun.net.www.http.HttpClient.New(HttpClient.java:350) at
> sun.net.www.http.HttpClient.New(HttpClient.java:345) at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:562)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:539)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514)
> at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
>
>
> Note: My Jmeter Http Proxy is recording the error pages.
>
> How can I browse with this settings??
>
Sounds like you are behind a firewall proxy.
You will need to find out the proxy host and port details, and then
start JMeter with these defined:
jmeter -H proxyhost -P proxyport
S
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by ramesh_Tester <ko...@polaris.co.in>.
Hi Sebb,
In my Browser Internet Options: Lansettings
I have Use automatic configuration Script
And I had a .pac file which has the proxy information in it.
I unchecked that option .
I returned to Jmeter Http Proxy Server and clicked on the Start button
Now I get following exception in the browser.
java.net.UnknownHostException: jakarta.apache.org at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at
java.net.Socket.connect(Socket.java:478) at
java.net.Socket.connect(Socket.java:428) at
sun.net.NetworkClient.doConnect(NetworkClient.java:158) at
sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at
sun.net.www.http.HttpClient.openServer(HttpClient.java:646) at
sun.net.www.http.HttpClient.(HttpClient.java:336) at
sun.net.www.http.HttpClient.(HttpClient.java:297) at
sun.net.www.http.HttpClient.New(HttpClient.java:369) at
sun.net.www.http.HttpClient.New(HttpClient.java:350) at
sun.net.www.http.HttpClient.New(HttpClient.java:345) at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:562)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:539)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
Note: My Jmeter Http Proxy is recording the error pages.
How can I browse with this settings??
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3736124
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
On 04/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Hi Sebb,
> "Dosent work " I meant Jmeter does not record the Navigation but I am able
> to navigate in browser.
>
>
> I have gone to Internet Options :- General-->Temporary Internet files-->
> Settings
> I have selected Every Visit to the page.( for disabling Cache)
>
> I have come to Jmeter: Http Proxy Server.
> clicked on the Start button.
> Browsed Jakarta site
> Jmeter did not record any actions that I made in my browser
>
> After that I clicked on "Stop" button Jmeter: Http Proxy Server.
> Even now I am able to go to links in the Jakarta Site.
That means the proxy is not being used.
I've just followed the instructions myself, and it worked fine.
Beware that the suggested Include pattern means that pages called
.asp, .htm, .cgi etc will not be recorded.
> Let me know where is the issue.
See above
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by ramesh_Tester <ko...@polaris.co.in>.
Hi Sebb,
"Dosent work " I meant Jmeter does not record the Navigation but I am able
to navigate in browser.
I have gone to Internet Options :- General-->Temporary Internet files-->
Settings
I have selected Every Visit to the page.( for disabling Cache)
I have come to Jmeter: Http Proxy Server.
clicked on the Start button.
Browsed Jakarta site
Jmeter did not record any actions that I made in my browser
After that I clicked on "Stop" button Jmeter: Http Proxy Server.
Even now I am able to go to links in the Jakarta Site.
Let me know where is the issue.
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3735912
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
When you say "doesn't work", what do you mean?
Does the browser show the correct page?
If so, what happens if you stop the proxy?
Does the browser still show the correct page?
If so, it's not using the proxy.
Make sure you switch off caching in the browser.
S.
On 04/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Hi Sebb,
> I have Unchecked "ByPass proxy Server for Local Address".
> Tried and this dosent work,
>
> I clicked on the "Advanced " button and I gave proxy as LocalHost and Port
> as 9090 for all the Server Types.
>
> Still this dosent work.
> --
> View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3735662
> Sent from the JMeter - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by ramesh_Tester <ko...@polaris.co.in>.
Hi Sebb,
I have Unchecked "ByPass proxy Server for Local Address".
Tried and this dosent work,
I clicked on the "Advanced " button and I gave proxy as LocalHost and Port
as 9090 for all the Server Types.
Still this dosent work.
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3735662
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
Make sure you have NOT checked "Bypass proxy server for local
addresses" otherwise IE will not use the proxy server.
S.
On 03/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Seb, thanx for the quick respone
>
> 1) In IE internet options I have tried with "localhost" , this did not work.
> So I have given my IPAddress .
> I tired adding cookie manager under workbench and I am not able to record .
> Can I get some more Inoputs .
>
> Tahnx
> Ramesh
> --
> View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3735227
> Sent from the JMeter - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by ramesh_Tester <ko...@polaris.co.in>.
Seb, thanx for the quick respone
1) In IE internet options I have tried with "localhost" , this did not work.
So I have given my IPAddress .
I tired adding cookie manager under workbench and I am not able to record .
Can I get some more Inoputs .
Tahnx
Ramesh
--
View this message in context: http://www.nabble.com/Not-able-to-record-with-HTTP-Proxy-Server-t1389730.html#a3735227
Sent from the JMeter - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Not able to record with HTTP Proxy Server
Posted by sebb <se...@gmail.com>.
On 03/04/06, ramesh_Tester <ko...@polaris.co.in> wrote:
>
> Hi All,
> I am new to this group and I am exploring Jmeter(2.1.1) as part of Load
> Testing on Java based component Testing.
> I am not able to record my Web application with HTTP Proxy Server recording.
> I followed all the steps in the "jmeter_proxy_step_by_step.pdf".
> My web application is a http application.
> Steps I had followed are:
> 1) Add aThread group to Test Plan.
> 2) Add HTTP Request Default to Thread group
> Filled details as below
> Protocol: HTTP
> Server Name or IP: jakarta.apache.org
> Port No : 80
> 3) Added Http Proxy Server to Work Bench
> Filled details as below
> Port 9090
> Target Controller Test PLan> Thread Group
> Grouping : Do not group Samplers
> Patterns to Include : .*
>
> I have been to IE v 6.0.XXX.XXX. ( internet Options--> Connections--> Lan
> Settings).
> Selected Use proxy Server for Lan
> Address: 172.22.81.148 Port : 9090
Normally use localhost, unless JMeter proxy is running on a different
system from the browser.
> After this. I had clicked on Start button in HTTP Proxy Server
> Started a new IE session( home Page blank).
> Browsed through my application.
> Jmeter does not record any thing under test plan.?.
>
> Let me know where am I missing?
Probably need to add a Cookie Manager to the test plan (not needed
now, but it will be later)
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org