Jenkins integrated allure test report

Foreword

Allure framework is a powerful tool for automated testing report, not only supports multiple programming languages, but also a perfect combination with a variety of integrated tools, including Jenkins, TeamCity, Bamboo, Maven, etc., and therefore favored by many testers, Well, today we simply to explain how to integrate allure Jenkins in the test report

Allure plug-in installation

Jenkins integrated allure test reports, you need to install plug-ins as Allure support

1. Open Jenkins, home page click on [Manage Jenkins]

2. Select [Manage Plugins]

3. Select [Available] option, the search input box Allure, search out the name is called Allure, when the installation name will change to Allure Jenkins Plugin

 Allure Commandline Configuration

1.jenkins configuration page, select Global Configuration Tool [Global Tool Configuration]

 

 2. Global Palace configuration page down to the last item, you will see the "Allure Commandline" items, you can save the configuration map after pressing

Job Configuration

New Job

Jenkins home page click New Job [New Item]

Enter the job name, the freedom to choose the style of the project, click on [ok]

General Configuration

Enter the description and other information, because my project in my local, so I am not here to configure other options, you can set according to actual situation

Source Management (Source Code Management)

Build (Build)

Enter the following command, my test project using a virtual environment

cd ./venv/Scripts
activate && cd ..&& cd .. && python.exe run.py

Construction of the operation (Post-build Actions)

Input Path name, path name indicates where this folder is generated under the project root directory, a folder to save generate html reports prior to depend json, xml, txt and other types of files

Click [Advanced], enter the Report path name, path here will also generated under the project root directory, while preserving the final report html

Once configured all of the above information can be saved

Construction of execution

In the name of the new workspace jenkins pytest-allure directory and copy the project to this directory (the workspace in General can be custom configured so because I did not use the default workspace)

Then click [Build Now] a build

 

View Report

to sum up

The whole process is relatively simple, but can not avoid the problems that arise during the middle, so try to manually operate time, deepen their impression

Reference links https://docs.qameta.io/allure/#_jenkins

Guess you like

Origin www.cnblogs.com/linuxchao/p/linuxchao-jenkins-allure.html