zyanycall / stressTestPlatform

基于Jmeter实现的在线压测和管理Jmx的平台。
Apache License 2.0
623 stars 343 forks source link

询问执行错误问题(作者可联系我,qq: 395323825) #6

Closed ftvbftvbq closed 5 years ago

ftvbftvbq commented 6 years ago

脚本是读取一个txt文件内的数据,然后执行脚本,发现全部报错,我的本地环境是mac环境,相关的配置应该没有问题,原本用的也是jmeter4.0,我想知道是因为路径无法解析还是不支持文件的读取吗?我用本地jmeter客户端执行上传的case,是没有问题,但是用平台,就是报错,看下具体的报错,也没有详细的原因: 2018-09-14 14:38:43.144 INFO 74520 --- [ardJMeterEngine] o.a.jmeter.reporters.ResultCollector : Folder at /porm/201809141154077/case20180914115407777 was created 2018-09-14 14:38:43.679 INFO 74520 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Starting ThreadGroup: 1 : one-for-all线程组 2018-09-14 14:38:43.679 INFO 74520 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Starting 600 threads for group one-for-all线程组. 2018-09-14 14:38:43.679 INFO 74520 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Thread will continue on error 2018-09-14 14:38:43.679 INFO 74520 --- [ardJMeterEngine] org.apache.jmeter.threads.ThreadGroup : Starting thread group... number=1 threads=600 ramp-up=0 perThread=0.0 delayedStart=false ... 2018-09-14 14:38:43.823 INFO 74520 --- [for-all线程组 1-58] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all线程组 1-58 2018-09-14 14:38:43.827 INFO 74520 --- [for-all线程组 1-52] org.apache.jmeter.services.FileServer : Stored: /porm/201809141154077/code.txt ... 2018-09-14 14:38:43.919 INFO 74520 --- [or-all线程组 1-123] org.apache.jmeter.samplers.SampleResult : Note: Sample TimeStamps are START times 2018-09-14 14:38:43.920 INFO 74520 --- [or-all线程组 1-123] org.apache.jmeter.samplers.SampleResult : sampleresult.default.encoding is set to ISO-8859-1 2018-09-14 14:38:43.920 INFO 74520 --- [or-all线程组 1-126] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all线程组 1-126 2018-09-14 14:38:43.920 INFO 74520 --- [or-all线程组 1-123] org.apache.jmeter.samplers.SampleResult : sampleresult.useNanoTime=true 2018-09-14 14:38:43.920 INFO 74520 --- [or-all线程组 1-123] org.apache.jmeter.samplers.SampleResult : sampleresult.nanoThreadSleep=5000

zyanycall commented 6 years ago

是支持读取txt文件数据的。 但是txt的参数化文件路径,要为文件名,如: image

因为默认是和jmx文件的同级目录。 而分布式节点的txt文件,需要先传同步过去才可以测试。

ftvbftvbq commented 6 years ago

