java JMeter 测试未运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29252088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 14:55:52  来源:igfitidea点击:

JMeter test not running

javajmeter

提问by Biscuit128

5/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2015/03/25 09:36:45 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2015/03/25 09:36:45 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2015/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 
2015/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 
2015/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2015/03/25 09:36:45 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 
2015/03/25 09:36:45 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
2015/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
2015/03/25 09:36:45 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 
2015/03/25 09:36:45 INFO  - jmeter.threads.JMeterThread: Thread is done: Thread Group 1-1 
2015/03/25 09:36:45 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 
2015/03/25 09:36:45 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2015/03/25 09:36:45 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 

I am trying to load test my application with JMeter but it doesnt seem as though it is running my test correctly, the log file for the application shows no signs of incoming messages but my test log output from JMeter shows the above - it appears as though the test is running from this - can anyone shed some clarity on what might be going wrong or what I might have not done?

我正在尝试使用 JMeter 对我的应用程序进行负载测试,但它似乎没有正确运行我的测试,应用程序的日志文件没有显示传入消息的迹象,但我的 JMeter 测试日志输出显示了上述内容 - 看起来好像测试正在从这里运行 - 任何人都可以澄清可能出错的地方或我可能没有做的事情吗?

Thanks

谢谢

采纳答案by stringy05

Add a 'View results in a table' Listener to your Thread Group. This will show you each request and the result - eg if it's HTTP you will get URL, status code etc.

将“查看表中的结果”侦听器添加到您的线程组。这将向您显示每个请求和结果 - 例如,如果是 HTTP,您将获得 URL、状态代码等。

Have a look at the doco here

看看这里的 doco

回答by Pavan

Do you have any regular expression extractors or CSV Data set config files empty? No data or capturing anything? If so, please toggle them off (Ctrl+T) or Cmmnd+T - OSX, Linux. Should fix that

您是否有任何正则表达式提取器或 CSV 数据集配置文件为空?没有数据或捕获任何东西?如果是这样,请关闭它们 (Ctrl+T) 或 Cmmnd+T - OSX、Linux。应该解决这个问题

回答by Mad Einsy

Ok i just figured what is the problem because i faced it a minute ago, you need to check below things before hitting the run button.

好的,我只是想知道问题出在哪里,因为我在一分钟前遇到了它,您需要在点击运行按钮之前检查以下内容。

  1. Make Sure the "Thread Group" is Enabled (Not sure but for me it was disabled when i open my .JMX file from recent files), If you have Login parameter added then make sure it is enabled as well.

  2. Go to the location where you kept the .CSV file and double check the path in Jmeter as well. Because without the csv data it will stop the Thread at 1-1. (Above Error)

  3. Make Sure the Results (Listeners) are merged with the Thread and are Enabled.

  1. 确保“线程组”已启用(不确定,但对我而言,当我从最近的文件中打开我的 .JMX 文件时它被禁用),如果您添加了登录参数,请确保它也已启用。

  2. 转到您保存 .CSV 文件的位置,并仔细检查 Jmeter 中的路径。因为没有 csv 数据,它会在 1-1 处停止线程。(以上错误)

  3. 确保结果(侦听器)与线程合并并已启用。

Good Luck!

祝你好运!