Hi Anusuya,
It looks as if the company proxy expects credentials. You need to
provide a username and password. This can be done with the JMeter -u
[username] and -a [password] command line options. Try giving your
windows username and password. If that doesn't work your network team
can probably tell you what to use instead.
It might also explain why it works for you when you test on a local
network connection. Proxies are often configured to be skipped when
accessing local IP addresses and domains.
Hope that works!
Stuart
On 14.11.2016 13:23, anusuya bhan wrote:
Hey Ivan,
So let me try explain step by step what i did.
1) i first configured Jmeter to be accessed by the proxy server which
i see
in my IE as configured.
command line - *jmeter -H proxyserver -P 8080*
Jmeter launches successfully
2) Now all i do is add a thread group followed by adding a http
requests
default having - the application name eg : xyz.com under the Web
server
section
3) Now i add a sampler HTTP sampler and add */login.do *under path so
basically, the page i want to hit is *xyz.com/login.do
<http://xyz.com/login.do>*
4) Add a listener and run the thread.
*Error i get : Response code: 407*
*Response message: Proxy Authentication Required ( Forefront TMG
requires
authorization to fulfill the request. Access to the Web Proxy filter
is
denied. )*
*Response headers:*
*HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires
authorization to fulfill the request. Access to the Web Proxy filter
is
denied. )*
*Via: 1.1 SM80208*
*Proxy-Authenticate: Negotiate*
*Proxy-Authenticate: Kerberos*
*Proxy-Authenticate: NTLM*
*Connection: close*
*Proxy-Connection: close*
*Pragma: no-cache*
*Cache-Control: no-cache*
*Content-Type: text/html*
*Content-Length: 713*
Is the Issue clearer now or am I confusing you?
If you could tell me if i am doing something wrong, or should i ask
something from my Network Team. If the latter how do i put it across
them?
PS: I can successfully access the same application via Jmeter in my
personal network with same settings.
Kind Regards
Anusuya Bhan
On Mon, Nov 14, 2016 at 12:45 PM, Ivan Rancati
<[email protected]>
wrote:
Hello,
the proxy server info you enter in JMeter should not be your
machine.
It should be your corporate/company proxy. Basically what your
browser is
normally configured for accessing a web site.
I would suggest to try a simple (manually entered, no script
recording)
http request first, before you try the recorder.
If the documentation does not help, then I haven't understood your
network
setup, and somebody else will have to jump in.
http://jmeter.apache.org/usermanual/get-started.html#proxy_server to
set
up
JMeter to use your corporate proxy. You need to do this to run
JMeter
scripts.
http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_
Script_Recorder
to set up the browser to use JMeter (running on your machine) as a
proxy.
You need to do this only if your want to use the script recorder
best regards
Ivan
On Mon, Nov 14, 2016 at 11:37 AM, anusuya bhan <[email protected]>
wrote:
> Hello,
>
> Please find my inline response.
>
> Thanks
> Anusuya
>
> On 14-Nov-2016 10:37 AM, "Ivan Rancati" <[email protected]>
wrote:
> >
> > Hello,
> >
> > Is it possible that there is some confusion between the JMeter
script
> > recorder and using the company proxy in JMeter?
> > You could try one step at a time
> >
> > 1) Can JMeter access the site you want to test?
>
> Jmeter can't access any site from my system that's within company
proxy.
>
> Also when you say company proxy what is the setting you
mentioning. You
> taking about starting Jmeter with proxy server port number and
user name
> password
>
> Proxy server should be my machine .
> is that correct, in my case?
>
> I did that I start Jmeter but after that when I do the below
settings for
> recording , jmeter doesn't do anything
>
> > Enter your company proxy info in JMeter (see
> >
http://jmeter.apache.org/usermanual/get-started.html#proxy_server)
then
> try
> > a simple http request. No recording yet
> >
> > If that works as expected
> >
> > 2) Configure the recording proxy (see
> >
> http://jmeter.apache.org/usermanual/component_
reference.html#HTTP(S)_Test_
> Script_Recorder
> > )
> >
> >
> > best regards
> > Ivan
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]