/
saunter.inc.default
45 lines (39 loc) · 1.34 KB
/
saunter.inc.default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
$sites = array(
"development" => "http://localhost",
"qa" => "http://qa.mycompany.com",
"staging" => "http://stage.mycompany.com",
"production" => "http://www.mycompany.com"
);
$timeout = 45; // seconds
$GLOBALS['timeouts'] = array(
"seconds" => $timeout,
"ms" => $timeout * 1000,
"str_ms" => (string) $timeout * 1000
);
$GLOBALS['settings'] = array(
"sauce.ondemand" => False,
"sauce.get_video" => False,
"sauce.get_log" => False
);
$GLOBALS['settings']['webserver'] = $sites["qa"];
if ($GLOBALS['settings']['sauce.ondemand'])
{
require_once("saucelabs.inc");
$GLOBALS['settings']['browser'] = json_encode(array(
"username" => $GLOBALS['saucelabs']['username'],
"access-key" => $GLOBALS['saucelabs']['key'],
"os" => "Windows 2003",
"browser" => "firefox",
"browser-version" => "3.6."
));
$GLOBALS['settings']['seleniumserver'] = "ondemand.saucelabs.com";
$GLOBALS['settings']['seleniumport'] = 4444;
} else {
$GLOBALS['settings']['browser'] = "*safari";
$GLOBALS['settings']['seleniumserver'] = "localhost";
$GLOBALS['settings']['seleniumport'] = 4444;
}
date_default_timezone_set('America/New_York');
$GLOBALS['settings']['logname'] = 'logs/' . date('Y-m-d-h-i-s') . '.log';
?>