Hi,

I am testing a server which is accesses via proxy. I start jMeter using -H
and -P param like :

 sh jmeter -H 10.81.40.1 -P 80

Open the test plan and start running it. It hits various http URL's from the
csv file and shown me the responses correctly. All works fine here... :)

But now when I run the test through jmeter task using ant by passing
proxyHost and proxyPass arguments like:
        <jmeter jmeterhome="${jmeter.dir}"
         testplan="${jmeter.file.path}/${jmeter.file.name}.jmx"
        
resultlog="${results}/${jmeter.file.name}${testType}${iterationID}${fileID}.${jMeterResultFileExtension}"
         proxyHost="10.81.40.1"
         proxyPort="80">
            <property name="serverToTest" value="${serverToTest}"/>
            <property name="jmeter.save.saveservice.output_format"
value="xml"/>
            <property name="jmeter.save.saveservice.assertion_results"
value="all"/>
            <property name="request.threads" value="${request.threads}"/>
            <property name="request.loop" value="${request.loop}"/>            
            <property name="request.csvfile"
value="${request.csvfile}${fileID}"/>
            <jvmarg value="-Duser.dir=${test.dir}"/>
        </jmeter>

The proxy does not require user name and password. So haven't supplied those
arguments (Even though I have tried passing empty userName and userPass). 

But all the request response returns the following unauthorized error:

Thread Name: Non Logged on User Thread Group 1-1
Sample Start: 2009-11-30 18:55:53 UTC
Load time: 65
Latency: 65
Size in bytes: 401
Sample Count: 1
Error Count: 1
Response code: 401
Response message: Unauthorized

Response headers:

HTTPSampleResult fields:
ContentType: 
DataEncoding: null


Can anyone tell me what else do I need to do so that I do not get this
unauthorized error. I need to resolve this problem really urgent as we have
to start our performance test tomorrow and this error is totally stopping us
from doing it. 

Regards
-- 
View this message in context: 
http://old.nabble.com/All-the-pages-are-returned-as-unauthorized-when-accessed-through-proxy-using-ant-tp26578812p26578812.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to