I'm writing some HTTP tests that are testing a login on our site. However, ~80% of the time, according to the HM statistics, the tests fail even though the site is working correctly.
The HTTP test POSTs to a page with a redirect (which also issues a cookie). I've enabled redirects and cookies in the HM test.
When I bring up the "advanced" page for the HTTP test and use the "Test" button, sometime it'll output the page's headers. However, 80% of the time it just says "Test status: Bad, Error code: 0, Error msg:".
This isn't much use at all... as it could mean anything. There's a 500 being served? No page data? Bad URL? A timeout? I've no idea.
Isn't there any way to find out why the results are bad? It would be great if I could get a dump of the headers and HTML from the request. How could I get this information from HM, please?
I've tried this with version 6 and 5.92 of HM.
Thanks!
HTTP request "Test status: Bad, Error Code: 0, Error ms
-
- Posts: 2
- Joined: Tue Jun 13, 2006 5:02 am
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: HTTP request "Test status: Bad, Error Code: 0, Erro
Are you getting empty "Error msg" string? Strange. Do you use "check content" or "check header" options? Have you enabled "Set "Bad" status when total download time is longer than NN msec" option? Could you disable all foregoing options and try to perform test again?afitzpatrick wrote:When I bring up the "advanced" page for the HTTP test and use the "Test" button, sometime it'll output the page's headers. However, 80% of the time it just says "Test status: Bad, Error code: 0, Error msg:".
I think you should parse your web server log files to find it out. If you have recieved empty "Error msg" string, the only way is to parse web server log files.afitzpatrick wrote:This isn't much use at all... as it could mean anything. There's a 500 being served? No page data? Bad URL? A timeout? I've no idea.
Isn't there any way to find out why the results are bad? It would be great if I could get a dump of the headers and HTML from the request. How could I get this information from HM, please?
Regards,
Max
-
- Posts: 2
- Joined: Tue Jun 13, 2006 5:02 am
Hi Max
Thanks for your prompt reply.
"check content", "check header" and "set bad when download time > X" are all turned off until I can get the simple stuff working in HM.
Looking at the web server logs HM gets 302ed to a "your browser won't accept cookies" page after its POST. HM gets this page successfully.
Most of the time, though, HM just gets the 302 but doesn't seem to follow it, even though the "Follow redirect" option is set. So three questions now...
* Why isn't HM accepting per-session cookies? ("Allow per-session cookies" is set)
* Why isn't HM following 302s? ("Follow redirects" is set)
* How can I debug this? I don't understand how or why it would ever be valid to return an empty error message to users...
Thanks for your prompt reply.
"check content", "check header" and "set bad when download time > X" are all turned off until I can get the simple stuff working in HM.
Looking at the web server logs HM gets 302ed to a "your browser won't accept cookies" page after its POST. HM gets this page successfully.
Most of the time, though, HM just gets the 302 but doesn't seem to follow it, even though the "Follow redirect" option is set. So three questions now...
* Why isn't HM accepting per-session cookies? ("Allow per-session cookies" is set)
* Why isn't HM following 302s? ("Follow redirects" is set)
* How can I debug this? I don't understand how or why it would ever be valid to return an empty error message to users...