Loading

随笔分类 -  自动化测试

摘要:locust+pytest+websocket-client简单试用 阅读全文
posted @ 2021-06-17 19:05 Tester-Dolores 阅读(237) 评论(0) 推荐(0)
摘要:electron+spectron+mocha 实现electron桌面版APP UI测试(打开APP ,关闭APP) 阅读全文
posted @ 2021-06-02 18:32 Tester-Dolores 阅读(2373) 评论(0) 推荐(0)
摘要:环境搭建 & 项目结构 阅读全文
posted @ 2021-02-20 08:54 Tester-Dolores 阅读(333) 评论(0) 推荐(0)
摘要:fixture | test | Selector | ClientFunction 阅读全文
posted @ 2021-02-04 14:18 Tester-Dolores 阅读(394) 评论(0) 推荐(0)
摘要:写在前面: 其实之前有看到过在conftest.py 里面可以调整测试用例执行顺序的方法,只不过基于 不需要使用 的原因,没有记录如何调整。 在公众号看到推送用这两个插件轻松解决测试用例的依赖执行问题好奇点进去看看。做下记录吧。万一以后有用呢。 安装 pip install pytest-order 阅读全文
posted @ 2020-11-05 14:35 Tester-Dolores 阅读(363) 评论(0) 推荐(0)
摘要:如何执行runner文件?node module 如何管理包? ESlint 如何使用?npm切换国内源?多个js文件共用fixtrue? 阅读全文
posted @ 2020-09-08 15:31 Tester-Dolores 阅读(316) 评论(0) 推荐(0)
摘要:无 阅读全文
posted @ 2020-08-09 16:41 Tester-Dolores 阅读(69) 评论(0) 推荐(0)
摘要:WEB GUI自动化测试,语言:JavaScript; testcafe支持PageObject模式, 截图,录频,自动生成测试报告,配置参数,支持多浏览器同时测试。 阅读全文
posted @ 2020-08-05 15:28 Tester-Dolores 阅读(475) 评论(0) 推荐(0)
摘要:pytest-parallel 库 安装 pipenv install pytest-parallel 使用 --workers auto 多进程 缺陷 暂时不知道如何使fixture只执行一次 pytest-xdist 库 安装 pipenv install pytest-xdist 使用 -n 阅读全文
posted @ 2020-07-09 10:11 Tester-Dolores 阅读(215) 评论(0) 推荐(0)
摘要:安装 pip install pytest-assume 使用 方法 一: pytest.assume(1==2,'1!=2') 输出 1!=2 assert false 方法 二: from pytest import assume with assume: assert 1==2,'1!=2' 阅读全文
posted @ 2020-07-02 23:00 Tester-Dolores 阅读(170) 评论(0) 推荐(0)
摘要:source:https://www.jianshu.com/p/ebf3b46507e8 -s -v 输出更详细的报告 -vv 当对比的两个数据较大时,更详细的指出错误的地方 --html= 输出html格式测试报告 --junit-xml= 输出xml格式测试报告 --maxfail 明确指明用 阅读全文
posted @ 2020-07-02 00:23 Tester-Dolores 阅读(54) 评论(0) 推荐(0)
摘要:学习教程 https://cncert.github.io/requests-html-doc-cn/#/?id=%e5%ae%89%e8%a3%85 1.安装 pip install requests-html 2.使用 from requests_html import HTMLSession 阅读全文
posted @ 2020-07-02 00:14 Tester-Dolores 阅读(64) 评论(0) 推荐(0)
摘要:1 import pytest 2 source:https://www.cnblogs.com/yoyoketang/p/9492132.html 3 4 # 测试账号数据 5 test_user_data = [{"user": "admin1", "psw": "111111"}, 6 {"u 阅读全文
posted @ 2020-05-16 01:32 Tester-Dolores 阅读(126) 评论(0) 推荐(0)
摘要:1 import pytest 2 source:https://github.com/pytest-dev/pytest/blob/master/doc/en/fixture.rst 3 4 @pytest.fixture(params=[0, 1, pytest.param(2, marks=p 阅读全文
posted @ 2020-05-16 01:22 Tester-Dolores 阅读(53) 评论(0) 推荐(0)
摘要:parametrize;yaml 阅读全文
posted @ 2020-02-16 13:19 Tester-Dolores 阅读(69) 评论(0) 推荐(0)
摘要:fixture;yield;html测试报告 阅读全文
posted @ 2019-11-29 02:45 Tester-Dolores 阅读(67) 评论(0) 推荐(0)
摘要:1.问题:pytest运行报错,AttributeError: 'Function' object has no attribute 'get_marker解决方法 解决方法: 更新pytest_remotedata 或 pytest 2.__file__ 是什么? 当前文件路径 3.使用pytes 阅读全文
posted @ 2019-11-25 14:05 Tester-Dolores 阅读(354) 评论(0) 推荐(0)
摘要:yagmail 阅读全文
posted @ 2019-11-12 01:43 Tester-Dolores 阅读(116) 评论(0) 推荐(0)
摘要:1.数据驱动(文件) 2.parameterized 支持pip安装,pip install parameterized 例子: import unittestfrom selenium import webdriverfrom parameterized import parameterizedf 阅读全文
posted @ 2019-11-12 01:27 Tester-Dolores 阅读(56) 评论(0) 推荐(0)
摘要:Selenium WebDriver&WebElement(元素定位) 阅读全文
posted @ 2019-08-16 23:37 Tester-Dolores 阅读(185) 评论(0) 推荐(0)