How to generate reports in Behave-Python?

前端 未结 5 995
野趣味
野趣味 2020-12-17 03:35

For Java there are external report generation tools like extent-report,testNG. The Junit produces the xml format output for individual feature file. To get a detailed report

5条回答
  •  星月不相逢
    2020-12-17 03:58

    Steps to generate allure report in Python behave framework.

    1. Install the allure

      pip install allure-behave

    2. Download the Allure exe file https://bintray.com/qameta/generic/allure2/2.6.0#files/io%2Fqameta%2Fallure%2Fallure%2F2.6.0

    3. Extract it and add the bin path into the environment variable(system variable path).

      C:\Users\arya\Downloads\allure-2.6.0\allure-2.6.0\bin

    4. Open cmd prompt and go where the xml report is present and give the below cmd.

      Type allure generate and give the path where your xml files are present.

      D:\automation\api\reports>allure generate D:\automation\api\reports

      Report successfully generated to allure-report

    5. Go to D:\automation\api\reports\allure-report and open the index.html file on Microsoft Edge browser.

    Allure report is not working in Chrome or Firefox or IE browser.

提交回复
热议问题