https://github.com/frankatencioloreth/inlazeautomationtest
https://github.com/frankatencioloreth/inlazeautomationtest
allure-report automation-testing bdd behave behave-framework python3
Last synced: 31 minutes ago
JSON representation
- Host: GitHub
- URL: https://github.com/frankatencioloreth/inlazeautomationtest
- Owner: FrankAtencioLoreth
- Created: 2025-02-01T23:20:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-02T00:38:54.000Z (9 months ago)
- Last Synced: 2025-06-17T03:02:58.990Z (4 months ago)
- Topics: allure-report, automation-testing, bdd, behave, behave-framework, python3
- Language: Python
- Homepage: https://test-qa.inlaze.com/auth/sign-in
- Size: 382 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Automation Testing Project with Behave and Allure
This project is designed for automated testing using **Behave**, a Behavior Driven Development (BDD) framework, and **Allure** for generating detailed test reports.
## Installation Requirements
Before getting started, ensure you meet the following requirements and install the necessary tools:
### Prerequisites
1. **Python**: Ensure Python >= 3.7 is installed on your machine.
2. **pip**: Install pip, Python's package installer.
3. **Supported Browser**: The project is configured to execute on the `Edge`,`Chrome` or `Firefox` browser.
4. **Allure v2.32.0**: Is a popular open source tool for visualizing the results of a test run. It can be added to your testing workflow with little to zero configuration [here](https://allurereport.org/docs/install-for-windows/)
5. **Scoop**: For install allure in windows [here](https://github.com/ScoopInstaller/Install#readme)
6. **Node v22.12.0**: It's required for execute allure reports [here](https://nodejs.org/en/blog/release/v22.11.0)
7. **Java JDK v17 and JAVA_HOME**: It's required for execute allure reports [here](https://openjdk.org/projects/jdk/17/)
8. **Selenium v4.28.1**: For automation testing [here](https://www.selenium.dev/documentation/)
9. **Behave v1.2.6**: For bdd style [here](https://behave.readthedocs.io/en/latest/)
### Dependency installation
Run the following commands to install the required dependencies:
1. Install necessary libraries in this project:
```bash
pip install -r requirements.txt
```
2. Set up **Allure** (optional):
- Download and install Scoop (Windows PowerShell):
```bash
irm get.scoop.sh | iex
```
- Download and install Allure:
```bash
scoop install allure
```
## How to execute tests with Behave
To execute tests using **Behave**, run these commands from the project root directory:
1. Run all tests:
```bash
behave -f allure_behave.formatter:AllureFormatter -o reports/ .\src\
```
2. Run specific tests based on tags:
```bash
behave --tags=@tag_name -f allure_behave.formatter:AllureFormatter -o reports/ .\src\
```
## Generate reports with Allure
This project is configured to generate reports using **Allure**. Follow the steps below to generate the test report:
1. Run the automated tests
2. Open the cmd console and type the following command
```bash
allure serve reports
```
## Project structure
The project follows a standard structure for tests using **Behave**:
```
├───.venv
│ ├───Lib
│ └───Scripts
├───configurations
│ ├───config.ini
├───docs
├───reports
└───src
├───pages
├───DashBoardPage.py
├───LoginPage.py
├───RegisterPage.py
├───steps
├───RegisterSteps.py
├───LoginSteps.py
├───utilities
├───ConfigReader.py
├───environment.py
├───Login.feature
├───requirements.txt
```