会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
以泪为证
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年12月8日
怎么测试PB协议的接口:
摘要: 什么是PB协议:Protocol Buffer是Google提供的一种数据序列化协议: 稳定可维护的Node socket.io服务(socket篇) PB的动态编译的特性和嵌套message,数据结构简单化(数据篇) 前端对于二级制的的处理,例如ArrayBuffer,序列化与反序列化,MD5加密
阅读全文
posted @ 2020-12-08 11:12 以泪为证
阅读(2024)
评论(0)
推荐(0)
2020年11月20日
arthas、redis、aes、rsa、zk、kafka
摘要: 1、下载 wget http://10.177.240.232:8000/arthasInstall.sh 2、安装 bash arthasInstall.sh 3、使用 切换到service用户, 到/home/service/app/*/*/release 的任意工程目录下 执行:arthas
阅读全文
posted @ 2020-11-20 16:19 以泪为证
阅读(191)
评论(0)
推荐(0)
2020年11月5日
接口测试
摘要: 获取表格内容sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '')))class GetExcel(object): """封装excel读取""" def __init__(self, tableNam
阅读全文
posted @ 2020-11-05 16:10 以泪为证
阅读(252)
评论(0)
推荐(0)
2020年8月26日
遇到dubbo接口 ,用python怎么写模拟请求呢?
摘要: # -*- coding=utf-8 -*-import jsonimport telnetlibimport socketclass dubbo(telnetlib.Telnet): promat = 'dubbo>' def __init__(self, host=None, port=0):
阅读全文
posted @ 2020-08-26 14:50 以泪为证
阅读(374)
评论(0)
推荐(0)
2020年1月15日
python相同参数—不同链接循环请求
摘要: # -*- coding: utf-8 -*-import osimport timeimport requestsproxies = {'http': 'http://localhost:8888', 'https': 'http://localhost:8888'}file_path = os.
阅读全文
posted @ 2020-01-15 15:36 以泪为证
阅读(518)
评论(0)
推荐(0)
2020年1月3日
python实时查询数据的时候,无法感知数据库变化如何操作。
摘要: 在做一个otp验证的时候,因为每次都要点击发送验证码,然后去数据库查询这条验证码 先来公共函数 # coding=utf-8import MySQLdbclass MySql(): def __init__(self,db): self.mysql = MySQLdb.Connect( host="
阅读全文
posted @ 2020-01-03 17:32 以泪为证
阅读(635)
评论(0)
推荐(0)
2019年12月27日
uiautomator2 怎么做app UI自动化
摘要: 相对于appium操作appium 来做ui自动化时 uiautomator2要简洁多。 例如做app的登录相关user 先写好用例: 然后在setup那里把启动app 写成初始化 然后封装user的点击输入点击下一步操作为公共方法: import uiautomator2 as u2import
阅读全文
posted @ 2019-12-27 13:42 以泪为证
阅读(1071)
评论(0)
推荐(0)
2019年12月24日
python2.7之获取某个文件下文件名
摘要: def file_name(file_dir): """ 获取文件夹下面的pdf文件——第一个for循环 获取得到的pdf文件包含“-Y”的文件——第二个for循环 :param file_dir: :return: """ file_name=[] for files in os.listdir(
阅读全文
posted @ 2019-12-24 20:05 以泪为证
阅读(857)
评论(0)
推荐(0)
2019年12月23日
python2.7之日期操作
摘要: # -*- coding: utf-8 -*-import timefrom datetime import datetimefrom datetime import timedeltadef get_time( time_type , delta_days): """ 获取活动时间,根据type、
阅读全文
posted @ 2019-12-23 19:42 以泪为证
阅读(738)
评论(0)
推荐(0)
2019年12月20日
curl命令详解
摘要: curl -X "POST"或者"GET" 设置请求方式 curl -b /test/cookie.txt 接接口地址 请求之前需要鉴权cookie curl -x 192.168.0.1:10086 http://www.baidu.com curl支持通过内置option:-x支持设置代理 cu
阅读全文
posted @ 2019-12-20 14:31 以泪为证
阅读(2163)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告