摘要: 1. 何为性能测试/性能测试的流程: 性能测试针对系统的性能指标,建立性能测试模型(例如Jmeter压测脚本),制定性能测试方案,制定监控策略,在场景条件之下执行性能场景,分析判断性能瓶颈并调优,最终得出性能结果来评估系统的性能指标是否满足既定值。 下图中的性能模型是平时所说的业务场景,性能场景执行 阅读全文
posted @ 2020-10-17 20:42 buptqq 阅读(113) 评论(0) 推荐(0)
摘要: 1. install python, set environment variables. 2. pip install selenium 3. 下载与自己浏览器版本匹配的chrome webdriver, 放到python.exe同目录(python安装目录)。 http://npm.taobao 阅读全文
posted @ 2020-06-04 13:01 buptqq 阅读(2818) 评论(3) 推荐(1)
摘要: #!/bin/bash startT=`date +%Y-%m-%dT%H:%M:%S`echo "TIMESTAMP CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS\n">>mem.$startT.txt 阅读全文
posted @ 2020-06-04 12:50 buptqq 阅读(221) 评论(0) 推荐(0)
摘要: 查找file1中每一行是否在file2中,若在输出到InRight.txt, 若不在输出到NotInRight.txt. f1=$1f2=$2 while read mylinedo grepR=`grep $myline $f2` if [[ $grepR != "" ]]; then echo 阅读全文
posted @ 2020-06-04 12:48 buptqq 阅读(191) 评论(0) 推荐(0)
摘要: #获取当前时间的时间戳(%m/%d/%Y %H:%M:%S.ms), 时间部分,毫秒部分def get_cur_timestamp(): ct = time.time() utc_ct = time.gmtime(ct) date_head = str(time.strftime("%m/%d/%Y 阅读全文
posted @ 2020-05-13 14:23 buptqq 阅读(124) 评论(0) 推荐(0)
摘要: #将float类型转化成有固定总位数的数值。 from decimal import * getcontext().prec=5 Decimal('107.23')/Decimal('0.9726') a=str(Decimal('107.23')/Decimal('0.9726')) 阅读全文
posted @ 2020-05-11 17:07 buptqq 阅读(489) 评论(0) 推荐(0)