allure installation and environment variable configuration

Table of contents

1. Download the allure file

2. Configure environment variables 


foreword

Allure can output very beautiful test reports, and can also be perfectly combined with pytest. It can not only render pages, but also control the execution of use cases. The following is a detailed introduction and summary of the use of allure.

The environment that needs to be prepared:

  • python
  • pytest
  • allure-pytest
  • alluretools

allure use case description

Instructions parameter value Parameter Description
@allure.epic() epic description The concept in agile, to describe and classify use cases or use case sets
@allure.feature() module name Similar to epic, but lower level than epic
@allure.story() user story Similar to epic, but lower than feature level
@allure.title (the title of the use case) title of the use case Rename the use case name of the html report
@allure.testcase() URL of the test case Similar to link
@allure.issue() defect Similar to link
@allure.description() use case description Describe the test case
@allure.step() Steps Steps to make a test case
@allure.severity() use case class blocker,critical,normal,minor,trivial
@allure.link() Link Define a link to display in the test report (recommended)
@allure.attachment() appendix report add attachment

 

1. Download the allure file

   1. Official website download address: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/

 windows download .zip package on it

 2. Just unzip it after downloading (remember the path)

2. Configure environment variables 

    1. Copy path such as: D:\software\Python_install\allure-2.19.0\bin

    2. Enter: path at the search box at the bottom of the computer

    3. Environment variables ----"New environment editor----"Add D:\software\Python_install\allure-2.19.0\bin ---"Save

    4. Enter where allure in cmd to see if it can be found

 

 At this point allure installation and configuration is successful! ! ! !

Guess you like

Origin blog.csdn.net/weixin_46474921/article/details/127387709