Skip to content

AlexaVSmith/trello_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Trello

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/

Set-up

Clone the repository:

git clone git@github.com:AlexaVB/trello_tests.git 

Installation

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

Environment variables

The test suite uses the following environment variables.

  • USER_EMAIL: email address for Trello account
  • USER_PASSWORD: password for Trello account
  • TRELLO_KEY: Trello key associated with Trello account
  • TRELLO_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'

Running the Behave tests

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published