配置jenkins任务
源码管理
构建触发器
构建环境: delete workspace before build starts
use secret tests or files
abort the build if its stuck
add timestamps to the console output
with ant
构建 execute windows batch command,
输入框输入命令举例:注意allure-results是pytest 运行测试用例生成的xml报告所在的目录
cd ATX_AutoTest
pytest ./TestCase --alluredir ../allure-results
构建后操作
Allure Report
Results path输入框输入:
allure-results
jenkins上的Allure Commandline插件会自动解析xml,生成对应的html报告
allure测试报告