- 博客(10)
- 收藏
- 关注
原创 uiautomator2运行过程中的错误处理:uiautomator2.JsonRpcError: -32001 Server error: java.lang.SecurityExceptio...
uiautomator2运行过程中的错误处理:uiautomator2.JsonRpcError: -32001 Server error: java.lang.SecurityExceptio...
2023-03-20 15:30:37
753
原创 pytest+jenkins+allure报告生成问题
第一次尝试在Jenkins上生成allure报告,记录一下自己踩的坑!一 :配置第一步:装插件第二步:全局配置 --> Allure Commandline中刚开始一般喜欢这么配,这快要注意,后面的报错会出现在这里,还需要改第三步:项目构建设置,我的代码是git管理,这里命令切记要输入执行生成allure数据,不能把这个命令写入到脚本中,不然没数据第四步:构建后操作,这里只要注意报告路径,根据自己项目来写-----------------------------
2022-03-23 17:23:07
1240
1
原创 appium进行微信小程序测试找不到context
appium进行微信小程序测试get contexts只能获取['NATIVE_APP'],切换微信版本7.0.22仍然找不到。更早的微信版本无法安装。。。。。。求指教,现在小程序测试哪个工具更适合。
2021-11-16 15:14:01
405
原创 SDK manager包缺失
第一次打开SDK manager.exe 发现包只有两个:点击 Tools ---- options , 查看下图中sever、port 有内容的话删除,再点击 Clear Cache. 点击close 关闭关闭manager 后重新打开就好
2021-10-21 14:52:06
588
原创 robotframework关键字缺失“open browser”解决
新安装的RF框架导入selenium2library库后仍然找不到open browser关键字,1、降低robot framework版本:pip install robotframework==3.1.22、先卸掉selniumlibrary和selenium2librany,然后再安装selinium2librarypip uninstall robotframework-seleniumlibrarypipuninstallrobotframework-se...
2021-09-30 10:01:39
2240
转载 python中logging模块学习使用
# -*- coding:utf-8 -*-import logging# 创建日志器对象logger = logging.getLogger(__name__)# 设置处理器con_hanger = logging.StreamHandler()# 设置logger可输出日志级别范围con_hanger.setLevel(logging.DEBUG)# 设置处理器的格式formatter = logging.Formatter('%(asctime)s - %(name)s.
2021-04-14 16:45:18
83
原创 pytest之fixture问题求解
使用pytest测试框架,在conftest添加打开网页链接后在测试用例中如何继续用ele_obj# -*- coding:utf-8 -*-import pytest,os,sysprint(sys.path)from selenium import webdriverfrom Auto_UI.common import read_configurl = read_config.Get_config().read_config()@pytest.fixture()def ope
2021-01-13 19:08:54
291
3
原创 response.text 和 response.content 的区别
#!/usr/bin/evn python# -*- coding:utf-8 -*-import requestsresponse = requests.get('https://www.baidu.com')print(response)print(response.text) #打印的是乱码(解码方式和编码方式不一致)print(response.encoding) #查看响应内容的编码方式response.encoding = 'utf-8' #指定解码方式print(r...
2020-07-15 01:50:41
1021
转载 dump 与 load dumps与loads
#!/usr/bin/env python# -*- coding: utf-8 -*-#@Time : 2020/7/4 21:56#@Author : HDD#@Site : #@File : remember_me.py#@Software: PyCharmimport jsondef get_stored_username(): filename = 'username.json' try: with open(...
2020-07-04 22:13:44
189
原创 python-unittest报Empty suite
1、函数必须是test开头class NamesTestCase(unittest.TestCase): """测试 test_name_function.py """ def test_first_last_name(self): """ 能够正确地处理像Janis Joplin这样的姓名吗? """ formatted_name = get_function_name('janis','joplin') self.assertEqu
2020-07-04 20:23:39
822
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人