随笔分类 -  pytest+python+jenkins

pytest自动化
摘要:官网:http://allure.qatools.ru/ --安装 1、Windows 下载安装包,解压 2、配置到path 3、pycharm安装allure-pytest max brew安装 brew install allure --执行 pytest xx.py --allure-feat 阅读全文
posted @ 2021-08-20 15:26 Catonce 阅读(26) 评论(0) 推荐(0) 编辑
摘要:有“ : ”→{ } 有无“ : ”→[ ] 2个-为 [], xx:yy为{} 案例: 阅读全文
posted @ 2021-08-18 15:33 Catonce 阅读(21) 评论(0) 推荐(0) 编辑
摘要:import pytest def deb(x,y): return print("和:",x + y) def dec(x): return x + 1 @pytest.mark.xfail(reason="标记失败的用例") @pytest.mark.web def test_01(): ass 阅读全文
posted @ 2021-08-17 19:38 Catonce 阅读(43) 评论(0) 推荐(0) 编辑
摘要:转载自:https://blog.csdn.net/qq_42610167/article/details/101204066 感谢博主:天蝎座的测试之旅 文章目录 一:pytest的介绍,安装,框架结构,执行方式 1,特点 2,安装 3, pytest的框架结构 4,执行方式 二:Pytest - 阅读全文
posted @ 2020-11-18 23:39 Catonce 阅读(239) 评论(0) 推荐(0) 编辑
摘要:1、pytest -k add text_xx.py 运行包含了字符串add的用例 2、pytest -q test_xx.py 减少运行的冗长 3、pytest -x test_xx.py 调试用例,有用例就退出 阅读全文
posted @ 2020-10-17 10:08 Catonce 阅读(60) 评论(0) 推荐(0) 编辑
摘要:火狐插件搜索,安装,支持录制执行的web测试工具 阅读全文
posted @ 2020-10-15 01:21 Catonce 阅读(116) 评论(0) 推荐(0) 编辑
摘要:一: 安装tomact,安装jenkins,配置项目的目录java_home 二: 启动jenkins,将脚本项目工程复制到jenkins生成的工作目录中 三: 创建任务→配置Execute Windows batch command脚本 四、 创建任务节点 关联节点 五、 配置THML报告,涉及插 阅读全文
posted @ 2020-10-11 13:21 Catonce 阅读(157) 评论(0) 推荐(0) 编辑
摘要:一、解压缩tomcat 二、安装jenkins,安装目录:tomact解压缩跟目录→webapps 三、jenkins安装成功后,查看webapps找到jenkins.xml文件,修改java_home的valve,以下是已经修改好的效果 四、 增加以下环境变量 阅读全文
posted @ 2020-10-11 12:14 Catonce 阅读(176) 评论(0) 推荐(0) 编辑
摘要:--问题现象: - 项目跟目录创建pytest.ini文件,写入内容: [pytest]junit_family=legacy - 后再执行pytest指令效果 阅读全文
posted @ 2020-10-10 02:01 Catonce 阅读(85) 评论(0) 推荐(0) 编辑
摘要:国内插件地址: http://mirror.esuni.jp/jenkins/updates/update-center.json - 重启jenkins: 在浏览器输入:http://{ip}:8888/restart ,重启Jenkins - 设置jenkins浏览器启动节点: cmd D:\P 阅读全文
posted @ 2020-10-09 01:27 Catonce 阅读(58) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示