Re: page redirection does not work while recording action on JMeter.

2008-09-29 Thread sebb
Sounds like the test plan is trying to load the wrong page. Check that
the URL works in a browser.

Note that login tests generally need a Cookie Manager. Add it directly
under the Thread Group.

On 29/09/2008, sujitkrnayak2006 <[EMAIL PROTECTED]> wrote:
>
>  I am new to the JMeter and trying to record the browser action through proxy
>  server.
>
>  -- I am trying to simulate login to the site and click here and there, after
>  i enter the user name n password on login page its redirected to the 'The
>  page cannot be displayed' page.
>
>  I am not sure where is the problem, can anyone solve my problem.
>
>  Thanks in advance.
>
>  -Sujit
>
> --
>  View this message in context: 
> http://www.nabble.com/page-redirection-does-not-work-while-recording-action-on-JMeter.-tp19730504p19730504.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]



RE: Problems with GWT aplication

2008-09-29 Thread Jose Pablo Sarco
Please, someone can help me with this?

I have problems with the parameters value when I tried to test a GWT 
application, I research the web and I can't find a solution to this. 
Please, check the mail below.

¿Is it possible test a GWT application with Jmeter?

Thanks,

Jose





-Original Message-
From: Jose Pablo Sarco 
Sent: Lunes, 29 de Septiembre de 2008 11:26 a.m.
To: JMeter Users List
Subject: Problems with GWT aplication

Hi all,

 

I can’t record a scenario in a GWT application. I tried with Bad Boy and 
nothing is recorded, then I tried with the Jmeter HTTP Proxy Server and some 
actions are recorded but with parameters like this: 

Post /arcorsales/services/i18n

 

Parameter Name: 

Parameter Value:

3�0�6�http://arrosvmapp92:9080/arcorsales/�A54E696C43E49725CD8446E4171EA2C4�ar.com.arcor.arcorsales.webapp.gwt.client.common.i18n.I18nServiceRemote�changeLocale�java.lang.String�es_AR�1�2�3�4�1�5�6�.

 

When I ran the test plan, fail all the samplers.

 

 

I’m using Jmeter version 2.3.2 in win XP

 

¿Is it possible test a GWT application with Jmeter?

 

Thanks in advance.

 

Jose


#
Este documento puede incluir informacin confidencial y propiedad de Neoris y 
deber ser ledo solamente por la 
o las personas a quienes est dirigido. Si usted ha recibido este mensaje por 
error, por favor avise 
inmediatamente al remitente contestando y eliminando este correo. Cualquier 
punto de vista u opiniones expresadas 
en este mensaje son del remitente y no necesariamente coinciden con aquellas de 
Neoris. Este documento no deber 
ser reproducido, copiado, distribuido, publicado, ni modificado por terceros 
sin la autorizacin por escrito de Neoris. 

Este mensaje ha sido verificado contra virus. Vistenos en www.neoris.com. 
#

#
Este documento puede incluir informaci�n confidencial y propiedad de Neoris y 
deber� ser le�do solamente por la 
o las personas a quienes est� dirigido. Si usted ha recibido este mensaje por 
error, por favor avise 
inmediatamente al remitente contestando y eliminando este correo. Cualquier 
punto de vista u opiniones expresadas 
en este mensaje son del remitente y no necesariamente coinciden con aquellas de 
Neoris. Este documento no deber� 
ser reproducido, copiado, distribuido, publicado, ni modificado por terceros 
sin la autorizaci�n por escrito de Neoris. 

Este mensaje ha sido verificado contra virus. Vis�tenos en www.neoris.com. 
#


page redirection does not work while recording action on JMeter.

2008-09-29 Thread sujitkrnayak2006

I am new to the JMeter and trying to record the browser action through proxy
server.

-- I am trying to simulate login to the site and click here and there, after
i enter the user name n password on login page its redirected to the 'The
page cannot be displayed' page.

I am not sure where is the problem, can anyone solve my problem.

Thanks in advance.

-Sujit
-- 
View this message in context: 
http://www.nabble.com/page-redirection-does-not-work-while-recording-action-on-JMeter.-tp19730504p19730504.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]



Re: Insert Cookies for some requests in a thread group

2008-09-29 Thread sebb
As I just wrote:

>  > However, you can use variables in the Cookie Manager.
>  > So if the server does not mind getting extra cookies, you can define
>  > the extra cookies that you need, and set the variables as needed.

So add a cookie which looks like:

Name: s_ec
Value: ${xyx}

and define xyz to be whatever you want.

