摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13890986.html 先看看 allure 命令的帮助文档 cmd 敲 allure -h allure 命令的语法格式 allure [options] [command] [command options] opt 阅读全文
posted @ 2021-09-27 10:48 jokeryy 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13890086.html 背景 pytest 运行 测试用例生成 allure 报告时,当测试用例名称修改后重新运行,会保留历史运行记录 又或者分开运行两个测试用例文件,但是 allure 报告生成目录是同一个,那么 al 阅读全文
posted @ 2021-09-27 10:47 jokeryy 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13889635.html 前言 平时写测试用例也会划分优先级 同样,allure 也提供用例级别,在 allure 报告可以清晰看到不同级别用例的缺陷数量 用例等级介绍 allure 提供的枚举类 等级介绍 blocker 阅读全文
posted @ 2021-09-27 10:44 jokeryy 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13886651.html allure 和 pytest 相关环境安装 # allure pip3 install allure-pytest -i http://pypi.douban.com/simple/ --tru 阅读全文
posted @ 2021-09-27 10:42 jokeryy 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12725509.html 前言 前面几篇文章主要介绍了allure的特性,这篇文章我们就来讲下allure的标记用法 有时候我们写pytest的时候,会用到 @pytest.mark 但并不会显示在allure报告上 而a 阅读全文
posted @ 2021-09-27 10:41 jokeryy 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12726946.html 前言 上一篇文章介绍了两种allure的特性 @allure.description() :添加测试用例描述,一共三种方式哦! @allure.title():指定测试用例标题,默认是函数名哦! 阅读全文
posted @ 2021-09-27 10:40 jokeryy 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12726657.html 前言 上一篇文章介绍了两种allure的特性 @allure.step() 装饰器:可以设置测试步骤,让测试用例的执行过程更加详细 allure.attach() 函数:可以设置需要显示在allu 阅读全文
posted @ 2021-09-27 10:39 jokeryy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12716659.html 前言 allure除了支持pytest自带的特性之外(fixture、parametrize、xfail、skip),自己本身也有强大的特性可以在pytest中使用 @allure.step al 阅读全文
posted @ 2021-09-27 10:37 jokeryy 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12715212.html 前言 前面我们介绍了allure的快速入门,只是单纯的敲allure命令而已 其实allure还有内置的特性可以让我们在pytest代码里面用起来,然后我们生成的报告更加直观、详细、贴合管理层的心 阅读全文
posted @ 2021-09-27 10:36 jokeryy 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12712616.html 官方介绍 Allure Framework是一种灵活的轻量级多语言测试报告工具,不仅可以以简洁的Web报告形式非常简洁地显示已测试的内容,也允许参与开发过程的每个人从日常测试中提取最大程度的有用信 阅读全文
posted @ 2021-09-27 10:35 jokeryy 阅读(135) 评论(0) 推荐(0) 编辑