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.
SeleniumHubUrlpoints to the URL where the Selenium Grid is running onWebDriverTimeoutWebDriverDelayMSIsSingleInstancewhen set totrueruns without a browser teardown in between the test scenarios of a feature fileIsRemoteInstancewhen set tofalseruns the tests on the local machine; setting it totruewill attempt to run in a Selenium Grid specified on theSeleniumHubUrlBrowserTypecan be set to the browsers we currently supportBrowserWidthis the width of the browser windowBrowserHeightis the height of the browser windowRecordSeleniumBrowserLogsRecordSeleniumDriverLogsRecordSeleniumServerLogsRecordSeleniumPerformanceLogsRecordSeleniumClientLogsRecordScreenshotsBrowsermobProxywhen set totruecaptures the traffic to be analysed using using BrowsermobTestEnvironmentpoints to the key-value structure specified on thetestEnvironment.jsonfile. 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.