Merge pull request #4897 from totten/master-cleanup2
[civicrm-core.git] / tests / phpunit / CiviTest / CiviSeleniumSettings.php.txt
index bc235174f108db0967a7b6e014182d9f4c88eacc..37b868d4875c0f9cb22c6328aba6eca20fcd111c 100644 (file)
@@ -6,6 +6,16 @@ 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 = '';
@@ -15,7 +25,7 @@ class CiviSeleniumSettings {
   var $password = 'demo';
 
   var $adminUsername = 'USERNAME';
-  
+
   var $adminPassword = 'PASSWORD';
 
   var $adminApiKey = NULL; // civicrm_contact.api_key for admin
@@ -32,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,
+    // );;
   }
 
 }