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
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
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
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
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
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:
>
>
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.
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
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
"));)}
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
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
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
> >
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
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
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
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
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
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
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
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
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
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
> 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
--
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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)}
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
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
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]
=
[
['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
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
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*-\
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
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
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
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
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
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]
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
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
53 matches
Mail list logo