The environment.properties
file found in build > environment
is the configuration starter point. If the file is named environment.properties.example
please rename it to environment.properties
otherwise there may be some problems when running the tests.
You can specify in this file the desired setup to run your automated test suite.
SeleniumHubUrl
points to the URL where the Selenium Grid is running onWebDriverTimeout
WebDriverDelayMS
IsSingleInstance
when set totrue
runs without a browser teardown in between the test scenarios of a feature fileIsRemoteInstance
when set tofalse
runs the tests on the local machine; setting it totrue
will attempt to run in a Selenium Grid specified on theSeleniumHubUrl
BrowserType
can be set to the browsers we currently supportBrowserWidth
is the width of the browser windowBrowserHeight
is the height of the browser windowRecordSeleniumBrowserLogs
RecordSeleniumDriverLogs
RecordSeleniumServerLogs
RecordSeleniumPerformanceLogs
RecordSeleniumClientLogs
RecordScreenshots
BrowsermobProxy
when set totrue
captures the traffic to be analysed using using BrowsermobTestEnvironment
points to the key-value structure specified on thetestEnvironment.json
file. This is useful when running against different test environments such as staging or in a CI server.
Please leave as is the properties for WebAppUrl
, TestServer
, TestProject
, UseTestServer
, WebAppUser
and WebAppPass
. We will deprecate such properties from the open source project soon.
An example:
SeleniumHubUrl=http://localhost:4444/wd/hub
WebDriverTimeout=3
WebDriverDelayMS=500
IsSingleInstance=true
IsRemoteInstance=false
BrowserType=chrome
BrowserWidth=1920
BrowserHeight=1080
BrowsermobProxy=false
TestEnvironment=env-local
With the above example, the tests will be running locally, since the property IsRemoteInstance
is set to false
. The browser where tests will be running would be chrome
with no teardown of browser sessions in between the tests, with IsSingleInstance
set to true
.
The context of variables for the test run will be using the env-local
structure stated in testEnvironment.json
file.