①当我们正常运行测试用例并生成allure测试报告的时候,会将测试方法中生成的log日志或者捕获控制台上的print输出等等添加到allure测试报告的测试步骤中。

【注意】默认的效果是自动捕获控制台上的log日志或者print输出添加至allure测试报告的Test Body中

pytest执行之命令行参数--allure-no-capture:Do not attach pytest captured logging/stdout/stderr to Allure Report

pytest执行之命令行参数--allure-no-capture:Do not attach pytest captured logging/stdout/stderr to Allure Report②我们在pytest命令行方式运行时添加 --allure-no-capture 参数,可以取消添加程序中捕获到控制台或者终端的log日志或者print输出到allure测试报告的Test Body中。

pytest执行之命令行参数--allure-no-capture:Do not attach pytest captured logging/stdout/stderr to Allure Report

pytest执行之命令行参数--allure-no-capture:Do not attach pytest captured logging/stdout/stderr to Allure Report

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-02-26
  • 2022-01-26
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
猜你喜欢
  • 2021-09-21
  • 2021-07-14
  • 2021-12-05
  • 2021-06-17
  • 2021-09-25
  • 2021-05-27
相关资源
相似解决方案