随笔分类 - 自动化测试
摘要:locust+pytest+websocket-client简单试用
阅读全文
摘要:electron+spectron+mocha 实现electron桌面版APP UI测试(打开APP ,关闭APP)
阅读全文
摘要:环境搭建 & 项目结构
阅读全文
摘要:fixture | test | Selector | ClientFunction
阅读全文
摘要:写在前面: 其实之前有看到过在conftest.py 里面可以调整测试用例执行顺序的方法,只不过基于 不需要使用 的原因,没有记录如何调整。 在公众号看到推送用这两个插件轻松解决测试用例的依赖执行问题好奇点进去看看。做下记录吧。万一以后有用呢。 安装 pip install pytest-order
阅读全文
摘要:如何执行runner文件?node module 如何管理包? ESlint 如何使用?npm切换国内源?多个js文件共用fixtrue?
阅读全文
摘要:WEB GUI自动化测试,语言:JavaScript; testcafe支持PageObject模式, 截图,录频,自动生成测试报告,配置参数,支持多浏览器同时测试。
阅读全文
摘要:pytest-parallel 库 安装 pipenv install pytest-parallel 使用 --workers auto 多进程 缺陷 暂时不知道如何使fixture只执行一次 pytest-xdist 库 安装 pipenv install pytest-xdist 使用 -n
阅读全文
摘要:安装 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'
阅读全文
摘要:source:https://www.jianshu.com/p/ebf3b46507e8 -s -v 输出更详细的报告 -vv 当对比的两个数据较大时,更详细的指出错误的地方 --html= 输出html格式测试报告 --junit-xml= 输出xml格式测试报告 --maxfail 明确指明用
阅读全文
摘要:学习教程 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:fixture;yield;html测试报告
阅读全文
摘要:1.问题:pytest运行报错,AttributeError: 'Function' object has no attribute 'get_marker解决方法 解决方法: 更新pytest_remotedata 或 pytest 2.__file__ 是什么? 当前文件路径 3.使用pytes
阅读全文
摘要:1.数据驱动(文件) 2.parameterized 支持pip安装,pip install parameterized 例子: import unittestfrom selenium import webdriverfrom parameterized import parameterizedf
阅读全文
摘要:Selenium WebDriver&WebElement(元素定位)
阅读全文