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
- Host: GitHub
- URL: https://github.com/telefonica/toolium-template
- Owner: Telefonica
- License: apache-2.0
- Created: 2015-10-28T17:59:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T16:40:26.000Z (about 2 years ago)
- Last Synced: 2025-04-13T05:07:47.889Z (about 1 year ago)
- Topics: cdco
- Language: Python
- Size: 126 KB
- Stars: 10
- Watchers: 8
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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