In order to run these tests you need a free Trello account.
You also need Firefox installed https://www.mozilla.org/en-GB/firefox/new/
Clone the repository:
git clone git@github.com:AlexaVB/trello_tests.git
Python3 https://www.python.org/downloads/
pip https://pypi.org/project/pip/
pip install pip
Requests https://pypi.org/project/requests/
pip install requests
Selenium is used to automate web browser interaction from Python https://pypi.org/project/selenium/
pip install selenium
Splinter is an abstraction layer on top of existing browser automation tools such as Selenium https://splinter.readthedocs.io/en/latest/install.html
pip install splinter
Behave https://behave.readthedocs.io/
pip install behave
Behaving is a web application testing framework for Behavior-Driven-Development, based on behave and splinter https://pypi.org/project/behaving
pip install behaving
The test suite uses the following environment variables.
USER_EMAIL
: email address for Trello accountUSER_PASSWORD
: password for Trello accountTRELLO_KEY
: Trello key associated with Trello accountTRELLO_TOKEN
: Trello token associated with Trello account
Trello key and token can be found here: https://trello.com/app-key
Create an env.py file and place it in the 'features' directory.
Format of env.py file:
os.environ['USER_EMAIL'] = 'your_trello_email_address@gmail.com'
os.environ['USER_PASSWORD'] = 'your_trello_password'
os.environ['TRELLO_KEY'] = 'trello_key'
os.environ['TRELLO_TOKEN'] = 'trello_token'
From the directory where you cloned the repo, this command will run the feature with all the Behave tests:
behave
To run a specific scenario within the feature, use the line number, for example:
behave features/trello.feature:27
To debug the tests, you can add the following step:
When I pause the tests