习惯性伸手党区 有没有群里的朋友用 metersphere 比较多的。或者就在这公司上班的问个问题

一个爱学习的小白 · 2022年06月08日 · 最后由 皮大大的豆花皮 回复于 2023年09月07日 · 2400 次阅读

不知道大家有没有用过 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

共收到 4 条回复 时间 点赞

写脚本还是用 pycharm 吧,至少这些小问题不会出现

同学你的问题可以参考这个帖子看看能否解决:https://blog.csdn.net/gaoxuetest/article/details/124403042
有其他疑问需要解答的也可以关注我们 MeterSphere 一站式开源测试平台公众号,加入我们官方社区交流群,群内可以进行技术交流,有技术人员在群内专门解答~

我都没把项目跑起来 都没有见到你这个 GUI
不知道这玩意咋安装

MeterSphere 回复

有没有案例看下 python 脚本引入怎么弄的呢?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册