I had them defined in a CVS Data Set and this work fine for a counter I was using. I went ahead an added them to the test plan and now the function works along with the CVS Data Set which gets the values.
Thanks. -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 4:03 PM To: JMeter Users List Subject: Re: Problem with variable substitution in functions Where are you defining the variables? On 30/01/2008, William Gosse <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I had some code that used to work in 2.2 but doesn't seem to work now: > ${__Random(${minCustomerID},${maxCustomerID},customerID_Count)} > > Now I get the following exception when I try to execute this code in a > User Defined Variables: > > 2008/01/30 09:56:15 ERROR - jmeter.engine.StandardJMeterEngine: Error > occurred c ompiling the tree: java.lang.NumberFormatException: For input > string: "${minCustomerID}" > at > java.lang.NumberFormatException.forInputString(NumberFormatException. > java:48) > at java.lang.Long.parseLong(Long.java:403) > at java.lang.Long.parseLong(Long.java:461) > at org.apache.jmeter.functions.Random.execute(Random.java:74) > at > org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariab > le.java:128) > at > org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariab > le.java:97) > at > org.apache.jmeter.testelement.property.FunctionProperty.getStringValu > e(FunctionProperty.java:77) > at > org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString > (AbstractTestElement.java:200) > at org.apache.jmeter.config.Argument.getValue(Argument.java:113) > at > org.apache.jmeter.config.Arguments.getArgumentsAsMap(Arguments.java:9 5) > at > org.apache.jmeter.engine.PreCompiler.addNode(PreCompiler.java:74) > at > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:97 2) > at > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:97 3) > at > org.apache.jorphan.collections.HashTree.traverse(HashTree.java:956) > at > org.apache.jmeter.engine.StandardJMeterEngine.compileTree(StandardJMe > terEngine.java:176) > at > org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngin > e.java:318) > at java.lang.Thread.run(Thread.java:595) > > Bill Gosse > Senior Software Engineer > 8 Commerce Drive | Bedford, NH 03110 > Direct: (603) 656-7074 > [EMAIL PROTECTED] > > > > > > > > The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. > > --------------------------------------------------------------------- > 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] The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

