Collections:
"timeout value is negative" on LoadTestRunner
Why am I getting the "timeout value is negative" error on LoadTestRunner?
✍: FYIcenter.com
You will get the "Decompression of response failed" error on LoadTestRunner,
if your load test delay random factor is > 1.0.
For example, your load test has the following settings:
Strategy: Simple Delay: 1000 Random: 10.5
If you launch LoadTestRunner from command line, you will get the "timeout value is negative" error in the output:
23:38:53,807 ERROR [SoapUI] An error occurred [timeout value is negative], see error log for details java.lang.IllegalArgumentException: timeout value is negative at java.lang.Thread.sleep(Native Method) at com.eviware.soapui.impl.wsdl.loadtest.strategy.SimpleLoadStrategy .beforeTestCase(SimpleLoadStrategy.java:81) at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner $InternalTestRunListener.beforeRun(WsdlLoadTestRunner.java:646) ...
This is really a bug. If the random factor is set too high, LoadTestRunner is actually call Thread.sleep() with a negative value. SoapUI should reject the setting or use a better logic to avoid this error.
So if see the "timeout value is negative" error with LoadTestRunner, you need review your load test settings to make sure Random is in the range of 0.0 and 1.0.
Â
⇒ SoapUI Tutorials
⇠"Decompression of response failed" on LoadTestRunner
⇑ Using SoapUI LoadTestRunner Command
⇑⇑ SoapUI Tutorials
2018-02-08, 2255👍, 0💬
Popular Posts:
Where to find tutorials on Apache JMeter test tool? I want to know how to use Apache JMeter. Here is...
How to validate and decode MAC (Media Access Control) addresses? In order to help your programming o...
How to access Response Status Code 400 as Success? My sampler failed, because the server returns the...
How to generate MAC addresses? To help you to obtain some MAC addresses for testing purpose, FYIcent...
How to validate domain name format? In order to help your programming or testing tasks, FYIcenter.co...