I first ran the tests on my localhost installation, it ran fine:
110 passes, 0 fails, and 0 exceptions
But on my remote site,
http://sandbox.rocky-shore.net/drupal/admin/build/testing
it ends up after a few seconds with the message:
An HTTP error 500 occurred. /drupal/batch?id=16&op=do
Both run drupal 6.12 on Linux.
The sites/sandbox.rocky-shore.net/files directory, now has
2 new subdirs:
$ ls -a simpletest
. binary-1.txt text-1.txt text-3.txt text-5.txt
.. binary-2.txt text-2.txt text-4.txt
$ ls -a simpletest666989/
. .. .htaccess
$ cat simpletest666989/.htaccess
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
Nevertheless, I could run other modules tests:
- Block functionality: 66 passes, 0 fails, and 0 exceptions
- Notifications Basics: 49 passes, 0 fails, and 0 exceptions
- Notifications Content: 163 passes, 0 fails, and 0 exceptions
- Notifications Lite: 25 passes, 0 fails, and 0 exceptions
- Notifications Templates: 17 passes, 1 fail, and 0 exceptions
line 168 - NotificationsTemplatesTests->testNotificationsTemplates() - Messaging: 65 passes, 0 fails, and 0 exceptions
For the CCK modules, I got many exceptions related to db schema, and
the last test gave a similar HTTP 500 error.
CRUD - Basic API tests: 6 passes, 0 fails, and 5 exceptions
CRUD - Single to multiple: 61 passes, 0 fails, and 5 exceptions
CRUD - Multiple to single: 73 passes, 0 fails, and 5 exceptions
Admin UI: 131 passes, 0 fails, and 10 exceptions
Then (CCK Option widgets):
An HTTP error 500 occurred.
/drupal/batch?id=27&op=do
HTH
Best regards,
RockyRoad.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | patching-testing.xml_.txt | 6.91 KB | RockyRoad |
Comments
Comment #1
RockyRoad commentedI applied
seeping_module_list_fix.patchfrom #360925: Need to reset module_list().Now, without having changed anything to cck files, I don't get the schema exceptions any more ...
* CRUD - Multiple to single: 73 passes, 0 fails, and 0 exceptions
* CRUD - Single to multiple: 61 passes, 0 fails, and 0 exceptions
* CRUD - Basic API tests: 6 passes, 0 fails, and 0 exceptions
But not the Admin UI test raises the HTTP 500 error !
Option widgets stills raises it.
Comment #2
boombatower commentedPlease try #472684: Install non-default modules one at a time to ensure proper module list is maintained during installation hooks.
Otherwise it may be due to the subdirectory that drupal is located in. SimpleTest does not properly deal with that and patch to fix: #340283: Abstract SimpleTest browser in to its own object
Comment #3
RockyRoad commentedBad news: I'm still stuck with that HTTP error 500.
I applied first
browser_3.patchfrom #340283: Abstract SimpleTest browser in to its own object.It only adds stuff, so it shouldn't break anything in core.
But I think it's not yet used in simpletest 6.x-2-dev, so I'm not really surprised to get similar results:
And on my remote site :
Then
D6_472684-seperate-module-install_1.patchfrom #472684: Install non-default modules one at a time to ensure proper module list is maintained during installation hooks fixes CCK test exceptions, but curiously changes the results for Notifications test suite.So
browser_3.patchapplies ok on D6.12D6_472684-seperate-module-install_1.patchapplies fine also, but it might be useful to check why it makes test results are different.Any idea welcome.
Thanks
Comment #4
boombatower commentedDiscussed in IRC, but from looking around:
Comment #5
RockyRoad commentedI cannot simply increase php memory on my remote host, but no problem to reduce it on my localhost.
I reduced, in /etc/php5/apache2/php.ini, memory_limit to 50M , to be more restrictive, checked in phpinfo() that the change was effective, and launched all tests on one request.
Tests seem to run slower with less memory, but they complete, no HTTP error.
I didn't try yet to use
set_time_limit(). Where should I put that ?Comment #6
boombatower commentedSet limit is already in the code in DrupalWebTestCase->setUp().
Make sure you set the memory limit for PHP CLI as well many distros have them separate.
Otherwise I'm not sure what else to try.
Comment #7
babbage commentedUsing MAMP Pro on my development machine, I discovered that if I ran Apache/MySQL as 'www/mysql' as recommended by MAMP Pro for security reasons, I got this error. However, setting it instead to the alternate option 'myshortusername/myshortusername' resulted in SimpleTest then working just fine. Presumably this relates to the permissions SimpleTest has depending on the user it is running as, and so this could be related to the problem experienced by the OP?
Comment #8
boombatower commentedPlease re-open if further issues...this is dead.
Comment #9
diya99 commentedHi,
As i am trying to run simpletest on my localhost i am encountering http-500 error so when i goggled around i got some solutions like
1)increasing maxredirects in .ht access file so i increased the limit
2)php memory limit between 128-256 recommended so i made 128
3)and even increased set_time_limit value to 2000 sec where it have been 180
But still facing the same problem selecting each test case like block test went fine but when i tried to select simpletest functionality then getting this error please help me how to proceed further i am strucked up here.
Thank you,
Comment #10
rfaydiya99, to understand a 500 error, the usual place to start is in your webserver log files. You have to figure out why the #fail happened, and that's how. But you can't find out from somebody else, unfortunately, because the 500 can mean so many things and what it means is typically specific to your own environment.
Further work on this is support, though, so following up in this issue is not the thing to do. Feel free to open a support request and point us to it in this issue if you want. Or get help on IRC. But look in those server logs.