随笔分类 - Python
摘要:class CompareJson: def compare_json_data(self,expect, actual, errorList,sort,xpath = '.',*args): skip = (arg for arg in args) if isinstance(expect, li
阅读全文
摘要:下载whl地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/ 搜索:python_Levenshtein-0.12.0-cp37-cp37m-win_amd64.whl并下载 进入文件目录执行:pip install python_Levenshtein-
阅读全文
摘要:一、断言 1.数据结构判断(将值的内容忽略)通过字典键值、列表长度 2.判断预期与响应完全一致(列表按顺序或没有列表的情况) def assert_equal(self,expect_value,response,*args): # 响应结果中的列表顺序必须与预期结果的顺序完全一致,否则会断言失败
阅读全文
摘要:一、桌面选中pycharm点击右键-属性-高级 二、实现代码 import os,random command ='netsh interface ip set address "以太网" static 192.168.1.{} 255.255.255.0 192.168.1.1 1'.format
阅读全文
摘要:一、读取Excel 1.打开excel表格 readbook = xlrd.open_workbook('D:\\automation--interface\\data\\testdata.xls') 2.获取表格中所有sheet sheets = readbook.sheet_names() #返
阅读全文
浙公网安备 33010602011771号