| 1 | <?php |
| 2 | |
| 3 | class CiviSeleniumSettings { |
| 4 | |
| 5 | var $publicSandbox = false; |
| 6 | |
| 7 | var $browser = '*firefox'; |
| 8 | |
| 9 | /** |
| 10 | * @var string SeleniumRC host name |
| 11 | */ |
| 12 | var $rcHost = 'localhost'; |
| 13 | |
| 14 | /** |
| 15 | * @var int SeleniumRC port number |
| 16 | */ |
| 17 | var $rcPort = 4444; |
| 18 | |
| 19 | var $sandboxURL = 'http://devel.drupal.tests.dev.civicrm.org'; |
| 20 | |
| 21 | var $sandboxPATH = ''; |
| 22 | |
| 23 | var $username = 'demo'; |
| 24 | |
| 25 | var $password = 'demo'; |
| 26 | |
| 27 | var $adminUsername = 'USERNAME'; |
| 28 | |
| 29 | var $adminPassword = 'PASSWORD'; |
| 30 | |
| 31 | var $adminApiKey = NULL; // civicrm_contact.api_key for admin |
| 32 | |
| 33 | var $UFemail = 'noreply@civicrm.org'; |
| 34 | |
| 35 | /** |
| 36 | * @var string site API key |
| 37 | */ |
| 38 | var $siteKey = NULL; |
| 39 | |
| 40 | /** |
| 41 | * @var int seconds |
| 42 | */ |
| 43 | var $timeout = 30; |
| 44 | |
| 45 | /** |
| 46 | * @var array |
| 47 | * @see CiviSeleniumTestCase::setCookies |
| 48 | */ |
| 49 | var $cookies = array(); |
| 50 | |
| 51 | /** |
| 52 | * @var int|NULL seconds to wait for SeleniumRC to become available |
| 53 | * |
| 54 | * If you have custom scripts which launch Selenium and PHPUnit in tandem, then |
| 55 | * Selenium may initialize somewhat slowly. Set $serverStartupTimeOut to wait |
| 56 | * for Selenium to startup. If you launch Selenium independently or otherwise |
| 57 | * prefer to fail immediately, then leave the default value NULL. |
| 58 | */ |
| 59 | var $serverStartupTimeOut = NULL; |
| 60 | |
| 61 | function __construct() { |
| 62 | $this->fullSandboxPath = $this->sandboxURL . $this->sandboxPATH; |
| 63 | // $this->cookies[] = array( |
| 64 | // 'name' => 'mycookie', |
| 65 | // 'value' => 'myvalue', |
| 66 | // 'path' => '/', |
| 67 | // 'max_age' => 24*60*60, |
| 68 | // );; |
| 69 | } |
| 70 | |
| 71 | } |
| 72 | ?> |