会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tarzen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
43
下一页
2023年8月28日
银河麒麟桌面V10-通过命令行关闭屏保、睡眠、显示器关闭、安全中心
摘要: 大家好,我是tarzan,最近正在适配银河麒麟。在这里总结一下使用过程的问题。 安装系统过程中或者安装好系统之后会设置一下自动化。 Kylin系统也有很多分支,也在不断更新,命令是否有效自行测试。 关闭屏保 gsettings set org.ukui.screensaver idle-delay
阅读全文
posted @ 2023-08-28 10:30 Tarzen
阅读(19564)
评论(2)
推荐(0)
2023年7月6日
抛开pytest,单单使用playwright打开一个浏览器访问百度
摘要: ## 不用pytest-playwright提供的page pytest使用的时候特别简单直接在用例中添加一个page fixture就可以使用了,如果我们想自己直接调用playwrght怎么办?官网:https://playwright.dev/python/docs/library#usage
阅读全文
posted @ 2023-07-06 01:27 Tarzen
阅读(383)
评论(0)
推荐(0)
断断续续用了两年了playwright做个笔记吧
摘要: pytest+playwright做UI自动化是我最近一直使用的‘套餐’。本文重点playwright,需要对pytest有较深的了解 ## 官网 想系统学习还是要去官网文档:https://playwright.dev/python/docs/intro ## 安装pytest插件:pytest-
阅读全文
posted @ 2023-07-06 00:44 Tarzen
阅读(274)
评论(0)
推荐(0)
2023年6月19日
python3 subprocess.getoutput(cmd) 执行linux命令进入交互模式后一直卡住了
摘要: 进入交互模式是我们预期之外的,记录一下。 进入交互之后linux一直等待你的输入,所有`subprocess.getoutput()`就一直卡着呢~,我们加入`timeout` 通过学习`subprocess`中支持`timeout`有: 
评论(0)
推荐(0)
2023年6月15日
pyautogui.screenshot('test.png') 报错:PyAutoGUI was unable to import pyscreeze (This is likely because you're running...
摘要: 根据提示需要`import pyscreeze`还需要`Pillow`.通过`pip3 list`可以查看到已经安装`PyScreeze==0.1.29`但是不是我手动安装的,应该是`Pillow`或者`pyautogui`下载的时候依赖了`pyscreeze`并且安装了最新版本`0.1.29`。通
阅读全文
posted @ 2023-06-15 13:10 Tarzen
阅读(3732)
评论(0)
推荐(0)
2023年6月12日
pytest 执行报错:AttributeError: module 'pytest' has no attribute 'StashKey'
摘要: 在一台测试机器执行`pytest`命令时报错:`AttributeError: module 'pytest' has no attribute 'StashKey'` 
评论(0)
推荐(0)
2023年6月9日
pytest -fixture-request
摘要: `request`在pytest-fixture经常使用到,具体看看有什么内容: ```python # conftest.py import pytest @pytest.fixture(params=['环境1','环境2']) def fixture1(request): print(requ
阅读全文
posted @ 2023-06-09 20:05 Tarzen
阅读(78)
评论(0)
推荐(0)
pytest 生成的html其他人打开是空的
摘要: 本地打开html文件显示正常是应为本地有css,而被人没有。我们打开浏览器查看F12,加载了本地路径中的css文件 
评论(0)
推荐(0)
2023年6月5日
pytest 中的metadata
摘要: # pytest中元数据(metadata) 注意我们在执行了` pytest testcase/test_001.py -v --html=res.html`生成的html报告中有一些基本信息。这些信息怎么来的,我们能修改吗? 
评论(0)
推荐(0)
pip 升级已经安装的包
摘要: ```shell pip3 install -U pytest ``` 切记是大写U
阅读全文
posted @ 2023-06-05 15:20 Tarzen
阅读(22)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
43
下一页
公告