An open API service indexing awesome lists of open source software.

https://github.com/telefonica/toolium-template

Base project to start using toolium for your testing automation projects
https://github.com/telefonica/toolium-template

cdco

Last synced: 9 months ago
JSON representation

Base project to start using toolium for your testing automation projects

Awesome Lists containing this project

README

          

Toolium Template
================

Base project to start using `Toolium `_ for your testing automation projects
(web, Android or iOS).

The toolium-template example test is a behave web test. There are more examples of web, Android or iOS tests (with or
without using behave) in `toolium-examples `_.

Getting Started
---------------

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

.. code:: console

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

Running Tests
-------------

By default, web tests are configured to run in chrome locally, so chrome must be installed in your machine.
Selenium 4 will download chrome driver automatically when tests are executed.

To run all tests:

.. code:: console

$ behave

To run a single test:

.. code:: console

$ behave -n 'successful login'

Customizing Template
--------------------

Before creating your tests, you should personalize the template:

1. Clone toolium-template repository

.. code:: console

$ git clone git@github.com:Telefonica/toolium-template.git

2. Compact all template commits in one preserving the author

.. code:: console

$ cd
$ git reset $(git commit-tree HEAD^{tree} -m "Toolium template")
$ git -c user.name="Ruben Gonzalez Alonso" -c user.email=rgonalo@gmail.com commit --amend --reset-author --no-edit

3. Create a new clean repository in your github user/organization

4. Replace origin and push changes yo your repository

.. code:: console

$ git remote rm origin
$ git remote add origin git@github.com:/.git
$ git push -u origin master