jframos / toolium-examples

Set of examples to learn how to use toolium different functionalities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toolium Examples

Set of examples to learn how to use Toolium to test web, Android or iOS applications, in different scenarios.

Getting Started

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.

Clone toolium-examples repository and install requirements. It's highly recommendable to use a virtualenv.

$ git clone git@github.com:Telefonica/toolium-examples.git
$ cd toolium-examples
$ pip install -r requirements.txt

Running Tests

Web

By default, example tests are configured to run in firefox locally, so firefox must be installed in your machine.

To run web tests:

$ nosetests tests/web

To run a single test:

$ nosetests tests/web/test_web.py:Login.test_successful_login_logout

Android or iOS

Appium must be installed and configured before executing Android or iOS tests.

To run Android tests, launch Appium server, connect an Android device (or create an Android Emulator) and execute:

$ nosetests tests/android

To run iOS tests on iOS Simulator, launch Appium server in a Mac OS X and execute:

$ nosetests tests/ios

Behave

To run behave web tests:

$ behave tests/behave_web

To run behave android tests:

$ behave tests/behave_android

Lettuce

To run lettuce web tests:

$ lettuce tests/lettuce_web

Lettuce works only in Python 2.

About

Set of examples to learn how to use toolium different functionalities

License:Apache License 2.0


Languages

Language:Python 97.6%Language:Gherkin 2.4%