不知道大家有没有用过 metersphere 使用的过程中真的各种问题虽然整体还算能用但是小问题也是层出不穷 。我现在要用他的前置脚本弄 2 个时间戳然后作为参数化放到相应里。代码是没问题我自己本地跑过 ok 的 但是一到 ms 这里就是不执行 官方也没个例子 真的是无 fuck 可说不知道有没有朋友懂得告知一下。万分感激
这是控制台的源码
2022-06-08 16:43:55 INFO StandardJMeterEngine Running the test!
2022-06-08 16:43:55 INFO StandardJMeterEngine List of sample_variables: []
2022-06-08 16:43:55 INFO StandardJMeterEngine e315b9d3_e315b9d3: Starting worker with class: class io.metersphere.jmeter.APIBackendListenerClient and queue capacity: 5000
2022-06-08 16:43:55 INFO StandardJMeterEngine e315b9d3_e315b9d3: Started worker with class: class io.metersphere.jmeter.APIBackendListenerClient
2022-06-08 16:43:56 INFO StandardJMeterEngine Starting ThreadGroup: 1 : e315b9d3
2022-06-08 16:43:56 INFO StandardJMeterEngine Starting 1 threads for group e315b9d3.
2022-06-08 16:43:56 INFO StandardJMeterEngine Thread will continue on error
2022-06-08 16:43:56 INFO StandardJMeterEngine Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false
2022-06-08 16:43:56 INFO StandardJMeterEngine Started thread group number 1
2022-06-08 16:43:56 INFO StandardJMeterEngine All thread groups have been started
2022-06-08 16:43:56 INFO e315b9d3 1-1 Thread started: e315b9d3 1-1
2022-06-08 16:43:57 INFO e315b9d3 1-1 encrypt:04d3e98efe9d1b81146aaa44ca06bd818623e7c170056bdb47bd5fdaf10a6de453d692eeb42ff77a616aed10727fe0dcf500f7a1901a3ad9dcab5e47717938a153d4a355d7a97e42984ab1b3219b436da1051fa0559449424580ccf152b89b068f45c0b057a14507b048e9fb6fd64db67fef4932c12c3f940fddba8dfbdd3cf311
2022-06-08 16:44:00 ERROR e315b9d3 1-1 Problem in JSR223 script, 获取今天以及 3 天前的时间戳
AttributeError: 'java.sql.Timestamp' object has no attribute 'timetuple' in