On 29/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>
>  I have two requests out of the 20 request that have a browser cookie. The
>  problem I am having is that the same cookie (eg: s_ec) needs to be sent with
>  different values for request #12 and request #18. If I add this cookie, I am
>  unable to change the value of the cookie.
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 29/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  It is still not working for me. I have a cookie manager at the thread
>  >> group
>  >>  level for all my 20 requests. I added a "cookie manager" as a child for
>  >> one
>  >>  request and added two cookies to it. These cookies are not being sent
>  >> along
>  >>  with my request. They get sent only if I disable the main "cookie
>  >> manager"
>  >>  at the thread group level. I am stuck as it appears like Jmeter does not
>  >>
>  >> support adding a browser cookie for one or two requests in my thread
>  >> group
>  >>  while I have another cookie manager at the thread group level for server
>  >>  cookies for the remaining 18 requests.
>  >>
>  >
>  > You wrote that you were not interested in server cookies, which is why I
>  > wrote:
>  >
>  >>> Yes, if you want to ignore server cookies, just add the cookie manager
>  >>> as a child of each  request that needs the specific cookies.
>  >
>  > If a Sampler finds multiple Cookie Managers in the same scope, then
>  > only one CM will be used  - as you have found out.
>  >
>  > However, you can use variables in the Cookie Manager.
>  > So if the server does not mind getting extra cookies, you can define
>  > the extra cookies that you need, and set the variables as needed.
>  >
>  >>
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>  > On 28/09/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  >>  >>
>  >>  >>  Sorry, if I did not make myself clear. I am using "2.3.2.r665936". I
>  >> am
>  >>  >> not concerned about the cookies sent by server in this case. The
>  >>  >> javascripts on my web pages set some cookies for certain requests
>  >>  >> resulting in browser sending a request to the server with this new
>  >> cookie
>  >>  >> or a different value for the same cookie. This is where I am having
>  >> real
>  >>  >> problem. Is there any way to send a specific cookie for a couple of
>  >>  >> requests in my thread group where I have 20 requests all together.
>  >>  >
>  >>  > Yes, if you want to ignore server cookies, just add the cookie manager
>  >>  > as a child of each  request that needs the specific cookies.
>  >>  >
>  >>  >>  BTW, what happens when I set "automatic redirection" and the server
>  >> sets
>  >>  >> a new cookie and issues a 302 and the subsequent request goes to the
>  >>  >> redirected url with this new cookie. Will this work in Jmeter or do I
>  >>  >> need to create two different requests instead of setting "automatic
>  >>  >> redirection".
>  >>  >>
>  >>  >
>  >>  > No and no - please see:
>  >>  >
>  >>  >
>  >> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
>  >>  >
>  >>  > See "Redirect Automatically" and "Follow Redirects"
>  >>  >
>  >>  >>  sebb-2-2 wrote:
>  >>  >>  >
>  >>  >>  > No need to use multiple cookie managers - anyway, they won't work.
>  >>  >>  >
>  >>  >>  > If the server sets a cookie, it will be seen by JMeter (unless you
>  >> are
>  >>  >>  > using redirect automatically), and JMeter will send any relevant
>  >>  >>  > cookies with the next request.
>  >>  >>  >
>  >>  >>  > If you want to add your own cookies, add them to the cookie
>  >> manager.
>  >>  >>  > But this is rarely needed.
>  >>  >>  >
>  >>  >>  > Note that there was a problem in 2.3.1 if you selected "Clear
>  >> cookies
>  >>  >>  > each iteration".
>  >>  >>  >
>  >>  >>  > Upgrade to 2.3.2 if necessary.
>  >>  >>  >
>  >>  >>  > On 28/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>  >>  >>  >>
>  >>  >>  >>  I have tried adding "Cookie" as a header and jmeter does not
>  >> treat
>  >>  >> it as
>  >>  >>  >>  cookie and that does not appear in the outgoing request. I wish
>  >> I
>  >>  >> could
>  >>  >>  >> use
>  >>  >>  >>  additional "Cookie Managers"  in addition to adding at thread
>  >> level
>  >>  >> to
>  >>  >>  >> add
>  >>  >>  >>  extra cookies or change cookies to what I am getting by adding
>  >> it at
>  >>  >> the
>  >>  >>  >>  thread level.
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >>  Laurent Perez wrote:
>  >>  >>  >>  >
>  >>  >>  >>  >> How can I add my own cookies for some requests. If I add it
>  >> to
>  >>  >> the
>  >>  >>  >> cookie
>  >>  >>  >>  >> manager at the thread level, these cookies get added to 

Re: Saving aggregate date to csv over many test runs

2008-09-29 Thread sebb
On 29/09/2008, Jacob Singh <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I'm using paramaterized launches to stress test my application because
>  I have to run it from a remote server, and therefor changing the value
>  is a pain the arse.

You can use the -G option to define variables that are sent to the servers:

http://jakarta.apache.org/jmeter/usermanual/get-started.html#override

>  So I've setup a little script which also outputs listeners to a
>  different directory each time (by date).  This works good, I rsync
>  them down to my box and then I import them.
>
>  Now I've been running so many tests, it's getting hard to actually
>  analyze the data effectively.  I'd like a csv file with the aggregate
>  report like this:
>
>  testname | average | median | etc..
>
>  so that I could pass in a var call "testname" into the script (which
>  would have some identifying info like # of threads, etc), and have it
>  append the aggregate data to my existing file.

You can add arbitrary variable values to the JTL files - just define
the variable  sample_variables:

http://jakarta.apache.org/jmeter/usermanual/listeners.html#sample_variables

>  Is there any sane way to do this?  some other alternative which may
>  not be as nice, bur pretty close?
>
>  Can I make the aggregate report save itself as CSV so that I can at
>  least do some manual post processing on it?

Unfortunately not.

You can save the on-screen table by pressing the button, but there's
currently no way to have this happen automatically at the end of a
test run.

BTW, Summary Report uses less memory than Aggregate Report - if you
don't need the median & 90% details.

>  Thanks!
>  Jacob
>
>  --
>
>  +1 510 277-0891 (o)
>  +91  33 7458 (m)
>
>  web: http://pajamadesign.com
>
>  Skype: pajamadesign
>  Yahoo: jacobsingh
>  AIM: jacobsingh
>  gTalk: [EMAIL PROTECTED]
>
>  -
>  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]



Re: Insert Cookies for some requests in a thread group

2008-09-29 Thread henryd

I have two requests out of the 20 request that have a browser cookie. The
problem I am having is that the same cookie (eg: s_ec) needs to be sent with
different values for request #12 and request #18. If I add this cookie, I am
unable to change the value of the cookie.


sebb-2-2 wrote:
> 
> On 29/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>>
>>  It is still not working for me. I have a cookie manager at the thread
>> group
>>  level for all my 20 requests. I added a "cookie manager" as a child for
>> one
>>  request and added two cookies to it. These cookies are not being sent
>> along
>>  with my request. They get sent only if I disable the main "cookie
>> manager"
>>  at the thread group level. I am stuck as it appears like Jmeter does not
>>
>> support adding a browser cookie for one or two requests in my thread
>> group
>>  while I have another cookie manager at the thread group level for server
>>  cookies for the remaining 18 requests.
>>
> 
> You wrote that you were not interested in server cookies, which is why I
> wrote:
> 
>>> Yes, if you want to ignore server cookies, just add the cookie manager
>>> as a child of each  request that needs the specific cookies.
> 
> If a Sampler finds multiple Cookie Managers in the same scope, then
> only one CM will be used  - as you have found out.
> 
> However, you can use variables in the Cookie Manager.
> So if the server does not mind getting extra cookies, you can define
> the extra cookies that you need, and set the variables as needed.
> 
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 28/09/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>  >>
>>  >>  Sorry, if I did not make myself clear. I am using "2.3.2.r665936". I
>> am
>>  >> not concerned about the cookies sent by server in this case. The
>>  >> javascripts on my web pages set some cookies for certain requests
>>  >> resulting in browser sending a request to the server with this new
>> cookie
>>  >> or a different value for the same cookie. This is where I am having
>> real
>>  >> problem. Is there any way to send a specific cookie for a couple of
>>  >> requests in my thread group where I have 20 requests all together.
>>  >
>>  > Yes, if you want to ignore server cookies, just add the cookie manager
>>  > as a child of each  request that needs the specific cookies.
>>  >
>>  >>  BTW, what happens when I set "automatic redirection" and the server
>> sets
>>  >> a new cookie and issues a 302 and the subsequent request goes to the
>>  >> redirected url with this new cookie. Will this work in Jmeter or do I
>>  >> need to create two different requests instead of setting "automatic
>>  >> redirection".
>>  >>
>>  >
>>  > No and no - please see:
>>  >
>>  >
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
>>  >
>>  > See "Redirect Automatically" and "Follow Redirects"
>>  >
>>  >>  sebb-2-2 wrote:
>>  >>  >
>>  >>  > No need to use multiple cookie managers - anyway, they won't work.
>>  >>  >
>>  >>  > If the server sets a cookie, it will be seen by JMeter (unless you
>> are
>>  >>  > using redirect automatically), and JMeter will send any relevant
>>  >>  > cookies with the next request.
>>  >>  >
>>  >>  > If you want to add your own cookies, add them to the cookie
>> manager.
>>  >>  > But this is rarely needed.
>>  >>  >
>>  >>  > Note that there was a problem in 2.3.1 if you selected "Clear
>> cookies
>>  >>  > each iteration".
>>  >>  >
>>  >>  > Upgrade to 2.3.2 if necessary.
>>  >>  >
>>  >>  > On 28/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>>  >>  >>
>>  >>  >>  I have tried adding "Cookie" as a header and jmeter does not
>> treat
>>  >> it as
>>  >>  >>  cookie and that does not appear in the outgoing request. I wish
>> I
>>  >> could
>>  >>  >> use
>>  >>  >>  additional "Cookie Managers"  in addition to adding at thread
>> level
>>  >> to
>>  >>  >> add
>>  >>  >>  extra cookies or change cookies to what I am getting by adding
>> it at
>>  >> the
>>  >>  >>  thread level.
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >>  >>  Laurent Perez wrote:
>>  >>  >>  >
>>  >>  >>  >> How can I add my own cookies for some requests. If I add it
>> to
>>  >> the
>>  >>  >> cookie
>>  >>  >>  >> manager at the thread level, these cookies get added to all
>>  >> requests.
>>  >>  >>  >
>>  >>  >>  > I believe you can use
>>  >>  >>  >
>>  >>  >>
>>  >>
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Header_Manager
>>  >>  >>  > at the HTTP Request level (instead of Thread group level).
>>  >>  >>  >
>>  >>  >>  > So I guess you could create a header named Cookie for each
>>  >> request. If
>>  >>  >>  > cookies values need to be dynamic ones, you could use some
>> post
>>  >>  >>  > processor to extract Set-cookie values from the response and
>> store
>>  >>  >>  > them as variables.
>>  >>  >>  >
>>  >>  >>  > Don't know if this would fit your needs, I never tried this.
>>  >>  >>  >
>>  >>  >>  > laurent
>>  >>  >>  >
>>  >>  >>  >
>>  >

Re: Insert Cookies for some requests in a thread group

2008-09-29 Thread sebb
On 29/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>
>  It is still not working for me. I have a cookie manager at the thread group
>  level for all my 20 requests. I added a "cookie manager" as a child for one
>  request and added two cookies to it. These cookies are not being sent along
>  with my request. They get sent only if I disable the main "cookie manager"
>  at the thread group level. I am stuck as it appears like Jmeter does not
>
> support adding a browser cookie for one or two requests in my thread group
>  while I have another cookie manager at the thread group level for server
>  cookies for the remaining 18 requests.
>

You wrote that you were not interested in server cookies, which is why I wrote:

>> Yes, if you want to ignore server cookies, just add the cookie manager
>> as a child of each  request that needs the specific cookies.

If a Sampler finds multiple Cookie Managers in the same scope, then
only one CM will be used  - as you have found out.

However, you can use variables in the Cookie Manager.
So if the server does not mind getting extra cookies, you can define
the extra cookies that you need, and set the variables as needed.

>
>  sebb-2-2 wrote:
>  >
>  > On 28/09/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  Sorry, if I did not make myself clear. I am using "2.3.2.r665936". I am
>  >> not concerned about the cookies sent by server in this case. The
>  >> javascripts on my web pages set some cookies for certain requests
>  >> resulting in browser sending a request to the server with this new cookie
>  >> or a different value for the same cookie. This is where I am having real
>  >> problem. Is there any way to send a specific cookie for a couple of
>  >> requests in my thread group where I have 20 requests all together.
>  >
>  > Yes, if you want to ignore server cookies, just add the cookie manager
>  > as a child of each  request that needs the specific cookies.
>  >
>  >>  BTW, what happens when I set "automatic redirection" and the server sets
>  >> a new cookie and issues a 302 and the subsequent request goes to the
>  >> redirected url with this new cookie. Will this work in Jmeter or do I
>  >> need to create two different requests instead of setting "automatic
>  >> redirection".
>  >>
>  >
>  > No and no - please see:
>  >
>  > 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
>  >
>  > See "Redirect Automatically" and "Follow Redirects"
>  >
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>  > No need to use multiple cookie managers - anyway, they won't work.
>  >>  >
>  >>  > If the server sets a cookie, it will be seen by JMeter (unless you are
>  >>  > using redirect automatically), and JMeter will send any relevant
>  >>  > cookies with the next request.
>  >>  >
>  >>  > If you want to add your own cookies, add them to the cookie manager.
>  >>  > But this is rarely needed.
>  >>  >
>  >>  > Note that there was a problem in 2.3.1 if you selected "Clear cookies
>  >>  > each iteration".
>  >>  >
>  >>  > Upgrade to 2.3.2 if necessary.
>  >>  >
>  >>  > On 28/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>  >>  >>
>  >>  >>  I have tried adding "Cookie" as a header and jmeter does not treat
>  >> it as
>  >>  >>  cookie and that does not appear in the outgoing request. I wish I
>  >> could
>  >>  >> use
>  >>  >>  additional "Cookie Managers"  in addition to adding at thread level
>  >> to
>  >>  >> add
>  >>  >>  extra cookies or change cookies to what I am getting by adding it at
>  >> the
>  >>  >>  thread level.
>  >>  >>
>  >>  >>
>  >>  >>
>  >>  >>
>  >>  >>  Laurent Perez wrote:
>  >>  >>  >
>  >>  >>  >> How can I add my own cookies for some requests. If I add it to
>  >> the
>  >>  >> cookie
>  >>  >>  >> manager at the thread level, these cookies get added to all
>  >> requests.
>  >>  >>  >
>  >>  >>  > I believe you can use
>  >>  >>  >
>  >>  >>
>  >> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Header_Manager
>  >>  >>  > at the HTTP Request level (instead of Thread group level).
>  >>  >>  >
>  >>  >>  > So I guess you could create a header named Cookie for each
>  >> request. If
>  >>  >>  > cookies values need to be dynamic ones, you could use some post
>  >>  >>  > processor to extract Set-cookie values from the response and store
>  >>  >>  > them as variables.
>  >>  >>  >
>  >>  >>  > Don't know if this would fit your needs, I never tried this.
>  >>  >>  >
>  >>  >>  > laurent
>  >>  >>  >
>  >>  >>  >
>  >>  >>  >>
>  >>  >>  >> Sincerely appreciate your help.
>  >>  >>  >> --
>  >>  >>  >> View this message in context:
>  >>  >>  >>
>  >>  >>
>  >> 
> http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19709256.html
>  >>  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >>
>  >> -
>  >>  >>  >> To unsubscribe, e-

Saving aggregate date to csv over many test runs

2008-09-29 Thread Jacob Singh
Hi,

I'm using paramaterized launches to stress test my application because
I have to run it from a remote server, and therefor changing the value
is a pain the arse.
So I've setup a little script which also outputs listeners to a
different directory each time (by date).  This works good, I rsync
them down to my box and then I import them.

Now I've been running so many tests, it's getting hard to actually
analyze the data effectively.  I'd like a csv file with the aggregate
report like this:

testname | average | median | etc..

so that I could pass in a var call "testname" into the script (which
would have some identifying info like # of threads, etc), and have it
append the aggregate data to my existing file.

Is there any sane way to do this?  some other alternative which may
not be as nice, bur pretty close?

Can I make the aggregate report save itself as CSV so that I can at
least do some manual post processing on it?

Thanks!
Jacob

-- 

+1 510 277-0891 (o)
+91  33 7458 (m)

web: http://pajamadesign.com

Skype: pajamadesign
Yahoo: jacobsingh
AIM: jacobsingh
gTalk: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to use variables in Thread group duration/startup delay

2008-09-29 Thread sebb
On 29/09/2008, Laurent Perez <[EMAIL PROTECTED]> wrote:
> >>  I'm using a beanshell postprocessor like :
>
> 
>
> > By the time the beanshell post-processor is invoked, the test has
>  > already started.
>
>
> Sorry, I meant, I'm using a beanshell PREprocessor (very wrong typo)
>

Same applies to the Pre-Processor. No test elements are processed
until the test starts.

>  But it sounds like the preprocessor is invoked once the test has
>  started, too ; I've made a very simple jmx scenario, and bsh variables
>  are not seen.
>
>  Is it the expected behaviour, does a preprocessor only precedes once
>  the thread group has started ?

PreProcessors are processed before any Samples in scope - not before the test.

>  My use case is that I'd like to be able to compute thread group
>  duration/startup delay variables in a single place (i.e a bsh script)
>  before starting the groups : I have many groups (~20 of them, to mimic
>  various scenarios), and expressing things like "group1 will start and
>  live for 30 minutes, group2 will start 15 minutes after group1 has
>  started and live for 5 minutes, and so on" is very tedious when I have
>  to setup each and every group timers independently.
>

I don't have the code to hand, but I'm fairly sure you can use the
beanshell initialisation script for this.

Just define the property beanshell.init.file in jmeter.properties.

If you include a print() statement you can check whether the script is
processed before the test is started.

Or use a scripting language to create the appropriate entries in a
properties file and pass that to JMeter.

>  Thanks
>  laurent
>
>  --
>  http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
>  - Mobile world, technology and more
>
>  -
>  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]



Re: Unable to use variables in Thread group duration/startup delay

2008-09-29 Thread Laurent Perez
>>  I'm using a beanshell postprocessor like :

> By the time the beanshell post-processor is invoked, the test has
> already started.

Sorry, I meant, I'm using a beanshell PREprocessor (very wrong typo)

But it sounds like the preprocessor is invoked once the test has
started, too ; I've made a very simple jmx scenario, and bsh variables
are not seen.

Is it the expected behaviour, does a preprocessor only precedes once
the thread group has started ?

My use case is that I'd like to be able to compute thread group
duration/startup delay variables in a single place (i.e a bsh script)
before starting the groups : I have many groups (~20 of them, to mimic
various scenarios), and expressing things like "group1 will start and
live for 30 minutes, group2 will start 15 minutes after group1 has
started and live for 5 minutes, and so on" is very tedious when I have
to setup each and every group timers independently.

Thanks
laurent

-- 
http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
- Mobile world, technology and more

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to use variables in Thread group duration/startup delay

2008-09-29 Thread sebb
On 29/09/2008, Laurent Perez <[EMAIL PROTECTED]> wrote:
> Hi
>
>  Does the Thread group element support variables inside Calendar
>  duration/startup delay fields ?

Yes.

>  I'm using a beanshell postprocessor like :
>  u1duration = 180;
>  u1delay = 10;
>  vars.put("u1duration", String.valueOf(u1duration));
>  vars.put("u1delay",String.valueOf(u1delay));
>  print(cal.getTime() + "u1: " + vars.get("u1duration") + "/" +
>  vars.get("u1delay"));
>  -> the output here is : Tue Sep 30 12:14:23 CEST 2008u1: 180/10
>
>  However, when I use ${u1duration} and ${u1delay in fields}, they are
>  not used by the thread group : the group just starts, then stops,
>  without performing anything.

You need to define the variables on the Test Plan (or use properties
and define them on the command-line or jmeter.properties.)

By the time the beanshell post-processor is invoked, the test has
already started.

>  Are variables supported in thread group element ?
>
>  Thanks
>  laurent
>
>
>
>  --
>  http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
>  - Mobile world, technology and more
>
>  -
>  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]



Re: I have a problem when i run a test plan recorded by proxy.

2008-09-29 Thread sebb
On 29/09/2008, Himanshu Ghai <[EMAIL PROTECTED]> wrote:
> here's an asap reply...start comparing the request and responses
>  from the beginning of your script to the end with what your browser sends..
>  wherever you see any difference in the request/cookies/response correct it..
>  use a proxy(paros/achilles) or http live headers/firebug to see requests nd
>  response from browser...
>
>  request first in the plan should be sent first..are you running multiple
>  threads?
>
>  this is a list where people contribute..to me it does not seem appropriate
>  to
>  ask for ASAP responses..

All good advice.

Make sure you have added a Cookie Manager to the test plan.
During proxy recording, the browser takes care of any cookies, but
when you re-run the plan, JMeter needs to be told to do so.

>  Himanshu
>
>  On Mon, Sep 29, 2008 at 2:40 AM, Sandeep G <[EMAIL PROTECTED]>wrote:
>
>
>  >
>  > Hi All,
>  > I recorded an application with proxy with 1 user...requests are as follows
>  > 1.Login(It contains username and password)
>  > 2.click apply for job link
>  > 3.apply job form 1 and click next(It contains applicant details)
>  > 4.apply job form 2 and click submit(It contains competencies text area box)
>  >
>  > I saved that recorded testPlan.
>  > Added http cookie for whole thread group.Set cookie policy as
>  > Compatibility.Added Listeners(view results tree,view results table,summary
>  > report etc..)
>  > I changed username and password values in login sampler.
>  > I changed lastname,firstname,emailid and password values in apply job form
>  > 1
>  > sampler.I didn't disturb rest of the form 1 details.
>  > I saved testplan and started run.
>  > After completion, i saw view results tree.logged in success fully.apply job
>  > 1 and 2 forms are not added.
>  > Actually apply job 1 form should appear first but job 2 form appeared first
>  > in tree.also values are not set what i have given.
>  > I hope any other stuff has to be added..
>  > I stucked here.I unable to go next step.
>  > Please reply me ASAP.
>  >
>  > Regards,
>  > Sandeep G.
>  >
>  >
>  >
>  >
>  >
>  > --
>  > View this message in context:
>  > 
> http://www.nabble.com/I-have-a-problem-when-i-run-a-test-plan-recorded-by-proxy.-tp19720854p19720854.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]



Re: how do I pass a value obtained in "Thread Group 1" (with "XPath Extractor" from a "WebService(SOAP) Request") to "Thread Group 2" for use as input to "WebService(SOAP) Request"

2008-09-29 Thread sebb
On 29/09/2008, Mark24 <[EMAIL PROTECTED]> wrote:
>
>  Thanks Sebb. I've tried your suggestions but had hit another snag:
>
>  I call Jmeter at the command window by "Jmeter -Jsecurityid=123" to create a
>  parameter securityid with default value "123".
>
>
>  + Test Plan
>  ++ Thread Group1
>  +++ WebService(SOAP) Request1
>   XPath Extractor
>   BeanShell PostProcessor1
>
>  ++ Thread Group2
>  +++ WebService(SOAP) Request2
>   BeanShell PostProcessor2
>
>
>  In Thread Group1, XPath Extractor I set:
>  - Reference Name = theSID
>  - Xpath query = //sid
>  - Default Value = "nomatchfound"
>
>  In Thread Group1, BeanShell PostProcessor1 I set:
>  - Reset Interpreter = False
>  - Parameters = ${theSID}
>  - Script = ${__setProperty(securityid,bsh.args[0],true)};
>  print(${__P(securityid)});
>
>
>  In Thread Group2, BeanShell PostProcessor2 I set:
>  - Reset Interpreter = False
>  - Parameters =
>  - Script = print(${__P(securityid)});
>
>
>  I run this Test Plan, it extracts //sid (say, "123456", sets securityid to
>  "123456" and prints to console "123456" in BeanShell PostProcessor1, but in
>  Thread Group2's BeanShell PostProcessor2 it doesn't print to console but
>  instead logs an error in jmeter.log mentioning "Error invoking bsh method:
>  eval Sourced file: inline evaluation of: ''print(bsh.args[0]);''"
>
>
>  I expect print(${__P(securityid)}); in BeanShell PostProcessor2 to print
>  "123456" but is looks like it is evaluating bsh.args[0] and because it
>  doesn't exist here it errors out.
>
>  What am i doing wrong?

