Hybrid Custom Framework to Test YourStore Web App with Behave BDD
- Python 3.12
- Behave - BDD
- PyTest - Testing Framework
- Reporting - Allure Report
- Test Data - Using feature file
pip install selenium webdriver-manager behave allure-behave pytest-html faker
pip freeze > requirements.txt
pip install -r requirements.txt
behave -s .\features\ -f allure_behave.formatter::AllureFormatter -o reports/your_store_allure_test_report
• Create job - Select freestyle project template • In SCM section select 'Git' option • Provide github project repo url • Add github credentials • In 'Build' section select 'custom python builder' • In 'Home' section add python.exe location from local machine • In 'Nature' section mention Shell • In command section write commands > Python -m venv env > call .venv/Scripts/activate.bat > pip install selenium > pip install webdriver-manager > pip install behave > pip install allure-behave > behave features --tags=run -f allure_behave.formatter::AllureFormatter -o reports/project_allure_report
• In 'Post Build Actions' give report path in Allure Report section > Reports\project_allure_report