- selenium: For driver automation
- webdriver-manager: For webdriver installation
- behave: A testing tool that supports Behaviour Driven Development (BDD). Semi-official Cucumber implementation for Python
- Driver: To manage Selenium WebDriver from a central place to use it with ease of config files, preventing repetition of code and duplication of drivers being used
- ConfigurationReader: To store values like browser type, testing environment URL, etc.
Swag Labs: A demo website to be tested for learners
-
Clone the repository:
git clone https://github.com/memreyagci/python-bdd-practice
-
Install the required libraries (preferably after switching to a virutal environment):
pip install -r requirements.txt
-
Run with behave
behave
- Or running by tags assigned in feature files:
behave --tags=tagname
- Or running by tags assigned in feature files: