摘要: 本文参考:https://www.cnblogs.com/poloyy/category/1870863.html Dokcer命令 docker run 创建一个新容器并运行 例:docker run -d --name tomcat8 -p 9999:8080 tomcat 后台运行一个容器并将 阅读全文
posted @ 2021-09-27 15:37 jokeryy 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://zhuanlan.zhihu.com/p/49193525 基本步骤: 安装Node.js 安装JDK,及配置环境变量 安装SDK,及配置环境变量 安装Appium桌面版本 以上涉及安装的软件,基本都是国外的,所以网站下载巨慢,建议直接从我百度网盘下, 资源链接已于2021 阅读全文
posted @ 2021-09-27 14:14 jokeryy 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/14708825.html 背景 使用 pytest-xdist 分布式插件可以加快运行,充分利用机器多核 CPU 的优势 将常用功能放到 fixture,可以提高复用性和维护性 做接口自动化测试的时候,通常我们会将登录接口 阅读全文
posted @ 2021-09-27 10:53 jokeryy 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13894043.html 前言 @allure.title 和 @allure.description 都是装饰器,给测试用例提供标题和描述 其实 allure 还提供了在测试用例执行过程中动态指定标题和描述等标签的方法 阅读全文
posted @ 2021-09-27 10:51 jokeryy 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/13891265.html 前言 参数化 @pytest.mark.parametrize 的学习:https://www.cnblogs.com/poloyy/p/12675457.html 默认 allure 报告上的测 阅读全文
posted @ 2021-09-27 10:50 jokeryy 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 本文转自: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 阅读(113) 评论(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 阅读(742) 评论(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 阅读(183) 评论(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) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12703290.html pytest-xdist分布式测试的原理 前言 xdist的分布式类似于一主多从的结构,master机负责下发命令,控制slave机;slave机根据master机的命令执行特定测试任务 在xdi 阅读全文
posted @ 2021-09-27 10:27 jokeryy 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12694861.html 前言 平常我们功能测试用例非常多时,比如有1千条用例,假设每个用例执行需要1分钟,如果单个测试人员执行需要1000分钟才能跑完 当项目非常紧急时,会需要协调多个测试资源来把任务分成两部分,于是执行 阅读全文
posted @ 2021-09-27 10:22 jokeryy 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12704658.html 前言 pytest中可以用python的assert断言,也可以写多个断言,但一个失败,后面的断言将不再执行 安装插件 pip3 install pytest-assume -i http://p 阅读全文
posted @ 2021-09-27 10:21 jokeryy 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12702294.html 前言 pytest配置文件可以改变pytest的运行方式,它是一个固定的文件pytest.ini文件,读取配置信息,按指定的方式去运行 非test文件 pytest里面有些文件是非test文件 p 阅读全文
posted @ 2021-09-27 10:19 jokeryy 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/poloyy/p/12691240.html 前言 平常在做功能测试的时候,经常会遇到某个模块不稳定,偶然会出现一些bug,对于这种问题我们会针对此用例反复执行多次,最终复现出问题来 自动化运行用例时候,也会出现偶然的bug,可以针对单个用例 阅读全文
posted @ 2021-09-27 10:18 jokeryy 阅读(97) 评论(0) 推荐(0) 编辑