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.
Clone toolium-template repository and install requirements. It's highly recommendable to use a virtualenv.
$ git clone https://github.com/Telefonica/toolium-template.git
$ cd toolium-template
$ pip install -r requirements.txt
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:
$ behave
To run a single test:
$ behave -n 'successful login'
Before creating your tests, you should personalize the template:
- Clone toolium-template repository
$ git clone git@github.com:Telefonica/toolium-template.git <your_repository_name>
- Compact all template commits in one preserving the author
$ cd <your_repository_name>
$ 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
- Create a new clean repository in your github user/organization
- Replace origin and push changes yo your repository
$ git remote rm origin
$ git remote add origin git@github.com:<your_github_organization_or_user>/<your_repository_name>.git
$ git push -u origin master