Driver Configuration
Toolium allows to run tests on web browsers (using Selenium or Playwright) or on mobile devices (using Appium). To
choose the browser or the mobile OS, configure type property in [Driver] section in
conf/properties.cfg file with one of these values: firefox, chrome, iexplore,
edge, safari, ios or android.
The following example shows how to choose Firefox:
[Driver]
type: firefox
If driver is not needed, typically in API tests, disable it using an empty string, api or no_driver:
[Driver]
type: api
By default, Toolium configuration is loaded from conf/properties.cfg and conf/local-properties.cfg
files. If different properties files are used for different environments, they can be selected using a system property
named TOOLIUM_CONFIG_ENVIRONMENT. For example, if TOOLIUM_CONFIG_ENVIRONMENT value is android,
Toolium configuration will be loaded from conf/properties.cfg, conf/android-properties.cfg and
local-android-properties.cfg files:
Nose2:
$ TOOLIUM_CONFIG_ENVIRONMENT=android python -m nose2 web/tests/test_web.py
Pytest:
$ TOOLIUM_CONFIG_ENVIRONMENT=android python -m pytest web_pytest/tests/test_web_pytest.py
Behave:
$ behave -D TOOLIUM_CONFIG_ENVIRONMENT=android