Summary: | HTTP Authorization Manager does not work with jmeter 2.2 for a test plan working with jmeter 2.1 | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Raghuveer Sribhashyam <rsribhashyam> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | Nightly (Please specify date) | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
Test Plan for Jmeter 2.1
Test Plan for Jmeter 2.2 |
Description
Raghuveer Sribhashyam
2007-06-15 06:05:00 UTC
Created attachment 20353 [details]
Test Plan for Jmeter 2.1
I have created different Test Plans with same structure for 2.1 and 2.2 as a
jmx file opened with 2.2 doesnot open back in 2.1.
This is the test plan for 2.1. Will attach the 2.2 test plan as well.
Created attachment 20354 [details]
Test Plan for Jmeter 2.2
I have created different Test Plans with same structure for 2.1 and 2.2 as a
jmx file opened with 2.2 doesnot open back in 2.1.
This is the test plan for 2.2. Also attached the test plan for 2.1. Its in the
previous attachment.
Try putting the User Defined Variables before the HTTP Authorization Manager. Does this help? [The reason the 2.1 test plan does not load in 2.2 is that 2.1 saved the formatter if the time format was set to anything other than none or ms. The formatter cannot be reloaded, and causes the error. I'll see if I can fix it so that the formatter is ignored.] I've fixed JMeter so that the formatter is ignored (if present). This will appear in the next release of JMeter. (In reply to comment #3) > Try putting the User Defined Variables before the HTTP Authorization Manager. > Does this help? > > [The reason the 2.1 test plan does not load in 2.2 is that 2.1 saved the > formatter if the time format was set to anything other than none or ms. The > formatter cannot be reloaded, and causes the error. I'll see if I can fix it > so that the formatter is ignored.] I have tried the suggestion you have suggested. But having User defined Variables before HTTP Authorization Manager does not work. Do you need some more information? It looks like the Authorisation is being picked up correctly and saved with the connection. The problem is that the server requires pre-emptive authentication - it is not generating a WWW-Authenticate response to which Httpclient can reply. To enable pre-emptive authentication, change the files below to add: jmeter.properties: httpclient.parameters.file=httpclient.parameters httpclient.parameters: http.authentication.preemptive$Boolean=true Does this fix the problem? (In reply to comment #6) > It looks like the Authorisation is being picked up correctly and saved with > the connection. > > The problem is that the server requires pre-emptive authentication - it is not > generating a WWW-Authenticate response to which Httpclient can reply. > > To enable pre-emptive authentication, change the files below to add: > > jmeter.properties: > httpclient.parameters.file=httpclient.parameters > > httpclient.parameters: > http.authentication.preemptive$Boolean=true > > Does this fix the problem? Hi Sebb, This solution fixes the problem. But i suggest this to be the default behaviour for the next version of jmeter. Raghuveer Sounds like a good idea to make it the default, but then HttpClient complains if there are no credentials. This needs further thought. The code has now been fixed so that pre-emptive authentication is used if: - there are some credentials - the pre-emptive setting has not been defined This is in SVN r552013. This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1960 |