前提:已添加好 HTTP请求默认值、HTTP信息头管理器 创建Http请求 添加BeanShell PreProcessor 前置处理器 这段代码主要是 获取当前时间,格式为:年-月-日,然后将获取到的日期存入var变量中(vars.put("getCurrentTime",getCurrentTi Read More
posted @ 2021-10-13 10:35 eosclover Views(754) Comments(0) Diggs(0) Edit
遇到的问题: jmeter 在使用beanshell PreProcessor 前置处理器时,编写了以下脚本,执行后log 日志中报错 import java.text.SimpleDateFormat; import java.util.Calendar; //获取当前月份 log.info("获 Read More
posted @ 2021-10-13 09:50 eosclover Views(3729) Comments(0) Diggs(0) Edit