Toolium is a Python wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project. It provides a way of choosing and configuring the driver through a configuration file, implements a Page Object pattern and includes a simple visual testing solution.
The requirements to install Toolium are Python 2.7 or 3.3+ and pip. If you use Python 2.7.9+, you don't need to install pip separately.
Run pip install toolium
to install the latest version from PyPi. It's
highly recommendable to use a virtualenv.
The main dependencies are:
- Selenium: to test web applications in major browsers (Firefox, Chrome, Internet Explorer, Edge, Safari, Opera)
- Appium-Python-Client: to test mobile applications (native, hybrid or web) in Android or iOS devices/emulators.
- requests: to test APIs
Using toolium-template
The easiest way of getting started is to clone toolium-template project, run the example test and add your own tests and configuration.
$ git clone [email protected]:Telefonica/toolium-template.git
$ cd toolium-template
$ pip install -r requirements.txt
Now, just follow the instructions here to know how to start your testing project.
Running toolium-examples
You can also clone toolium-examples to get more examples about how to use the library to test web, Android or iOS applications, in different scenarios.
$ git clone [email protected]:Telefonica/toolium-examples.git
$ cd toolium-examples
$ pip install -r requirements.txt
Now, just follow the instructions here to run the examples of the tests.
If you want to collaborate in Toolium development, feel free of forking it and asking for a pull request.
Don't forget to run unit tests:
$ git clone [email protected]:<your_github_user>/toolium.git
$ cd toolium
$ python setup.py test
Finally, before accepting your contribution, we need you to sign our Contributor License Agreement and send it to [email protected].
- Choosing driver through a configuration file
- Page Object pattern
- BDD integration
- Visual testing solution
- Tests result analysis
Further information about features and fixes included in each release: CHANGELOG.
Complete library reference and documentation available at ReadTheDocs.