Introduction and configuration of Pytest+allure test report

allure test report:

  Allure is an open source tool specially used to display test results. Allure can be integrated with many test frameworks, such as: Java's Junit, TestNG, Python's pytest, etc.

  Allure will save the execution data of the test case to a json file, and then use allure's command line to convert the file into HTML and present it.

The steps to build allure are as follows:

1. Use the command pip install allure-pytest to install the allure plug-in
2. Install the allure command line tool:
2.1 Install jdk and configure the environment variables. The allure command line tool is developed by java;
2.2 Through the address: https://github.com/ allure-framework/allure2/releases Download the latest version of the allure command-line tool and unzip it.
2.3 Configure environment variables: add ALLURE_HOME: the decompression path of the allure command-line tool is appended at the end of the path; %ALLURE_HOME%\bin; or directly appended at the end of the path Allure's decompression path

Practical case

Optical theory is useless, you have to learn to follow along, and you have to do it yourself, so that you can apply what you have learned to practice. At this time, you can learn from some actual combat cases.

If it is helpful to you, please like and collect it to give the author an encouragement. It is also convenient for you to quickly find it next time.

If you don’t understand, please consult the small card below. The blogger also hopes to learn and progress with like-minded testers

At the right age, choose the right position, and try to give full play to your own advantages.

My road of automated test development is inseparable from the plan of each stage along the way, because I like planning and summarizing,

Test and develop video tutorials, study notes and receive portals! ! !

Guess you like

Origin blog.csdn.net/Liuyanan990830/article/details/130322750