Re: JavaScript function

2011-05-13 Thread sebb
On 13 May 2011 14:39, DjinnS wrote: > Le 13/05/2011 15:33, sebb a écrit : >> >> On 13 May 2011 14:25, DjinnS  wrote: >>> >>> Le 13/05/2011 15:13, sebb a écrit : On 13 May 2011 13:55, DjinnS    wrote: > > Le 13/05/2011 13:53, sebb a écrit : >> >> On 13 May 2011 12:39, Djin

Re: JavaScript function

2011-05-13 Thread DjinnS
Le 13/05/2011 15:33, sebb a écrit : On 13 May 2011 14:25, DjinnS wrote: Le 13/05/2011 15:13, sebb a écrit : On 13 May 2011 13:55, DjinnSwrote: Le 13/05/2011 13:53, sebb a écrit : On 13 May 2011 12:39, DjinnS wrote: Bonjour, I'm going crazy ! I can't used $__JavaScript{} to get a r

Re: JavaScript function

2011-05-13 Thread sebb
On 13 May 2011 14:25, DjinnS wrote: > Le 13/05/2011 15:13, sebb a écrit : >> >> On 13 May 2011 13:55, DjinnS  wrote: >>> >>> Le 13/05/2011 13:53, sebb a écrit : On 13 May 2011 12:39, DjinnS    wrote: > > Bonjour, > > I'm going crazy ! I can't used $__JavaScript{} to get a

Re: JavaScript function

