Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | ||
3 | class CiviSeleniumSettings { | |
4 | ||
5 | var $publicSandbox = false; | |
6 | ||
7 | var $browser = '*firefox'; | |
8 | ||
b5c0ad9a TO |
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 | ||
6a488035 TO |
19 | var $sandboxURL = 'http://devel.drupal.tests.dev.civicrm.org'; |
20 | ||
21 | var $sandboxPATH = ''; | |
af8a28ef | 22 | |
6a488035 TO |
23 | var $username = 'demo'; |
24 | ||
25 | var $password = 'demo'; | |
26 | ||
27 | var $adminUsername = 'USERNAME'; | |
48b420d7 | 28 | |
6a488035 TO |
29 | var $adminPassword = 'PASSWORD'; |
30 | ||
eb87411f TO |
31 | var $adminApiKey = NULL; // civicrm_contact.api_key for admin |
32 | ||
6a488035 TO |
33 | var $UFemail = 'noreply@civicrm.org'; |
34 | ||
af8a28ef TO |
35 | /** |
36 | * @var string site API key | |
37 | */ | |
38 | var $siteKey = NULL; | |
39 | ||
6a488035 TO |
40 | /** |
41 | * @var int seconds | |
42 | */ | |
43 | var $timeout = 30; | |
44 | ||
bf446982 TO |
45 | /** |
46 | * @var array | |
47 | * @see CiviSeleniumTestCase::setCookies | |
48 | */ | |
49 | var $cookies = array(); | |
50 | ||
b5c0ad9a TO |
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 | ||
6a488035 TO |
61 | function __construct() { |
62 | $this->fullSandboxPath = $this->sandboxURL . $this->sandboxPATH; | |
bf446982 TO |
63 | // $this->cookies[] = array( |
64 | // 'name' => 'mycookie', | |
65 | // 'value' => 'myvalue', | |
66 | // 'path' => '/', | |
67 | // 'max_age' => 24*60*60, | |
68 | // );; | |
6a488035 TO |
69 | } |
70 | ||
71 | } | |
72 | ?> |