Article directory
1. Install and configure the JAVA environment
Allure is developed based on Java, so Java 8 or above needs to be installed in advance.
1. Download jdk
jdk download address: http://www.codebaoku.com/jdk/jdk-oracle-jdk1-8.html
Select jdk8, the download is complete:
double-click to install, pay attention to remember the selected path during the installation process (there is a jdk package and a jre package save path selection, I changed the path to D:\java\JDK and D:\java \JRE).
2. Configure environment variables
(1) This computer→Properties→Advanced System Settings→Environment Variables→Edit the system variable Path→Add the installed jre\bin path
(2) This computer→Properties→Advanced System Settings→Environment Variables→Add the system variable JAVA_HOME value to the installed jdk path
3. Inspection
Enter in the DOS window: java -version
, if the following is displayed, the configuration is successful:
2. Install the allure-pytest plugin
Enter the command in the DOS window: pip3 install allure-pytest
if the words "Successflly" appear, the installation is successful.
3. Download and install Allure
1. Download Allure
Allure compressed package download address: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/
Unzip after downloading.
2. Configure environment variables
This Computer→Properties→Advanced System Settings→Environment Variables→Edit the system variable Path→Add the decompressed allure\bin directory
3. Inspection
Enter in the DOS window: allure
, if the following is displayed, the configuration is successful:
so far the installation and environment configuration of the Allure test report is completed.