2011-05-13 Thread DjinnS
Le 13/05/2011 15:13, sebb a écrit : On 13 May 2011 13:55, DjinnS wrote: Le 13/05/2011 13:53, sebb a écrit : On 13 May 2011 12:39, DjinnSwrote: Bonjour, I'm going crazy ! I can't used $__JavaScript{} to get a ratio. I try to use the following code (in a "User Defined Variable"): ${__Jav

Re: JavaScript function

2011-05-13 Thread sebb
On 13 May 2011 13:55, DjinnS wrote: > Le 13/05/2011 13:53, sebb a écrit : >> >> On 13 May 2011 12:39, DjinnS  wrote: >>> >>> Bonjour, >>> >>> I'm going crazy ! I can't used $__JavaScript{} to get a ratio. >>> >>> I try to use the following code (in a "User Defined Variable"): >>> >>> ${__JavaScrip

Re: JavaScript function

2011-05-13 Thread Felix Frank
On 05/13/2011 02:55 PM, DjinnS wrote: >> See: >> >> http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript >> >>> What's going wrong with my first code ? >> _Both_ are spelt incorrectly. > > Yes, there is a mistake in my email. > > So, with the correct spelt, my function is: > >

Re: JavaScript function

2011-05-13 Thread DjinnS
Le 13/05/2011 13:53, sebb a écrit : On 13 May 2011 12:39, DjinnS wrote: Bonjour, I'm going crazy ! I can't used $__JavaScript{} to get a ratio. I try to use the following code (in a "User Defined Variable"): ${__JavaScript(Math.round(10*50/100))} There is no such function as __JavaScript.

Re: JavaScript function

2011-05-13 Thread sebb
On 13 May 2011 12:39, DjinnS wrote: > Bonjour, > > I'm going crazy ! I can't used $__JavaScript{} to get a ratio. > > I try to use the following code (in a "User Defined Variable"): > > ${__JavaScript(Math.round(10*50/100))} There is no such function as __JavaScript. > (in fact, "10" is also a v

JavaScript function

2011-05-13 Thread DjinnS
Bonjour, I'm going crazy ! I can't used $__JavaScript{} to get a ratio. I try to use the following code (in a "User Defined Variable"): ${__JavaScript(Math.round(10*50/100))} (in fact, "10" is also a value from an another "User Defined Variable") This code don't work. If I try a very simple

Re: url parameter encoding using javascript function problem

2011-01-20 Thread Rajiv Nanduani
"));)} On Thu, Jan 20, 2011 at 8:11 AM, sebb wrote: > On 20 January 2011 06:09, Rajiv Nanduani > wrote: > > Hi all, > > > > In jmeter i have to pass around 15 to 20 url parameters from csv file . I > am > > using the javascript function to encoding the url para

Re: url parameter encoding using javascript function problem

2011-01-20 Thread sebb
On 20 January 2011 06:09, Rajiv Nanduani wrote: > Hi all, > > In jmeter i have to pass around 15 to 20 url parameters from csv file . I am > using the javascript function to encoding the url parameters I am not using > the Jmeter send parameter with request table option. there

Re: url parameter encoding using javascript function problem

2011-01-20 Thread Rajiv Nanduani
Felix Frank wrote: > > > On 01/20/2011 07:09 AM, Rajiv Nanduani wrote: > > Hi all, > > > > In jmeter i have to pass around 15 to 20 url parameters from csv file . I > am > > using the javascript function to encoding the url parameters I am not > using > >

Re: url parameter encoding using javascript function problem

2011-01-20 Thread Felix Frank
On 01/20/2011 07:09 AM, Rajiv Nanduani wrote: > Hi all, > > In jmeter i have to pass around 15 to 20 url parameters from csv file . I am > using the javascript function to encoding the url parameters I am not using > the Jmeter send parameter with request table option. there

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Yes!!! That was the information I needed! ${__javaScript(for (i=0;i<=5;i++){myOutput=myOutput + vars.get("myVar_"+i)+'&'};,myOutput)} gives me the desired output! Thanks again Sebb! 2010/12/22 sebb : > On 22 December 2010 13:10, Michel Duijvestijn wrote: >> Thx Sebb and Felix (Excuse!) >> >> @Fel

Re: Using JMeter variables in Javascript function

2010-12-22 Thread sebb
On 22 December 2010 13:10, Michel Duijvestijn wrote: > Thx Sebb and Felix (Excuse!) > > @Felix: the $1$$2$$3$ is giving me only the results within one single > match, so that is not a solution. > > @Sebb: you wrote: "No, you can also use the vars Javascript object." > Does that give me access to t

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Thx Sebb and Felix (Excuse!) @Felix: the $1$$2$$3$ is giving me only the results within one single match, so that is not a solution. @Sebb: you wrote: "No, you can also use the vars Javascript object." Does that give me access to the whole set of JMeter variables in some way or another? If so, ca

Re: Using JMeter variables in Javascript function

2010-12-22 Thread sebb
On 22 December 2010 11:33, Michel Duijvestijn wrote: > In the documentation about the __javaScript function is stated that: > > "The following variables are made available to the script: > * ... > * vars - JMeterVariables object > * ..." > > Being rather new to JMeter I don't understand how to use

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Felix Frank
On 12/22/2010 12:56 PM, Michel Duijvestijn wrote: > Thx Frank It's "Felix". > I have one sampler response in which ther is all the information I need, > I'm using a regular expression extractor which gives the (say) 99 > matches. Within this postprocessor I can (as far as I know) only use > one m

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Thx Frank I have one sampler response in which ther is all the information I need, I'm using a regular expression extractor which gives the (say) 99 matches. Within this postprocessor I can (as far as I know) only use one match (myVar). By using a negative number in the match No. parameter in comb

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Felix Frank
On 12/22/2010 12:33 PM, Michel Duijvestijn wrote: > In the documentation about the __javaScript function is stated that: > > "The following variables are made available to the script: > * ... > * vars - JMeterVariables object > * ..." > > Being rather new to JMeter I don't understand how to use t

Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
In the documentation about the __javaScript function is stated that: "The following variables are made available to the script: * ... * vars - JMeterVariables object * ..." Being rather new to JMeter I don't understand how to use this vars-object. I found out that you can use a variable name with

Re: Re: Exception When using the Javascript Function

2009-04-08 Thread Michael P. McDonnell
s not. > > > > > > > > The relevant reference is in the bottom green box at > > http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript > > > > Which refers to text strings " ... and JMeter variables." > > That should also sa

Re: Re: Exception When using the Javascript Function

2009-04-07 Thread sebb
> That should also say " which represent text strings" > > > > Regards, > Marc > > > Marc Chiarini > PhD Candidate > Tufts University > Halligan Hall Extension 003C > Medford, MA 02155 > > > Michael P. McDonnell

Re: Re: Exception When using the Javascript Function

2009-04-07 Thread Marc Chiarini (Tufts)
-- Marc Chiarini PhD Candidate Tufts University Halligan Hall Extension 003C Medford, MA 02155 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 -Counte

Re: Re: Exception When using the Javascript Function

2009-04-06 Thread sebb
x27;3' is not. > > > > > > > > > The relevant reference is in the bottom green box at > > > > > > > > http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript > > > > > > > > Which refers to text strings " ... and JMeter variables." > > &g

Re: Re: Exception When using the Javascript Function

2009-04-06 Thread bzaks1424
date > Tufts University > Halligan Hall Extension 003C > Medford, MA 02155 > > > Michael P. McDonnell wrote: > When utilizing the Javascript function in Jmeter 2.3.2 (r665936): > > I have a Thread Group set up as follows: > > WebServi

Re: Exception When using the Javascript Function

2009-04-04 Thread sebb
ermanual/functions.html#__javaScript Which refers to text strings " ... and JMeter variables." That should also say " which represent text strings" > Regards, > Marc > > > Marc Chiarini > PhD Candidate > Tufts University > Halliga

Re: Exception When using the Javascript Function

2009-04-04 Thread Marc Chiarini (Tufts)
rence is in the bottom green box at http://jakarta.apache.org/jmeter/usermanual/functions.html#__javaScript Regards, Marc Marc Chiarini <http://www.cs.tufts.edu/%7Emchiar01> PhD Candidate Tufts University Halligan Hall Extension 003C Medford, MA 02155 Michael P. McDonnell wrot

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 > > Fir

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

RE: Javascript function

2007-05-18 Thread Pruitt, Steve
Thank you. Sometimes the best way is not so obvious. I will do a better job reading the doc. -S -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Friday, May 18, 2007 8:13 AM To: JMeter Users List Subject: Re: Javascript function Why not just use the following name

Re: Javascript function

2007-05-18 Thread sebb
Why not just use the following name? file${nextFileX} The variable reference will be replaced by the value of nextFileX - e.g. if it is 456 then the name will be file456 Or you could use: file${nextFileX}.xyz to generate file456.xyz S. On 17/05/07, Pruitt, Steve <[EMAIL PROTECTED]> wrote:

Javascript function

2007-05-17 Thread Pruitt, Steve
This is a newbie question, as I am just coming up to speed on Jmeter. In my HTTPRequest I including an attachment. In the Value for "name" attribute, I would like a to have a name that contains an incremented number. I couldn't find any good samples, so I took a stab at it. I created Counter to

Re: user parameters pre-processor JavaScript function

2007-01-04 Thread sebb
OK, thanks for letting us know. Now just need to find out why it is behaving like that, and whether it is accidental or by design - and then document it... On 03/01/07, Gary K. Avery <[EMAIL PROTECTED]> wrote: that worked. thanks! sebb wrote: > Odd - looks like the CSV Dataset has to be AFTER

Re: user parameters pre-processor JavaScript function

2007-01-03 Thread Gary K. Avery
that worked. thanks! sebb wrote: Odd - looks like the CSV Dataset has to be AFTER the User Parameters. Not yet sure if this is a bug or a deliberate feature... Anyway, try swapping them and see if this helps. On 03/01/07, Gary K. Avery <[EMAIL PROTECTED]> wrote: hello, i seem to have run i

Re: user parameters pre-processor JavaScript function

2007-01-03 Thread sebb
Odd - looks like the CSV Dataset has to be AFTER the User Parameters. Not yet sure if this is a bug or a deliberate feature... Anyway, try swapping them and see if this helps. On 03/01/07, Gary K. Avery <[EMAIL PROTECTED]> wrote: hello, i seem to have run into a snag and not sure whether it i

user parameters pre-processor JavaScript function

2007-01-03 Thread Gary K. Avery
hello, i seem to have run into a snag and not sure whether it is a timing restriction or something else. i have a thread group with a CSV Data Set Config element which is reading in from a file and assigning some variables (e.g., A, B, C). that seems to be working fine. i then have a User Param

RE: Javascript function

2006-07-04 Thread Claus
: Re: Javascript function Hi, Nothing wrong with your function, I've tested and it works! I think maybe the "NaN" value is a result of accessing/assigning wrong value to variable Make sure you're not doing this VarA10 VarB${__javaScript((9000 * (parseInt('${Va

Re: Javascript function

2006-07-03 Thread Vitalie Valache
Hi, Nothing wrong with your function, I've tested and it works! I think maybe the "NaN" value is a result of accessing/assigning wrong value to variable Make sure you're not doing this VarA10 VarB${__javaScript((9000 * (parseInt('${VarA}') + (parseInt('${VarB}') % 1))) % 9800)}

Javascript function

2006-07-03 Thread Claus
Hello, I'm fighting with a bit with the Javascript function in Jmeter. In a test script I want to run the following expression: ${__javaScript((9000 * (parseInt('${VarA}') + (parseInt('${VarB}') % 1))) % 9800)} All I see in the output is "NaN" Tested

Re: help with Javascript function

2005-04-13 Thread Shabana Shabana
ta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor > > To extract the value, you can use the following regex: > > value="(\d+?)" > > This will match the digits. > > If value appears elsewhere on the page, you will need to add extr

Re: help with Javascript function

2005-04-12 Thread sebb
pears elsewhere on the page, you will need to add extra context before and/or after to ensure you only match the correct value. > How would I go about doing that using the javascript function? See above; javascript is not suitable here. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help with Javascript function

2005-04-12 Thread Dantes, Ed
= [ ['H4607243','blahblah','blahblah'] ]; I need to extract the 'value' out of there so I can equate it to the key and append to the path How would I go about doing that using the javascript function? Thanks Ed

RE: error message when running javaScript function

2004-12-09 Thread Liao, Avian
To: JMeter Users List Subject: RE: error message when running javaScript function Dear Avian Liao and JMeter Users: If the sample you put in your last message is exact, you added a backslash and replaced the comma with a double quote. Does the function need the new double quote? Try using a

RE: error message when running javaScript function

2004-12-09 Thread Kyle McAbee
hursday, December 09, 2004 3:15 PM To: JMeter Users List; sebb Subject: RE: error message when running javaScript function Hi, all users, sebb, I did what you suggest-- use "\" to escape "," in parameters ${__javaScript('${convert}'.replace(/ref%3A%3AEvent_LC%5B(\w*-\

RE: error message when running javaScript function

2004-12-09 Thread Liao, Avian
sers List Subject: Re: error message when running javaScript function Use "\" to escape "," in parameters. On Thu, 9 Dec 2004 14:01:40 -0500, Liao, Avian <[EMAIL PROTECTED]> wrote: > Hi, > > When I use javaScript function, I have the foolowing error message, I try to

Re: error message when running javaScript function

2004-12-09 Thread sebb
Use "\" to escape "," in parameters. On Thu, 9 Dec 2004 14:01:40 -0500, Liao, Avian <[EMAIL PROTECTED]> wrote: > Hi, > > When I use javaScript function, I have the foolowing error message, I try to > test my javascript outside the Jmeter, and it works fi

error message when running javaScript function

2004-12-09 Thread Liao, Avian
Hi, When I use javaScript function, I have the foolowing error message, I try to test my javascript outside the Jmeter, and it works fine. sowhat is wrong when I copy over to Jmeter. ${convert} is my variable, and I am positive that this varibale exists. ${__javaScript('${co

Re: Navigation via onload javascript function

2004-11-10 Thread sebb
quot;onload" in the body tag that calls a > javascript function called doPost(). That function does exactly that: a > post to an ASP on another server. It appears that Jmeter does not execute > this javascript. This results in all subsequent steps in the test to fail > becaus

Navigation via onload javascript function

2004-11-10 Thread Tom Purcell
Hello, I'm having a problem running a test on an application. Things work fine until the test gets to a HTTPRequest for a page that the user does not see. On this page there is an "onload" in the body tag that calls a javascript function called doPost(). That function do

RE: javascript function to increment threads by 2 ...

2004-06-21 Thread nlunebur
that while loop doesnt work. silly me. havent found a solution yet ... i just wanna increment threads by 2 ... anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: javascript function to increment threads by 2 ...

2004-06-21 Thread nlunebur
i think i got it. ${__javaScript(var $i = 0; $i += 2;,threadcount)} i think its returning what i want ... not so sure (grrr) nicole nlunebur wrote: hi all! i want to use the javascript function so that my thread count increments by 2 ... this is what i have: ${__javaScript(var $counter = 0; for

javascript function to increment threads by 2 ...

2004-06-21 Thread nlunebur
hi all! i want to use the javascript function so that my thread count increments by 2 ... this is what i have: ${__javaScript(var $counter = 0; for(var $i=0; $i<=6; $i+=2){$counter++;},threadcount)} i tested it etc but it seems to be returning 3 (count) anyone know how to fix this? nic