摘要: import redef check_chinese(words): regex_str = ".*?([\u4E00-\u9FA5])" match_obj = re.match(regex_str, words) if match_obj: a=match_obj.group(1) if a: 阅读全文
posted @ 2020-09-15 10:13 fyangq 阅读(818) 评论(0) 推荐(0) 编辑
摘要: import json tmp_site_type = [{'type': '比价', 'word': '折扣'}, {'type': '比价', 'word': '礼品'}, {'type': '比价', 'word': '特价'}] tmp_dict = dict() for l in tmp_ 阅读全文
posted @ 2020-09-11 10:37 fyangq 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1、Git下载地址https://www.git-scm.com/download/win 2、安装Git (安装步骤参考https://www.cnblogs.com/xwgcxk/p/9209237.html) 3、从管理员手中拿到用户名、邮箱、密码 假设用户名为: itcats_cn 邮箱为i 阅读全文
posted @ 2020-07-08 15:32 fyangq 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 正则提取器 jsonpath提取 保存响应到文件 阅读全文
posted @ 2020-07-06 14:20 fyangq 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 可以使用前置处理器中的用户参数组件进行数据的提供,在该数据中可以使用固定值也可以使用变量值。 每次迭代更新一次:如果有多个用户/使用变量时勾选,如果不勾选,所有线程用的是同一个值,需要不同的线程用不同的值,需要勾选此选项 参数 (1、可以定义多个参数,每个参数可以赋多个值 (2、在用户值中,可以使用 阅读全文
posted @ 2020-07-06 14:00 fyangq 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1.准备测试数据 第一行写参数名称 2.在Pre-request Script里面设置变量,用文件的数据给变量赋值: 3.在request body 中引用变量 4.打开collection runner: 然后点击运行。 如果要脚本的校验或者加token加入全局变量的化,需要在Tests添加 va 阅读全文
posted @ 2020-07-06 11:04 fyangq 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #test.yaml people_info:- Age: 28 name: End_name: Xin First_name: zhao- Age: 27 name: End_name: yue First_name: sun- Age: 29 name: End_name: xiaobing F 阅读全文
posted @ 2020-07-03 13:44 fyangq 阅读(245) 评论(0) 推荐(0) 编辑
摘要: from redis import StrictRedisimport redisdef redis_operator(userId): # StrictRedis的连接池的实现方式 pool = redis.ConnectionPool(host=host, port=6379,db=0, pas 阅读全文
posted @ 2020-07-03 11:06 fyangq 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 首先检查pycharm上面是否安装了git,没有安装git那么安装一下; file-Settings-Version Control->查看是否安装git 注意这里path to Git 路径要选中自己安装git的路径 然后填写自己github上面的用户名和密码: 那么接下来建立远程仓库并提交代码 阅读全文
posted @ 2020-07-02 14:03 fyangq 阅读(156) 评论(0) 推荐(0) 编辑
摘要: def get_checkcode(id_number_str): id_regex = '[1-9][0-9]{14}([0-9]{2}[0-9X])?' items = [int(item) for item in id_number_str[:-1]] # 加权因子表 factors = (7 阅读全文
posted @ 2020-07-02 11:03 fyangq 阅读(153) 评论(0) 推荐(0) 编辑