jmeter线程组未运行所有用户

时间:2015-01-23 15:40:37

标签: jmeter

我正在运行录制的测试计划。我在线程组中分配了5个不同的用户,其中Ramp-up period为5,循环计数为1.

这就是:

开始测试。

测试运行没有错误,当我检查查看结果树时,似乎5个用户正确执行但是当我签入系统时,只有2或3个用户被注册。我删除了已注册的用户并再次运行脚本,5个用户再次注册了2或3个用户(有些时候不同)。

我不明白我的测试可能会做什么...... 为什么我的测试计划不适用于5个用户?

我已经检查了我的机器上使用的资源,但它们很好,没有问题。

Jmeter的日志如下:

2015/01/23 12:54:11 INFO  - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is  
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is  
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is  
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is  
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2015/01/23 12:54:12 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui 
2015/01/23 12:54:12 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 
2015/01/23 12:54:12 INFO  - jorphan.exec.KeyToolUtils: keytool found at 'C:\Program Files (x86)\Java\jre1.8.0_25\bin\keytool' 
2015/01/23 12:54:12 INFO  - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin\proxyserver.jks 
2015/01/23 12:54:12 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 
2015/01/23 12:54:12 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 
2015/01/23 12:54:12 INFO  - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 
2015/01/23 12:54:12 INFO  - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 
2015/01/23 12:54:54 INFO  - jmeter.services.FileServer: Default base='E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin' 
2015/01/23 12:54:54 INFO  - jmeter.gui.action.Load: Loading file: E:\Pruebas no Funcionales\JMeter\JMScripts\Solicitud_Credito.jmx 
2015/01/23 12:54:54 INFO  - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts' 
2015/01/23 12:54:54 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
2015/01/23 12:54:54 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 
2015/01/23 12:54:54 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.7 
2015/01/23 12:54:54 INFO  - jmeter.save.SaveService: Using SaveService properties file version 1618048 
2015/01/23 12:54:54 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2015/01/23 12:54:54 INFO  - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: false Allow variable: true Save: true Prefix:  
2015/01/23 12:54:55 INFO  - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts' 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2015/01/23 12:55:06 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2015/01/23 12:55:06 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2015/01/23 12:55:06 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Carga_Usuarios 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Carga_Usuarios. 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2015/01/23 12:55:06 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=true 
2015/01/23 12:55:06 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
2015/01/23 12:55:06 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
2015/01/23 12:55:06 INFO  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 
2015/01/23 12:55:06 INFO  - jmeter.threads.JMeterThread: Running PostProcessors in forward order 
2015/01/23 12:55:06 INFO  - jmeter.threads.JMeterThread: Thread started: Carga_Usuarios 1-1 
2015/01/23 12:55:06 INFO  - jmeter.services.FileServer: Stored: Filecnx.csv 
2015/01/23 12:55:06 INFO  - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = CONSULT0002 
2015/01/23 12:55:06 INFO  - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0 
2015/01/23 12:55:06 INFO  - jmeter.protocol.http.sampler.HTTPHC4Impl: Setting up HTTPS TrustAll scheme 
2015/01/23 12:55:06 INFO  - jmeter.util.JsseSSLManager: Using default SSL protocol: TLS 
2015/01/23 12:55:06 INFO  - jmeter.util.JsseSSLManager: SSL session context: per-thread 
2015/01/23 12:55:56 INFO  - jmeter.threads.JMeterThread: Thread is done: Carga_Usuarios 1-1 
2015/01/23 12:55:56 INFO  - jmeter.threads.JMeterThread: Thread finished: Carga_Usuarios 1-1 
2015/01/23 12:55:56 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2015/01/23 12:55:56 INFO  - jmeter.services.FileServer: Close: Filecnx.csv
2015/01/23 12:55:56 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 

如果您需要任何其他信息,请告诉我们...... 谢谢!

1 个答案:

答案 0 :(得分:0)

我已经找到了这个问题的答案。脚本没有任何问题是发送与城市和城镇相关的数据之间的冲突。脚本正在发送城市的固定值和该城市的城镇。

当城市不同时,这不是问题,因为组合框包含了所有城市,但是当城镇不同时,脚本插入了一个在城镇组合框中不存在的值,因此它显示错误验证停止该用户的流程但它没有在JMeter中显示任何错误。 因此,当用户拥有相同的城市和城镇时,他们会被插入,但如果他们没有插入,则显示没有错误但未插入数据库。