zoukankan      html  css  js  c++  java
  • Jenkins+pytest+allure,测试项目持续集成,生成测试报告

    1。 自己准备项目和环境

    2。 Jenkins执行shell命令,  使用pytest执行项目,并且生成allure测试报告(allure-reports)

      pytest --reruns 2 testCase/case/mainFlow --alluredir=allure-reports

      这样就生成了用于制作测试报告的测试数据 allure-reports

    这里的allure-reports会在workspace中生成,最后要在workspace中,将allure-reports生成为可读的allure-report

    3。 使用构建后的操作, allure report,填写对应参数即可

      results: 生成的alluredir, 这里是allure-reports

          report path: 需要查看的allure报告地址,里面存放index.html, 这里是allure-report 

  • 相关阅读:
    第四章5
    第四章4
    第四章3
    第四章2
    第四章1
    第四章例4-8
    第四章例4-7
    第四章例4-6
    第四章例4-5
    第四章例4-4
  • 原文地址:https://www.cnblogs.com/nieliangcai/p/13558727.html
Copyright © 2011-2022 走看看