Hi,

The following issue happens with dev and release versions of Simpletest (6.2). Any test which depends on the user logging in fails because Simpletest is not able to login the user. I am running Ubuntu with the usual suspects (apache, mod_php, mysql).

Dumping the page after drupalLogin shows the login page with an error, user not found or password incorrect.

I am attaching a screenshot.

Comments

boombatower’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

This obviously does not happen for me, and would guess most. As such I'm going to need a bit more information as to what might be causing it on your system.

Please review the trouble shooting information as well: http://drupal.org/node/394976.

voidberg’s picture

I reviewed the information there, doesn't help.

What information do you need?

boombatower’s picture

Did you place the snippet in the settings.php.

boombatower’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please re-open if still having issues.

peronas’s picture

Status: Closed (fixed) » Active
StatusFileSize
new144.27 KB

Hi all,

I'm reopening this issue as I'm encountering a very similar problem with a fresh install of SimpleTest. In short I can't get any of the included tests to pass and am receiving the same errors as the original poster in terms of the expected form fields not being found.

After reading through some other posts and going over the trouble shooting guide it appears the problem lies with the fact that the drupalGet calls are only returning a single byte of data. The odd bit is the request is getting an OK (200) return code on the request so there doesn't appear to be any trouble resolving and requesting the page.

I'm currently running Drupal 6.16 and initially tried the 6.x-2.10 build of SimpleTest but after reading some of the other bug reports I tried the 6.x-2.x-dev build with unfortunately the same results.

Anyone have any ideas on what could be causing this? If any more info is needed let me know!

Thanks!

boombatower’s picture

Status: Active » Closed (cannot reproduce)

I am not sure what to say, but sounds like something is messed up with your environment that the page is returning 1 byte....not much I can debug since I cannot re-produce...Are you still having this issue?