Neither JMeter nor BeanShell will add ''print(bsh.args[0]);'' to the
script by themselves, so there must be an error in your BeanShell
script - or perhaps initialisation file.

>
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 26/09/2008, Mark24 <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  Thanks for your reply sebb, you are very informative (i've been reading
>  >> your
>  >>  answer to questions quite often over the last 3 days ive been using
>  >> JMeter).
>  >>
>  >>  My grand plan is to regression test my company's MS web services by
>  >> loging
>  >>  in once to get the security id, then spawn multiple virtual users to
>  >> work
>  >>  together to call the other WS methods using a collection of inputs from
>  >> a
>  >>  database. certain values from the responses are planned to be inserted
>  >> into
>  >>  a database to later run some sql to compare these values against a test
>  >>  baseline database.
>  >>
>  >>  I was using one thread group which was spawning a single user to to get
>  >> the
>  >>  security id, then the second thread group would spawn n virtual users.
>  >>
>  >
>  > OK, it was not clear that you wanted to use a single id in multiple
>  > threads.
>  >
>  > In which case, use two thread groups, and set them to run one after
>  > another.
>  >
>  > Extract the id you want to use, and save it as a JMeter Property using
>  > the function:
>  >
>  > http://jakarta.apache.org/jmeter/usermanual/functions.html#__setProperty
>  >
>  > You can then use the __P() function to retrieve the value in the
>  > second thread group.
>  >
>  > Or if you already have a lot of samplers using a variable, just add a
>  > user parameters pre-processor to the first one and copy the property
>  > to the variable there.
>  >
>  >>  I'm possibly approaching the solution to my problem incorrectly so
>  >> please
>  >>  comment or point me to some reading material. My Jmeter textbook has
>  >> been
>  >>  order on Amazon but until then, the jmeter docs and forums like this are
>  >> my
>  >>  friends.
>  >
>  > There's also quite a lot of information on the Wiki.
>  >
>  >>  Thanks again Sebb,
>  >>
>  >>  Mark
>  >>
>  >>
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>  > On 26/09/2008, Mark24 <[EMAIL PROTECTED]> wrote:
>  >>  >>
>  >>  >>  In Jmeter 2.3.2, how do I pass a value obtained in "Thread Group 1"
>  >>  >> (with
>  >>  >>  "XPath Extractor" from a "WebService(SOAP) Request") to "Thread
>  >> Group 2"
>  >>  >> for
>  >>  >>  use as input to "WebService(SOAP) Request"
>  >>  >>
>  >>  >>  Graphically:
>  >>  >>
>  >>  >>  "Thread Group 1"
>  >>  >>"WebService(SOAP) Request"  //login() WS method which returns a
>  >>  >> security
>  >>  >>  ID
>  >>  >>"XPath Extractor"  //extract security ID to security_ID variable
>  >>  >>  "Thread Group 2"
>  >>  >>"WebService(SOAP) Request"  //use ${security_ID} as a parameter to
>  >>  >> this
>  >>  >>  Search() WS method
>  >>  >>
>  >>  >>
>  >>  >>  Variable security_ID declared in "Thread Group 1"'s "XPath
>  >> Extractor"
>  >>  >> seems
>  >>  >>  to be very narrowly scoped as "${security_ID}" is literally used as
>  >>  >> input to
>  >>  >>  "Thread Group 2"'s "WebService(SOAP) Request" instead of the value
>  >> of
>  >>  >>  ${security_ID}.
>  >>  >>
>  >>  >>  I've tried declaring the security_ID variable in "Test Plan to use"
>  >> but
>  >>  >> this
>  >>  >>  doesn't work (${security_ID} resolves to the value i set duri

Problems with GWT aplication

2008-09-29 Thread Jose Pablo Sarco
Hi all,

 

I can’t record a scenario in a GWT application. I tried with Bad Boy and 
nothing is recorded, then I tried with the Jmeter HTTP Proxy Server and some 
actions are recorded but with parameters like this: 

Post /arcorsales/services/i18n

 

Parameter Name: 

Parameter Value:

3�0�6�http://arrosvmapp92:9080/arcorsales/�A54E696C43E49725CD8446E4171EA2C4�ar.com.arcor.arcorsales.webapp.gwt.client.common.i18n.I18nServiceRemote�changeLocale�java.lang.String�es_AR�1�2�3�4�1�5�6�.

 

When I ran the test plan, fail all the samplers.

 

 

I’m using Jmeter version 2.3.2 in win XP

 

¿Is it possible test a GWT application with Jmeter?

 

Thanks in advance.

 

Jose


#
Este documento puede incluir informaci�n confidencial y propiedad de Neoris y 
deber� ser le�do solamente por la 
o las personas a quienes est� dirigido. Si usted ha recibido este mensaje por 
error, por favor avise 
inmediatamente al remitente contestando y eliminando este correo. Cualquier 
punto de vista u opiniones expresadas 
en este mensaje son del remitente y no necesariamente coinciden con aquellas de 
Neoris. Este documento no deber� 
ser reproducido, copiado, distribuido, publicado, ni modificado por terceros 
sin la autorizaci�n por escrito de Neoris. 