我已经调整了文本路径并且参数化文件路径也已经调整为文件名,并且文件也在jmx的相同路径下: 1 2 但是,运行后,还是报错: 2018-09-18 08:45:47.970 INFO 74919 --- [io-8086-exec-28] o.a.j.p.http.sampler.HTTPSamplerBase : Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2018-09-18 08:45:47.970 INFO 74919 --- [io-8086-exec-28] o.a.j.p.http.sampler.HTTPSamplerBase : Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser 2018-09-18 08:45:48.053 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Running the test! 2018-09-18 08:45:48.465 INFO 74919 --- [ardJMeterEngine] org.apache.jmeter.samplers.SampleEvent : List of sample_variables: [] 2018-09-18 08:45:48.466 INFO 74919 --- [ardJMeterEngine] org.apache.jmeter.samplers.SampleEvent : List of sample_variables: [] 2018-09-18 08:45:48.481 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.util.CompoundVariable : Note: Function class names must contain the string: '.functions.' 2018-09-18 08:45:48.482 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.util.CompoundVariable : Note: Function class names must not contain the string: '.gui.' 2018-09-18 08:45:48.506 WARN 74919 --- [ardJMeterEngine] o.a.jmeter.engine.util.CompoundVariable : Did not find any functions 2018-09-18 08:45:48.515 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.reporters.ResultCollector : Folder at /porm/201809141154077/case20180914115407675 was created 2018-09-18 08:45:48.874 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Starting ThreadGroup: 1 : one-for-all 2018-09-18 08:45:48.875 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Starting 10 threads for group one-for-all. 2018-09-18 08:45:48.875 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : Thread will continue on error 2018-09-18 08:45:48.875 INFO 74919 --- [ardJMeterEngine] org.apache.jmeter.threads.ThreadGroup : Starting thread group... number=1 threads=10 ramp-up=0 perThread=0.0 delayedStart=false 2018-09-18 08:45:48.896 INFO 74919 --- [ardJMeterEngine] org.apache.jmeter.threads.ThreadGroup : Started thread group number 1 2018-09-18 08:45:48.897 INFO 74919 --- [ardJMeterEngine] o.a.jmeter.engine.StandardJMeterEngine : All thread groups have been started 2018-09-18 08:45:48.961 INFO 74919 --- [ne-for-all 1-10] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-10 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-5] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-5 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-8] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-8 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-7] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-7 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-9] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-9 2018-09-18 08:45:48.962 INFO 74919 --- [one-for-all 1-1] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-1 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-4] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-4 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-6] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-6 2018-09-18 08:45:48.961 INFO 74919 --- [one-for-all 1-3] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-3 2018-09-18 08:45:48.962 INFO 74919 --- [one-for-all 1-2] org.apache.jmeter.threads.JMeterThread : Thread started: one-for-all 1-2 2018-09-18 08:45:48.990 INFO 74919 --- [one-for-all 1-9] org.apache.jmeter.services.FileServer : Stored: code.txt 2018-09-18 08:45:49.018 INFO 74919 --- [ne-for-all 1-10] o.a.j.p.http.sampler.HTTPHCAbstractImpl : Local host = baixingdeMacBook-Air-3.local 2018-09-18 08:45:49.079 INFO 74919 --- [ne-for-all 1-10] o.a.j.protocol.http.sampler.HTTPHC4Impl : HTTP request retry count = 0 确认下,内部引用的jmeter是什么版本的?我这个jmx是使用:4.0 r1823414版本制作,是否存在冲突?另外,我脚本是json格式,并且使用了参数化: 3

zyanycall commented 6 years ago
  1. 你的脚本截图中没看到参数化。
  2. 你发的堆栈中,我没发现哪行是具体致命错误。
  3. 你可以本地执行一下脚本,本地先调试一下,再放到平台上。平台不方便调试,是方便监控和执行的。
  4. 你的jmx版本没问题,Jmeter一直兼容jmx文件,2.13的放到4上面去都可以执行。

建议先本地调试执行。

ftvbftvbq commented 6 years ago

本地执行100%正确,没有错误,但是,我在本地idea中运行项目,跑起来,看到log中就是报错,能否加qq详细聊聊吗?395323285,谢谢!

在 2018-09-18 10:25:10,"zyanycall" notifications@github.com 写道:

你的脚本截图中没看到参数化。 你发的堆栈中,我没发现哪行是具体致命错误。 你可以本地执行一下脚本,本地先调试一下,再放到平台上。平台不方便调试,是方便监控和执行的。 你的jmx版本没问题,Jmeter一直兼容jmx文件,2.13的放到4上面去都可以执行。

建议先本地调试执行。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ftvbftvbq commented 6 years ago

后来,我改用了下面这个脚本,这个是本地调试的结果,应该没有问题,但是平台执行就是报错,我是在我mac机上本地调试的: 4

zyanycall commented 6 years ago

加QQ聊聊吧。我加你了。

ftvbftvbq commented 6 years ago

再加一下: 395323825

在 2018-09-18 11:25:58,"zyanycall" notifications@github.com 写道:

加QQ聊聊吧。我加你了。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ftvbftvbq commented 6 years ago

qq: 395323825,我重新设置了下好友认证的设置,你应该可以加了,我这边正好有几个建议给到你这边,还有一个改善,看你这边需要不需要了。

在 2018-09-18 11:25:58,"zyanycall" notifications@github.com 写道:

加QQ聊聊吧。我加你了。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.