"In software engineering, behavior-driven development is an Agile software development process that encourages collaboration among developers, QA and non-technical or business participants in a software project." - Wiki
- Python: Python3.7
- Behave: Behave Test Suite
- Selenium: Selenium Webdriver
Always recommand using virtualenv
when dealing with python.
Setup your virtual environment
virtualenv venv
Activate virtual env
. venv/bin/activate
Use the package manager pip to install dependencies from requirements.txt
pip install -r requirements.txt
Run tests locally
behave
If you wish to run headless
RUN_HEADLESS=TRUE behave
Run test remote in SauceLab
IS_REMOTE=TRUE SAUCE_USERNAME=<YOUR_USERNAME> SAUCE_ACCESS_KEY=<YOUR_KEY> behave
Python follow the PEP 8 standard, To maintain we are using autopep8 package.
autopep8 --in-place --aggressive --aggressive <file_path>
Build image
docker build -t IMAGE_NAME .
Run image
docker run IMAGE_NAME