摘要: 返回\x80\x04\x95\x13\x02\x00\x00\x00\x00\x00\x00 类似这样的乱码值 使用 pickle库处理 这样完美解决卵用的问题 import pickleredis_db = redis()s = r.hget(name="xxx", key="xxx")print 阅读全文
posted @ 2021-09-01 11:32 mahaining 阅读(210) 评论(0) 推荐(0) 编辑
摘要: //Author : JACK //File : App.java //Time : 2020/7/27 15:51 package image_base64; import java.net.URLEncoder; import com.baidu.ai.aip.Base64Util; impor 阅读全文
posted @ 2021-02-07 14:48 mahaining 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 第一步:pip install pytest-allure-adaptor 第二步:编写用例 #执行后自动打开报告 allure serve allure 执行一下命令 生成xml数据 阅读全文
posted @ 2019-09-17 15:19 mahaining 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 全功能Python测试框架:pytest python通用测试框架大多数人用的是unittest+HTMLTestRunner,这段时间看到了pytest文档,发现这个框架和丰富的plugins很好用,所以来学习下pytest. image.png image.png pytest是一个非常成熟的全 阅读全文
posted @ 2019-09-17 10:01 mahaining 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 在使用pip install mysqlclient 报错 然后有使用下再下来的whl包安装 pip install mysqlclient-1.4.2-cp36-cp36m-win_amd64.whl 结果还是报错 最终解决方案 原因是python pip 有两个版本共存的问题 解决方案: 解决方 阅读全文
posted @ 2019-06-21 19:56 mahaining 阅读(3190) 评论(0) 推荐(0) 编辑
摘要: 举例:表名称为case 进入命令行orm 查询 1:python manage.py shell 2:from apps.models import * 1:查询该表所以信息 all函数: case.objects.all(); 2:筛选表中字段信息,get 函数, 1:根据test_name查询数 阅读全文
posted @ 2019-06-16 16:03 mahaining 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 第一步安装node.js: 安装教程: https://www.runoob.com/nodejs/nodejs-install-setup.html 查看是否安装成功: node --version 第二步安装newman: 执行:npm install -g newman 第三步安装newman 阅读全文
posted @ 2019-05-20 11:31 mahaining 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1. 清除一个全局变量 Clear a global variable 对应脚本: postman.clearGlobalVariable("variable_key"); 参数:需要清除的变量的key 2.清除一个环境变量 Clear an environment variable 对应脚本: p 阅读全文
posted @ 2019-05-20 10:49 mahaining 阅读(794) 评论(0) 推荐(0) 编辑
摘要: iostat是I/O statistics(输入/输出统计)的缩写,iostat工具将对系统的磁盘操作活动进行监视。它的特点是汇报磁盘活动统计情况,同时也会汇报出CPU使用情况。iostat也有一个弱点,就是它不能对某个进程进行深入分析,仅对系统的整体情况进行分析 执行iostat 1:如果%ios 阅读全文
posted @ 2019-04-05 20:18 mahaining 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 1.压测任务需求的确认确定好工作范围:首先分析压测最容易出现瓶颈的地方,有目的的进行测试。用户更关心整个系统中哪个环节的性能情况也会影响工作范围。 2. 压力测试 通过不断加压被测系统,直到性能指标达到饱和,这种测试能够找到系统的极限,为系统调优提供数据 性能测试 通过模拟生产运行的业务压力量和使用 阅读全文
posted @ 2019-01-11 20:54 mahaining 阅读(296) 评论(0) 推荐(0) 编辑