-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
43 lines (33 loc) · 1.62 KB
/
config.php
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
<?php
define('DRIVER', 'firefox'); // chrome or firefox (depends on docker image)
/**
* Browser specific arguments
*
* Browser arguments for Chrome can be found here: https://peter.sh/experiments/chromium-command-line-switches/
* Browser arguments for Firefox can be found here: https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options
*/
define('BROWSER_ARGUMENTS', [
// '--headless',
]);
/**
* Browser specific capabilities
*
*/
define('BROWSER_CAPABILITIES', [
'isW3cCompliant' => true,
// 'firefox.profile.default.general.upload_max_size' => 1000,
]);
define('HOST', 'http://localhost:4444/wd/hub'); // selenium grid host
define('TESTS_DIR', 'tests'); // directory with test files
define('SHOW_FAILED_TRACE', false); // show code trace for failed tests
define('SELENIUM_CONNECTION_TIMEOUT', 30000); // in milliseconds (30 seconds)
define('SELENIUM_REQUEST_TIMEOUT', 30000); // in milliseconds (30 seconds)
define('MEMORY_LIMIT', '512M'); // in megabytes (-1 for unlimited)
define('MAX_EXECUTION_TIME', 300); // in seconds
define('RESULT_TYPE', 'terminal'); // json|xml|terminal
define('PARALLEL_TESTS', false); // run tests in parallel
define('MAX_PARALLEL_PROCESSES', 3); // max parallel processes
define('CMD_OUTPUT', true); // show/hide command output
define('HTML_REPORT', false); // generate html report (for better results use xml or json RESULT_TYPE)
define('WEBHOOK_URL', ''); // webhook url (post request with test results in html(in base64) or json format)
define('WEBHOOK_FORMAT', 'json'); // json|html (if use HTML format for webhooks, set HTML_REPORT to true)