Git Product home page Git Product logo

Comments (8)

zyanycall avatar zyanycall commented on May 17, 2024

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

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

from stresstestplatform.

ftvbftvbq avatar ftvbftvbq commented on May 17, 2024

我已经调整了文本路径并且参数化文件路径也已经调整为文件名,并且文件也在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

from stresstestplatform.

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

建议先本地调试执行。

from stresstestplatform.

ftvbftvbq avatar ftvbftvbq commented on May 17, 2024

from stresstestplatform.

ftvbftvbq avatar ftvbftvbq commented on May 17, 2024

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

from stresstestplatform.

zyanycall avatar zyanycall commented on May 17, 2024

加QQ聊聊吧。我加你了。

from stresstestplatform.

ftvbftvbq avatar ftvbftvbq commented on May 17, 2024

from stresstestplatform.

ftvbftvbq avatar ftvbftvbq commented on May 17, 2024

from stresstestplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.