Am 12. September 2016 18:55:51 MESZ, schrieb mozzarella <[email protected]>: >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. > >How can I fix this error? Or is this the wrong approach?
You have to escape the commata with a backslash as described at the beginning of http://jmeter.apache.org/usermanual/functions.html#functions Regards, Felix > > > > >-- >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: [email protected] >For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
