Sample framework for using behave
Installation
-
Install browser firefox 46 (this version is still compatible with selenium library)
-
Install python 3.5 on your system
-
Clone repo with tests to a separate folder
-
Move inside the folder
-
Install virtual environment for python with a terminal command -
$ pip3 install virtualenv
-
Create new virtual environment from inside folder with cloned repo with command -
$ virtualenv venv
-
Activate new environment with command -
$ source ./venv/bin/activate (for mac)
$ venv\Scripts\Activate (for windows)
-
Install requirements with command -
$ pip3 install -r requirements.txt
-
Run tests from within folder with test repo with command -
$ behave
(for specific feature - behave\features{feature_name})
Please keep in mind - as its impossible to delete user from packlink.es website, to repeat sucessful run of the tests, you should change email for newly registered users in file 01_register.feature