Re: Re: Exception When using the Javascript Function

2009-04-08 Thread Michael P. McDonnell
I did put them in the single quotes for the original problem in question: ${__javaScript(${VARONE}*${VARTWO}/${VARTHREE})} is now ${__javaScript('${VARONE}'*'${VARTWO}'/'${VARTHREE}')} And there were no errors. On Tue, Apr 7, 2009 at 9:20 AM, sebb wrote: > On 07/04/2009, Marc Chiarini (Tufts)

Re: Re: Exception When using the Javascript Function

2009-04-07 Thread sebb
On 07/04/2009, Marc Chiarini (Tufts) wrote: > > Currently, both of these expressions in my UDVs work properly for me, > though according to you they shouldn't: OK, I stand corrected. > ${__javaScript('${__P(delay)}'*'${__P(mythreads)}')} > ${__javaScript(Math.floor('${__property(maxcnt,,512)}'

Re: Re: Exception When using the Javascript Function

2009-04-07 Thread Marc Chiarini (Tufts)
Currently, both of these expressions in my UDVs work properly for me, though according to you they shouldn't: ${__javaScript('${__P(delay)}'*'${__P(mythreads)}')} ${__javaScript(Math.floor('${__property(maxcnt,,512)}'/'${__P(mythreads)}'))} I suspect that Javascript is doing implicit type con

Re: Re: Exception When using the Javascript Function

2009-04-06 Thread sebb
On 06/04/2009, bzaks1...@gmail.com wrote: > Hey Sebb - > > I double checked for trailing spaces, and it does not appear that there are > any. > If I replace the variables with direct numbers, it doesn't seem to have a > problem though. In that case, there must be a problem with the variables.

Re: Re: Exception When using the Javascript Function

2009-04-06 Thread bzaks1424
Hey Sebb - I double checked for trailing spaces, and it does not appear that there are any. If I replace the variables with direct numbers, it doesn't seem to have a problem though. The variables are defined within the User Defined Variables on the Test Plan node. I had the same problem

Re: Exception When using the Javascript Function

2009-04-04 Thread sebb
On 04/04/2009, Marc Chiarini (Tufts) wrote: > > Hi Michael, > > Try putting your variables in quotes, for example: > ${__javaScript('${VARONE}'*'${VARTWO}'/'${VARTHREE}')} > > I'm not sure why this is necessary, but it's the only thing that worked for > me when I had a similar problem. That d

Re: Exception When using the Javascript Function

2009-04-04 Thread Marc Chiarini (Tufts)
Hi Michael, Try putting your variables in quotes, for example: ${__javaScript('${VARONE}'*'${VARTWO}'/'${VARTHREE}')} I'm not sure why this is necessary, but it's the only thing that worked for me when I had a similar problem. The relevant reference is in the bottom green box at http://jakarta.

Re: Exception When using the Javascript Function

2009-04-03 Thread sebb
On 02/04/2009, Michael P. McDonnell wrote: > When utilizing the Javascript function in Jmeter 2.3.2 (r665936): > > I have a Thread Group set up as follows: > > WebService (SOAP) Request > -XPath Assertion > -Counter > Constant Throughput Timer > > First of all I would like to note th

Exception When using the Javascript Function

2009-04-02 Thread Michael P. McDonnell
When utilizing the Javascript function in Jmeter 2.3.2 (r665936): I have a Thread Group set up as follows: WebService (SOAP) Request -XPath Assertion -Counter Constant Throughput Timer First of all I would like to note that the WebService Sampler rocks. Thank you for making it. The cou