I finally managed to setup PIFR correctly, but the Simple Test doesn't run. It fails when trying to fill the fields for database input.

I tracked the error down, and found out the following:
- PIFRBrowser tries to retrieve a document via HTTP POST, where it does mess up the prefix: "POST /drupal/checkout//drupal/checkout/install.php?profile=default&locale=en
- I tracked the problem down to the function url(), is called with the URL /drupal/checkout/install.php and the parameters absolute => 1 and query => profile=default&locale=en and then returns /drupal/checkout//drupal/checkout/install.php?profile=default&locale=en
- Inside the url()-function, it retrieves the option "base_url" which is set to http://88.198.194.153/drupal/checkout/.
- The url()-call is done by getAbsoluteUrl() in PIFRBrowser, where it is called by drupalPost. The form in question is the form where database values are entered, and the action in the form contains the relative URL /drupal/checkout

I am not sure if this is really a bug in the function url() or if some setting is messed up in my config. The file testing_server_conf is configured with WEBSITE=88.198.194.153/drupal (where I am not sure if that is correct).

cheers,
Timo

Comments

Felicitus’s picture

I believe that other test clients did not encounter this error since my installation runs on a sub-directory right now - maybe that causes a problem?

boombatower’s picture

Status: Active » Closed (won't fix)

This is a shortcoming of SimpleTest...even if that succeeded...you would get tons of test failures.

I have a long standing issue and work towards complete revamp of that browser system, but as of now...all test clients cannot run in a subdirectory.

Felicitus’s picture

Okay, so I will reinstall the PIFR suite in the root. I personally don't like that, but its a dedicated virtual server running on my root server so it doesn't hurt that much.