摘要: //将日期格式转换为时间戳 String begin = vars.get("first"); String end = vars.get("last"); Date beginTime1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(beg 阅读全文
posted @ 2021-08-19 14:55 youth0101 阅读(774) 评论(0) 推荐(0) 编辑
摘要: //【1】当前凌晨时间戳long nowTime =System.currentTimeMillis(); long todayStartTime =nowTime - ((nowTime + TimeZone.getDefault().getRawOffset()) % (24 * 60 * 60 阅读全文
posted @ 2021-08-19 14:49 youth0101 阅读(925) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2021-08-16 17:28 youth0101 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-03 17:33 youth0101 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-03-23 11:31 youth0101 阅读(32) 评论(0) 推荐(0) 编辑
摘要: BeanShell Sampler import java.text.SimpleDateFormat; import java.util.Date; import java.text.*; SimpleDateFormat format = new SimpleDateFormat("yyyy-M 阅读全文
posted @ 2021-02-01 16:45 youth0101 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 配置全局变量 Http请求-添加-后置处理器-BeanShell PostProcessor 代码: String verifyCode_g1=bsh.args[0]; print (verifyCode_g1) ${__setProperty(verifyCode,${verifyCode_g1} 阅读全文
posted @ 2020-09-27 18:19 youth0101 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 通过adb操作android设备 连接上数据线,然后把手机开发者模式打开,打开usb调试。 adb命令 在开发和测试中可以通过adb来管理多台设备,一般格式为: adb [-e | -d | <设备序列号>] <子命令> 1、查看连接设备 adb devices 2、多台设备连接选择一台设备 adb 阅读全文
posted @ 2019-12-05 10:12 youth0101 阅读(453) 评论(0) 推荐(0) 编辑
摘要: $.data[?(@.id=="${roleCodeId}")].code ——获取id与${roleCodeId}匹配的code的值 阅读全文
posted @ 2019-12-04 10:00 youth0101 阅读(131) 评论(0) 推荐(0) 编辑
摘要: A线程组的参数传递给B线程组 1、在A线程组中添加一个BeanShell Sampler,设置全局变量 2、在B线程组中使用调用方法:${__property()} 阅读全文
posted @ 2019-12-04 09:59 youth0101 阅读(120) 评论(0) 推荐(0) 编辑