forked from AppertaFoundation/openeyes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
behat.yml
183 lines (159 loc) · 6.8 KB
/
behat.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# NOTE THAT SOME PARAMETERS ARE SET VIA /init.sh SCRIPT in OE DOCKER ENVIRONMENTS
# AVAILABLE PARAMETERS ARE:
# SELENIUM_BASE_URL - sets the mink base_url parameter
# SELENIUM_WD_HOST - sets the mink selenium2 wd_host parameter
# IT IS STRONGLY ADVISED TO USE SeleniumHQ docker images - e.g., https://hub.docker.com/r/selenium/standalone-chrome or https://hub.docker.com/r/selenium/standalone-chrome-debug
## The debug images provide a VNC server to view the tests running (when not in headless mode)
#
# The following profiles are available (use --profile switch to change):
# default : works with appertaopeneyes docker images - uses parameters above, or defaults to docker host
#
# headless : Same as default, but runs headless
#
# local : assumes selenium and web server are installed on localhost (not recommended)
#
# local-headless : same as local, but headless
#
# docker : Assumes selenium is mapped to port 4444 on the docker host and web server is mapped to port 80
#
# docker-headless : same as docker, but headless
default:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
#base_url: DEFINED BY SELENIUM_BASE_URL environment variable
javascript_session: selenium2
goutte: ~
selenium2:
# wd_host: DEFINED BY SELENIUM_WD_HOST environment variable
browser: "chrome"
capabilities:
chrome:
deviceOrientation: "landscape"
deviceType: "desktop"
headless:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
#base_url: DEFINED BY SELENIUM_BASE_URL environment variable
javascript_session: selenium2
goutte: ~
selenium2:
# wd_host: DEFINED BY SELENIUM_WD_HOST environment variable
browser: 'chrome'
capabilities:
chrome:
switches:
- "--headless"
deviceOrientation: "landscape"
deviceType: "desktop"
local:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
base_url: http://localhost
javascript_session: selenium2
goutte: ~
selenium2:
wd_host: http://localhost:4444/wd/hub
browser: 'chrome'
capabilities:
chrome:
deviceOrientation: "landscape"
deviceType: "desktop"
local-headless:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
base_url: http://localhost
javascript_session: selenium2
goutte: ~
selenium2:
wd_host: http://localhost:4444/wd/hub
browser: 'chrome'
capabilities:
chrome:
switches:
- "--headless"
deviceOrientation: "landscape"
deviceType: "desktop"
docker:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
base_url: http://host.docker.internal
javascript_session: selenium2
goutte: ~
selenium2:
wd_host: http://host.docker.internal:4444/wd/hub
browser: 'chrome'
capabilities:
chrome:
deviceOrientation: "landscape"
deviceType: "desktop"
docker-headless:
context:
parameters:
sample_db: "protected/modules/sample/sql/openeyes+ophtroperationbooking.sql"
load_db_cmd: "oe-reset"
extensions:
features/bootstrap/extension.php: ~
SensioLabs\Behat\PageObjectExtension\Extension: ~
Behat\YiiExtension\Extension:
framework_script: vendor/yiisoft/yii/framework/yii.php
config_script: protected/config/main.php
Behat\MinkExtension\Extension:
base_url: http://host.docker.internal
javascript_session: selenium2
goutte: ~
selenium2:
wd_host: http://host.docker.internal:4444/wd/hub
browser: 'chrome'
capabilities:
chrome:
switches:
- "--headless"
deviceOrientation: "landscape"
deviceType: "desktop"
fullcustom:
# This profile must be fully defined by a BEHAT_PARAMS environment variable in url format - See https://docs.behat.org/en/v2.5/guides/7.config.html