Am 12.09.2016 um 18:55 schrieb mozzarella:
Hi,
I'm trying to subtract user defined variables doing the same thing in this
post below:
http://jmeter.512774.n5.nabble.com/Subtracting-User-Defined-Variables-td3414865.html
I followed the comments to use the function __longSum as shown in the reply.
My script in beanshell is:
vars.put("Total_Time","${__longSum(${End_Time},-${Start_Time})}");
When running my test script, I receive the following error:
"__longSum called with wrong number of parameters. Actual: 1. Expected at
least: 2"
I tried using the example shown on the jmeter longSum() function page
(${__longSum(2,5,7)}) and it still throws the error.
Have you checked, that End_Time and Start_Time have the right values ( a
debug sampler could be used to show the values)?
Why do you use BeanShell? Have you looked at JavaScript and Groovy as
alternatives?
Regards,
Felix
How can I fix this error? Or is this the wrong approach?
--
View this message in context:
http://jmeter.512774.n5.nabble.com/longSum-called-with-wrong-number-of-parameters-tp5724753.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org