介绍
本文将介绍通过jenkins+robotframework+allure report来打造美观可视化的测试报告
首先,安装如下库:
sudo pip install robotframework
sudo pip install allure-robotframework
搭建
步骤 0
下面是一个基本的RF样例
$ more mytest.robot
*** Settings ***
Library OperatingSystem
*** Variables ***
${MESSAGE} Hello, world!
*** Test Cases ***
My Test
[Documentation] Example test
Log ${MESSAGE}
My Keyword /tmp
Another Test
Should Be Equal ${MESSAGE} Hello, world!
*** Keywords ***
My Keyword
[Arguments] ${path}
Directory Should Exist ${path}
我们来运行这个测试用例来生成经典的HTML 格式报告以及JSON格式的Allure报告
$ robot --listener allure_robotframework --outputdir ./output/robot mytest.robot
==============================================================================
Mytest
&#