Skip to content

Base project to start using toolium for your testing automation projects

License

Notifications You must be signed in to change notification settings

Telefonica/toolium-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

$ 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:

$ behave

To run a single test:

$ behave -n 'successful login'

Customizing Template

Before creating your tests, you should personalize the template:

  1. Clone toolium-template repository
$ git clone git@github.com:Telefonica/toolium-template.git <your_repository_name>
  1. 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
  1. Create a new clean repository in your github user/organization
  2. 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

About

Base project to start using toolium for your testing automation projects

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published