Comments (8)
是支持读取txt文件数据的。
但是txt的参数化文件路径,要为文件名,如:
因为默认是和jmx文件的同级目录。
而分布式节点的txt文件,需要先传同步过去才可以测试。
from stresstestplatform.
我已经调整了文本路径并且参数化文件路径也已经调整为文件名,并且文件也在jmx的相同路径下:
但是,运行后,还是报错:
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格式,并且使用了参数化:
from stresstestplatform.
- 你的脚本截图中没看到参数化。
- 你发的堆栈中,我没发现哪行是具体致命错误。
- 你可以本地执行一下脚本,本地先调试一下,再放到平台上。平台不方便调试,是方便监控和执行的。
- 你的jmx版本没问题,Jmeter一直兼容jmx文件,2.13的放到4上面去都可以执行。
建议先本地调试执行。
from stresstestplatform.
from stresstestplatform.
后来,我改用了下面这个脚本,这个是本地调试的结果,应该没有问题,但是平台执行就是报错,我是在我mac机上本地调试的:
from stresstestplatform.
加QQ聊聊吧。我加你了。
from stresstestplatform.
from stresstestplatform.
from stresstestplatform.
Related Issues (20)
- 分布式节点使用同一份csv文件时的困惑 HOT 3
- 生成报告报错异常 HOT 5
- 新增分布式节点并正常启用后,压测执行脚本,点击启动报错 HOT 3
- 脚本带有Constant Throughput Timer运行时会出现Constant Throughput Timer失效的情况
- 有操作文档或者关键内容的截图吗,想看看效果
- 运行带参数化文件的脚本时,运行一次后,后续的所有脚本再执行都报错 HOT 5
- 多脚本执行的时候报Engine is busy - please try later HOT 2
- jmeter_test HOT 1
- 本地部署撥錯 HOT 4
- 用例管理上传jmx文件失败(前端结果显示上传成功) HOT 1
- JMeter路径正确,但是启动应用的时候回抛出如下异常 HOT 1
- 用例管理中创建的用例无法同步到脚本文件管理和其他几个页面中去 HOT 1
- 求助:本地无法启动运行,报错 500--Servlet.service() for servlet [dispatcherServlet] in context with path [/renren-fast] threw exception [Filtered request failed.] with root cause HOT 6
- dubbo插件化如何支持 HOT 2
- hi,你好大神,请问,前端的源码能给下吗,我看前端是编译好的。多谢了 HOT 4
- 想请问下工程有做容器化部署吗 HOT 4
- jmeter运行mqtt协议报错如下,插件加载mqtt-xmeter-2.0.2-jar-with-dependencies.jar
- 请问一下,本地运行不起来
- 如何多用户使用 HOT 1
- 本地启动报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stresstestplatform.