Closed chrbayer84 closed 10 years ago
While I look into that, can you please try XLT 4.4? I contains the latest htmlunit,
Found it. Set the dynamic user agent feature to false (project.properties). The app binds the session to the user agent string (very oldschool) for secuity reasons. So a new agent string, because we set a new uuid, does not work and sees all the time something incorrect.
# Activate the user agent based unique ID per request, will turn a user agent into
# something like:
# Mozilla/5.0 (Windows NT 6.1; rv:17.0; Xceptance LoadTest 4.3.0) Gecko/20100101 Firefox/17.0 UID/ad228c44-f6a8-458e-93d1-e6c4cde46870
userAgent.UID=false
That works! Thanks!
I'm trying to run a test case where I have to login to a web site, get a cookie and only then be able to do 'privileged' actions. This is very much like the pebble example, but it doesn't seem to work for my test app, which is a cakephp app. I forked and pushed a code example here: https://github.com/chrbayer84/testsuite-nocoding From the debug output I see that the actual login call succeeds, gets a 302 and gets redirected to the privileged action page. But a simple subsequent GET request on that page after the login fails. I sniffed the HTTP headers in a browser and would expect the following headers to be set:
... where the cookie header is probably the main thing. This header is missing from the htmlunit-issued request it seems:
... and redirects back to the login page:
Looks like the test suite does not set the cookie header correctly when running against XLT 4.3.6. This ticket in htmlunit might or might not be related: http://sourceforge.net/p/htmlunit/mailman/message/23571686/ Here is the full debug log: