自动化测试
huiyifan_python
这个作者很懒,什么都没留下…
展开
-
pytest+jenkins+allure报告生成问题
第一次尝试在Jenkins上生成allure报告,记录一下自己踩的坑!一 :配置第一步:装插件第二步:全局配置 --> Allure Commandline中刚开始一般喜欢这么配,这快要注意,后面的报错会出现在这里,还需要改第三步:项目构建设置,我的代码是git管理,这里命令切记要输入执行生成allure数据,不能把这个命令写入到脚本中,不然没数据第四步:构建后操作,这里只要注意报告路径,根据自己项目来写-----------------------------原创 2022-03-23 17:23:07 · 1281 阅读 · 1 评论 -
appium进行微信小程序测试找不到context
appium进行微信小程序测试get contexts只能获取['NATIVE_APP'],切换微信版本7.0.22仍然找不到。更早的微信版本无法安装。。。。。。求指教,现在小程序测试哪个工具更适合。原创 2021-11-16 15:14:01 · 413 阅读 · 0 评论 -
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 · 2288 阅读 · 0 评论 -
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 · 330 阅读 · 3 评论 -
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 · 846 阅读 · 0 评论