Behave Allure Reporting tool

Below are the steps to follow for configuring the allure report for the Behave framework.

  • Install allure-behave libraries
  • Configure allure.bat file (Download and Set Environment variable)
  • Write the method to save steps in allure report
  • Create a method to save screenshots
  • Run allure command
  • Generate Report
  • Open Allure Report

1. Install allure-behave libraries

Install the allure behave libraries from pip command. For more information look into the behave allure link click here to open.

pip install allure-behave



2. Configure allure.bat file

  • Download allure.bat file
  • Open the link
  • Scroll to “2.1.4 Manual Installation” step
  • Click on the link as shown in below image
  • Allure bat file download
  • Now it will open Maven central library for allure
  • If it shows any error as 500 then type “https://” in address bar and click enter
  • Click on required version
  • Download the zip file
  • Download allure zip
  • Unzip the folder and copy it in some path

Set Environment variable for allure.bat file

Configuration in Windows

1. After unzipping allure bat file. Now copy the path of allure.bat file which is present in the unzipped folder of allure in bin.

Allure Path

2. Now set the environment variable path for allure.bat file

Right click on My Computer or This PC  → Click on properties → Click on Advanced System settings → Click on Environment variables

3. Select the Path and Click on the Edit button.

Edit Path

4. Now click on New button and paste the allure.bat file path and click OK

Add Path

Allure version

Now open new terminal and type “ allure --version” to find allure

allure --version



Configuration in Mac


i.   open terminal and type “ vim ~/.zshrc “
ii.  export PATH="$PATH:$HOME/allure/bin"
iii. After we save the path.Now click on the “esc” button and type “:wq!” to save and exist.
iv. Now open new terminal and type “ allure --version” to find allure version