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, opera,
phantomjs, 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
Config_environment. For example, if Config_environment value is android, Toolium configuration
will be loaded from conf/properties.cfg, conf/android-properties.cfg and
local-android-properties.cfg files:
Nose:
$ Config_environment=android nosetests web/tests/test_web.pyPy.test:
$ Config_environment=android py.test web_pytest/tests/test_web_pytest.pyBehave:
$ behave -D Config_environment=android- :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: 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>