随笔分类 -  Python

摘要:class CompareJson: def compare_json_data(self,expect, actual, errorList,sort,xpath = '.',*args): skip = (arg for arg in args) if isinstance(expect, li 阅读全文
posted @ 2020-04-09 16:52 my_testing_road 阅读(2078) 评论(0) 推荐(0)
摘要:下载whl地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/ 搜索:python_Levenshtein-0.12.0-cp37-cp37m-win_amd64.whl并下载 进入文件目录执行:pip install python_Levenshtein- 阅读全文
posted @ 2020-03-18 10:56 my_testing_road 阅读(5443) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2020-01-10 10:06 my_testing_road 阅读(1) 评论(0) 推荐(0)
摘要:一、断言 1.数据结构判断(将值的内容忽略)通过字典键值、列表长度 2.判断预期与响应完全一致(列表按顺序或没有列表的情况) def assert_equal(self,expect_value,response,*args): # 响应结果中的列表顺序必须与预期结果的顺序完全一致,否则会断言失败 阅读全文
posted @ 2020-01-07 10:06 my_testing_road 阅读(655) 评论(0) 推荐(0)
摘要:一、桌面选中pycharm点击右键-属性-高级 二、实现代码 import os,random command ='netsh interface ip set address "以太网" static 192.168.1.{} 255.255.255.0 192.168.1.1 1'.format 阅读全文
posted @ 2019-12-26 15:08 my_testing_road 阅读(413) 评论(0) 推荐(0)
摘要:一、读取Excel 1.打开excel表格 readbook = xlrd.open_workbook('D:\\automation--interface\\data\\testdata.xls') 2.获取表格中所有sheet sheets = readbook.sheet_names() #返 阅读全文
posted @ 2019-12-15 16:15 my_testing_road 阅读(295) 评论(0) 推荐(0)