Este mensaje ha sido verificado contra virus. Vis�tenos en www.neoris.com. 
#


Re: Insert Cookies for some requests in a thread group

2008-09-29 Thread henryd

It is still not working for me. I have a cookie manager at the thread group
level for all my 20 requests. I added a "cookie manager" as a child for one
request and added two cookies to it. These cookies are not being sent along
with my request. They get sent only if I disable the main "cookie manager"
at the thread group level. I am stuck as it appears like Jmeter does not
support adding a browser cookie for one or two requests in my thread group
while I have another cookie manager at the thread group level for server
cookies for the remaining 18 requests.



sebb-2-2 wrote:
> 
> On 28/09/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>>  Sorry, if I did not make myself clear. I am using "2.3.2.r665936". I am
>> not concerned about the cookies sent by server in this case. The
>> javascripts on my web pages set some cookies for certain requests
>> resulting in browser sending a request to the server with this new cookie
>> or a different value for the same cookie. This is where I am having real
>> problem. Is there any way to send a specific cookie for a couple of
>> requests in my thread group where I have 20 requests all together.
> 
> Yes, if you want to ignore server cookies, just add the cookie manager
> as a child of each  request that needs the specific cookies.
> 
>>  BTW, what happens when I set "automatic redirection" and the server sets
>> a new cookie and issues a 302 and the subsequent request goes to the
>> redirected url with this new cookie. Will this work in Jmeter or do I
>> need to create two different requests instead of setting "automatic
>> redirection".
>>
> 
> No and no - please see:
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
> 
> See "Redirect Automatically" and "Follow Redirects"
> 
>>  sebb-2-2 wrote:
>>  >
>>  > No need to use multiple cookie managers - anyway, they won't work.
>>  >
>>  > If the server sets a cookie, it will be seen by JMeter (unless you are
>>  > using redirect automatically), and JMeter will send any relevant
>>  > cookies with the next request.
>>  >
>>  > If you want to add your own cookies, add them to the cookie manager.
>>  > But this is rarely needed.
>>  >
>>  > Note that there was a problem in 2.3.1 if you selected "Clear cookies
>>  > each iteration".
>>  >
>>  > Upgrade to 2.3.2 if necessary.
>>  >
>>  > On 28/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>>  >>
>>  >>  I have tried adding "Cookie" as a header and jmeter does not treat
>> it as
>>  >>  cookie and that does not appear in the outgoing request. I wish I
>> could
>>  >> use
>>  >>  additional "Cookie Managers"  in addition to adding at thread level
>> to
>>  >> add
>>  >>  extra cookies or change cookies to what I am getting by adding it at
>> the
>>  >>  thread level.
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>  Laurent Perez wrote:
>>  >>  >
>>  >>  >> How can I add my own cookies for some requests. If I add it to
>> the
>>  >> cookie
>>  >>  >> manager at the thread level, these cookies get added to all
>> requests.
>>  >>  >
>>  >>  > I believe you can use
>>  >>  >
>>  >>
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Header_Manager
>>  >>  > at the HTTP Request level (instead of Thread group level).
>>  >>  >
>>  >>  > So I guess you could create a header named Cookie for each
>> request. If
>>  >>  > cookies values need to be dynamic ones, you could use some post
>>  >>  > processor to extract Set-cookie values from the response and store
>>  >>  > them as variables.
>>  >>  >
>>  >>  > Don't know if this would fit your needs, I never tried this.
>>  >>  >
>>  >>  > laurent
>>  >>  >
>>  >>  >
>>  >>  >>
>>  >>  >> Sincerely appreciate your help.
>>  >>  >> --
>>  >>  >> View this message in context:
>>  >>  >>
>>  >>
>> http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19709256.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]
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>  > --
>>  >>
>>  >> >  http://in-pocket.blogspot.com http://in-pocket.blogspot.com
>>  >>  > - Mobile world, technology and more
>>  >>  >
>>  >>
>>  >> >
>> -
>>  >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>  --
>>  >>
>>  >> View this message in context:
>>  >>
>> http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19712078.html
>>  >>
>>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> -
>>  >>  To unsubscribe, e-mail: [EMAIL

Re: Insert Cookies for some requests in a thread group

2008-09-29 Thread henryd

It is still not working for me. I have a cookie manager at the thread group
level for all my 20 requests. I added a "cookie manager" as a child for one
request and added two cookies to it. These cookies are not being sent along
with my request. They get sent only if I disable the main "cookie manager"
at the thread group level. I am stuck as it appears like Jmeter does not
support adding a browser cookie for one request in my thread group, when I
want the server cookies for all the rest of my requests.



sebb-2-2 wrote:
> 
> No need to use multiple cookie managers - anyway, they won't work.
> 
> If the server sets a cookie, it will be seen by JMeter (unless you are
> using redirect automatically), and JMeter will send any relevant
> cookies with the next request.
> 
> If you want to add your own cookies, add them to the cookie manager.
> But this is rarely needed.
> 
> Note that there was a problem in 2.3.1 if you selected "Clear cookies
> each iteration".
> 
> Upgrade to 2.3.2 if necessary.
> 
> On 28/09/2008, henryd <[EMAIL PROTECTED]> wrote:
>>
>>  I have tried adding "Cookie" as a header and jmeter does not treat it as
>>  cookie and that does not appear in the outgoing request. I wish I could
>> use
>>  additional "Cookie Managers"  in addition to adding at thread level to
>> add
>>  extra cookies or change cookies to what I am getting by adding it at the
>>  thread level.
>>
>>
>>
>>
>>  Laurent Perez wrote:
>>  >
>>  >> How can I add my own cookies for some requests. If I add it to the
>> cookie
>>  >> manager at the thread level, these cookies get added to all requests.
>>  >
>>  > I believe you can use
>>  >
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Header_Manager
>>  > at the HTTP Request level (instead of Thread group level).
>>  >
>>  > So I guess you could create a header named Cookie for each request. If
>>  > cookies values need to be dynamic ones, you could use some post
>>  > processor to extract Set-cookie values from the response and store
>>  > them as variables.
>>  >
>>  > Don't know if this would fit your needs, I never tried this.
>>  >
>>  > laurent
>>  >
>>  >
>>  >>
>>  >> Sincerely appreciate your help.
>>  >> --
>>  >> View this message in context:
>>  >>
>> http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19709256.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]
>>  >>
>>  >>
>>  >
>>  >
>>  >
>>  > --
>>
>> >  http://in-pocket.blogspot.com http://in-pocket.blogspot.com
>>  > - Mobile world, technology and more
>>  >
>>
>> > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>  >
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19712078.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Insert-Cookies-for-some-requests-in-a-thread-group-tp19709256p19723533.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]



