X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FCiviSeleniumSettings.php.txt;h=37b868d4875c0f9cb22c6328aba6eca20fcd111c;hb=898f38ad65fe945087a16062f22c66bdf9e36e77;hp=23a5fc11f7ef5f48a854b72312a2c93482c20b10;hpb=af8a28eff3b9f112f90df56e0f74da85baa294d8;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt b/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt index 23a5fc11f7..37b868d487 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt +++ b/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt @@ -6,19 +6,30 @@ class CiviSeleniumSettings { var $browser = '*firefox'; + /** + * @var string SeleniumRC host name + */ + var $rcHost = 'localhost'; + + /** + * @var int SeleniumRC port number + */ + var $rcPort = 4444; + var $sandboxURL = 'http://devel.drupal.tests.dev.civicrm.org'; var $sandboxPATH = ''; - var $username = 'demo'; var $password = 'demo'; var $adminUsername = 'USERNAME'; - + var $adminPassword = 'PASSWORD'; + var $adminApiKey = NULL; // civicrm_contact.api_key for admin + var $UFemail = 'noreply@civicrm.org'; /** @@ -31,8 +42,30 @@ class CiviSeleniumSettings { */ var $timeout = 30; + /** + * @var array + * @see CiviSeleniumTestCase::setCookies + */ + var $cookies = array(); + + /** + * @var int|NULL seconds to wait for SeleniumRC to become available + * + * If you have custom scripts which launch Selenium and PHPUnit in tandem, then + * Selenium may initialize somewhat slowly. Set $serverStartupTimeOut to wait + * for Selenium to startup. If you launch Selenium independently or otherwise + * prefer to fail immediately, then leave the default value NULL. + */ + var $serverStartupTimeOut = NULL; + function __construct() { $this->fullSandboxPath = $this->sandboxURL . $this->sandboxPATH; + // $this->cookies[] = array( + // 'name' => 'mycookie', + // 'value' => 'myvalue', + // 'path' => '/', + // 'max_age' => 24*60*60, + // );; } }