摘要: 这是因为目标区域无法匹配到对应的值,使用IFERROR去过滤掉这种错误。例如 =IFERROR(IF(XMATCH(T4,AA:AA,0),"Exported"),"Filter Out") 这样如果T4在AA列查询不到的话,就会显示Filter Out,而不是#N/A了 阅读全文
posted @ 2024-05-30 09:42 蜗牛果果 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Excel filter list里显示有错误数据#name?(查找#name?原因参考:https://support.microsoft.com/en-us/office/how-to-correct-a-name-error-b6d54e31-a743-4d7d-9b61-40002a7b42 阅读全文
posted @ 2024-05-29 15:03 蜗牛果果 阅读(4) 评论(0) 推荐(0) 编辑
摘要: CSV文件系统默认分隔符是逗号(,),但是如果自定义过分隔符,再次保存就会变成分号(;),此时再用逗号去读数据时程序会报错。 例如设置csv格式如下: Python方法 pd.read_csv(file_path, delimiter=",") 使用逗号去读取时会报错 Traceback (most 阅读全文
posted @ 2023-08-08 09:12 蜗牛果果 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 能联网的情况 1.使用npm命令安装 npm install cypress 2.官网下载cypress安装 https://www.cypress.io/ 无法联网的情况下 把安装包放在本地 在项目目录下的终端窗口执行以下命令 npm config set CYPRESS_INSTALL_BINA 阅读全文
posted @ 2023-05-16 17:27 蜗牛果果 阅读(54) 评论(0) 推荐(0) 编辑
摘要: @pytest.mark.parametrize(args_name,args_value) args_name:参数名称,用于将参数传递给函数 args_value:参数值(列表和字典列表,元组和字典元组),有n个值则用例执行n次。 传单个参数: class TestCompany(): @pyt 阅读全文
posted @ 2023-05-16 09:19 蜗牛果果 阅读(13) 评论(0) 推荐(0) 编辑
摘要: allure官网 https://github.com/allure-framework/allure2/releases 1. 安装allure-pytest插件 2.下载allure,下载之后解压,解压之后还要配置环境变量(环境变量path下加bin路径) 3.验证allure是否安装成功: d 阅读全文
posted @ 2023-05-16 08:59 蜗牛果果 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 使用Python自己的断言 assert 举例: assert flag is True assert 1 == 2 阅读全文
posted @ 2023-05-15 10:09 蜗牛果果 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1-3优先级逐渐降低: 会话:fixture的session级别最高 class:fixture的class scope的优先级 > setup_class function: fixture的function scope的优先级 > setup_method 阅读全文
posted @ 2023-05-09 22:15 蜗牛果果 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 与全局配置pytest.ini配置文件结合使用(见配置文件章节) 例如 配置文件中设置 markers = #分成三类High/Normal,Low High: smoke test Normal: product test Low: full test cases 分模块执行: - Case中加装 阅读全文
posted @ 2023-05-09 22:08 蜗牛果果 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 安装 1. 安装Python 2. 安装pytest: pip install -U pytest 3. 安装常用插件 pip install -r requirement.txt PS: 常用插件: pytest allure-pytest requests PyYAML pandas openp 阅读全文
posted @ 2023-05-09 21:57 蜗牛果果 阅读(27) 评论(0) 推荐(0) 编辑