Unable to use variables in Thread group duration/startup delay

2008-09-29 Thread Laurent Perez
Hi

Does the Thread group element support variables inside Calendar
duration/startup delay fields ?
I'm using a beanshell postprocessor like :
u1duration = 180;
u1delay = 10;
vars.put("u1duration", String.valueOf(u1duration));
vars.put("u1delay",String.valueOf(u1delay));
print(cal.getTime() + "u1: " + vars.get("u1duration") + "/" +
vars.get("u1delay"));
-> the output here is : Tue Sep 30 12:14:23 CEST 2008u1: 180/10

However, when I use ${u1duration} and ${u1delay in fields}, they are
not used by the thread group : the group just starts, then stops,
without performing anything.

Are variables supported in thread group element ?

Thanks
laurent


-- 
http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
- Mobile world, technology and more

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I have a problem when i run a test plan recorded by proxy.

2008-09-29 Thread Himanshu Ghai
here's an asap reply...start comparing the request and responses
from the beginning of your script to the end with what your browser sends..
wherever you see any difference in the request/cookies/response correct it..
use a proxy(paros/achilles) or http live headers/firebug to see requests nd
response from browser...

request first in the plan should be sent first..are you running multiple
threads?

this is a list where people contribute..to me it does not seem appropriate
to
ask for ASAP responses..

Himanshu

On Mon, Sep 29, 2008 at 2:40 AM, Sandeep G <[EMAIL PROTECTED]>wrote:

>
> Hi All,
> I recorded an application with proxy with 1 user...requests are as follows
> 1.Login(It contains username and password)
> 2.click apply for job link
> 3.apply job form 1 and click next(It contains applicant details)
> 4.apply job form 2 and click submit(It contains competencies text area box)
>
> I saved that recorded testPlan.
> Added http cookie for whole thread group.Set cookie policy as
> Compatibility.Added Listeners(view results tree,view results table,summary
> report etc..)
> I changed username and password values in login sampler.
> I changed lastname,firstname,emailid and password values in apply job form
> 1
> sampler.I didn't disturb rest of the form 1 details.
> I saved testplan and started run.
> After completion, i saw view results tree.logged in success fully.apply job
> 1 and 2 forms are not added.
> Actually apply job 1 form should appear first but job 2 form appeared first
> in tree.also values are not set what i have given.
> I hope any other stuff has to be added..
> I stucked here.I unable to go next step.
> Please reply me ASAP.
>
> Regards,
> Sandeep G.
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/I-have-a-problem-when-i-run-a-test-plan-recorded-by-proxy.-tp19720854p19720854.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]
>
>


HTTP PUT problem with parameters

2008-09-29 Thread Fabien D.

Hi,

I'm using jmeter to test REST WebService. I have done HTTP Request with
"get" method to view data, with "post" method to insert data.These two
methods are working well.

I want to update my data with "put" method, like "post" behavior excepted
the method (post -> put). And it's not working : the parameter send is null.

I  have searched and found that there were a problem with put method for
hold jmeter version. But i have the last one : 2.3.2.

So there is something special to do for put method???

thank you in advance


-- 
View this message in context: 
http://www.nabble.com/HTTP-PUT-problem-with-parameters-tp19720980p19720980.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]



I have a problem when i run a test plan recorded by proxy.

2008-09-29 Thread Sandeep G

Hi All,
I recorded an application with proxy with 1 user...requests are as follows
1.Login(It contains username and password)
2.click apply for job link
3.apply job form 1 and click next(It contains applicant details)
4.apply job form 2 and click submit(It contains competencies text area box)

I saved that recorded testPlan.
Added http cookie for whole thread group.Set cookie policy as
Compatibility.Added Listeners(view results tree,view results table,summary
report etc..)
I changed username and password values in login sampler.
I changed lastname,firstname,emailid and password values in apply job form 1
sampler.I didn't disturb rest of the form 1 details. 
I saved testplan and started run.
After completion, i saw view results tree.logged in success fully.apply job
1 and 2 forms are not added.
Actually apply job 1 form should appear first but job 2 form appeared first
in tree.also values are not set what i have given.
I hope any other stuff has to be added..
I stucked here.I unable to go next step.
Please reply me ASAP.

Regards,
Sandeep G.





-- 
View this message in context: 
http://www.nabble.com/I-have-a-problem-when-i-run-a-test-plan-recorded-by-proxy.-tp19720854p19720854.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]



Re: BeanShell replace String

2008-09-29 Thread Fabien D.

Thank you, You were right ! :)
-- 
View this message in context: 
http://www.nabble.com/BeanShell-replace-String-tp19689516p19719806.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]