Toolium allows to run tests on web browsers (using Selenium) 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
- :ref:`Driver Configuration Modification <driver_configuration_modification>`
- :ref:`Browser Configuration <browser_configuration>`
- :ref:`Mobile Configuration <mobile_configuration>`
- :ref:`Remote Driver Configuration <remote_configuration>`
- :ref:`Multiple Simultaneous Drivers <multiple_drivers>`
- :ref:`Reuse Driver <reuse_driver>`
.. toctree:: :hidden: Driver Configuration Modification <driver_configuration_modification.rst> Browser Configuration <browser_configuration.rst> Mobile Configuration <mobile_configuration.rst> Remote Driver Configuration <remote_configuration.rst> Multiple Simultaneous Drivers <multiple_drivers.rst> Reuse Driver <reuse_driver.rst>