You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Rickardsson Daniel <da...@wmdata.com> on 2007/03/22 16:24:42 UTC

Calling a javascript from JMeter?

Hi!
 
Is there any way to call a javascript from JMeter?!
 
I have an application that calls a javascript function when you selects a value in a select list. We have an onchange-event that fires off.
 
I also need to call/simulate a click on a link that fires off a call to a javascript function.
 
If you have any experience of this, please come back to me.
 
/Daniel.

RE: Calling a javascript from JMeter?

Posted by Matthew Coventon <ma...@iseinc.biz>.
Daniel,

Are you using the HTTP Proxy to record your test plan?  The DWR calls should
be recorded there.  Have you searched this list's archives for more info on
JMeter and AJAX/DWR.  I seem to recall seeing related questions.

Regards,

Matt C.

-----Original Message-----
From: Rickardsson Daniel [mailto:darik@wmdata.com] 
Sent: Thursday, March 22, 2007 10:50 AM
To: JMeter Users List
Subject: SV: Calling a javascript from JMeter?

Hi!
Thanks for a fast aswer to my question.
My problem is actually that out javascripts calls our javacode via DWR
(Ajax).
And on our server side we use Spring framework with its controllers...
Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
/Daniel
 
________________________________

Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
Skickat: to 2007-03-22 16:34
Till: 'JMeter Users List'
Ämne: RE: Calling a javascript from JMeter?



Daniel,

JMeter does not have a way to execute Javascript.  But, do your Javascript
functions generate some HTTP requests?  If so, the best way is to
record/playback those HTTP requests and not worry about the Javascript
execution.  Or if the Javascript is changing a value in a form on the page
that is going to be used as part of an HTTP request later, just modify the
value in the actual HTTP request that is sent...no need to have the
Javascript actually execute.

>From a performance testing perspective, it is OK to not execute the
Javascript because it is run on the client side.

Regards,

Matt C.

-----Original Message-----
From: Rickardsson Daniel [mailto:darik@wmdata.com]
Sent: Thursday, March 22, 2007 10:25 AM
To: jmeter-user@jakarta.apache.org
Subject: Calling a javascript from JMeter?

Hi!

Is there any way to call a javascript from JMeter?!

I have an application that calls a javascript function when you selects a
value in a select list. We have an onchange-event that fires off.

I also need to call/simulate a click on a link that fires off a call to a
javascript function.

If you have any experience of this, please come back to me.

/Daniel.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Calling a javascript from JMeter?

Posted by sebb <se...@gmail.com>.
Have you checked the jmeter log file for any errors?

On 23/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> Hi!
>
> I have followed your conversation and I'm dealing with a similar problem.
>
> I have a strange behaviour when I run my JMeter Proxy for recording a test scenario.
>
> My drop-down lists should be loaded with data via an ajax/dwr call when my page is loaded.
>
> But when I set up my browser (proxy settings/LAN config...) and runs my application the drop-downs is empty!!!!!!
> It seems that there is some browser LAN settings problem!
>
> Anyone has any idea?!
>
> /Daniel.
>
>
> ________________________________
>
> Från: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
> Skickat: fr 2007-03-23 11:02
> Till: JMeter Users List
> Ämne: SV: Calling a javascript from JMeter?
>
>
>
> Argh the html got striped, I've indented instead.
>
> ________________________________
>
> Fra: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
> Sendt: fr 23-03-2007 10:57
> Til: JMeter Users List; JMeter Users List
> Emne: SV: Calling a javascript from JMeter?
>
>
>
> my comments in red:)
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: fr 23-03-2007 10:18
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> > While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.
>
> >>Are you talking about the Proxy recording session here, or when you
> >>re-run the test?
> Sorry, I meant re-run the test
> > Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
> >
> > what happens are this(simplyfied example):
> >
> > 1.user selects cars from the vehicle dropdown
> > 2.Ajax request updates the vehicle list
> > 3.user selects opel from the vehicle list
> >
> > So when 2 sometimes does not go thorough, the step 3 cant be done.
>
> >>Surely you just need to make sure that the person developing the test
> >>waits until step 2 has completed?
> Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
> >
> > Are there any one who has some comments on this?
> >
> > We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).
>
> >>JMeter always completes a sample before moving on to the next in the thread.
> >>Check for sample errors.
> jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
> >>Also try running a single thread and see how that works.
> Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> > regards Nino
> >
> > ________________________________
> >
> > Fra: sebb [mailto:sebbaz@gmail.com]
> > Sendt: to 22-03-2007 17:14
> > Til: JMeter Users List
> > Emne: Re: Calling a javascript from JMeter?
> >
> >
> >
> > The browser still generates an HTTP request which can be recorded by
> > the JMeter proxy.
> >
> >
> > On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > > Hi!
> > > Thanks for a fast aswer to my question.
> > > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > > And on our server side we use Spring framework with its controllers...
> > > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > > /Daniel
> > >
> > > ________________________________
> > >
> > > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > > Skickat: to 2007-03-22 16:34
> > > Till: 'JMeter Users List'
> > > Ämne: RE: Calling a javascript from JMeter?
> > >
> > >
> > >
> > > Daniel,
> > >
> > > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > > functions generate some HTTP requests?  If so, the best way is to
> > > record/playback those HTTP requests and not worry about the Javascript
> > > execution.  Or if the Javascript is changing a value in a form on the page
> > > that is going to be used as part of an HTTP request later, just modify the
> > > value in the actual HTTP request that is sent...no need to have the
> > > Javascript actually execute.
> > >
> > > From a performance testing perspective, it is OK to not execute the
> > > Javascript because it is run on the client side.
> > >
> > > Regards,
> > >
> > > Matt C.
> > >
> > > -----Original Message-----
> > > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > > Sent: Thursday, March 22, 2007 10:25 AM
> > > To: jmeter-user@jakarta.apache.org
> > > Subject: Calling a javascript from JMeter?
> > >
> > > Hi!
> > >
> > > Is there any way to call a javascript from JMeter?!
> > >
> > > I have an application that calls a javascript function when you selects a
> > > value in a select list. We have an onchange-event that fires off.
> > >
> > > I also need to call/simulate a click on a link that fires off a call to a
> > > javascript function.
> > >
> > > If you have any experience of this, please come back to me.
> > >
> > > /Daniel.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Calling a javascript from JMeter?

Posted by sebb <se...@gmail.com>.
On 23/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> Hi!
>
> Below you see some warnings and errors from my logfile... have I missed something in my set-up of JMeter?!
> I don't understand the first warnings because I don't do any https-requests.

The SSL warning messages are only generated if the protocol is https,
so your test plan must be using https.

> But the last two lines... those are for my dwr-calls (ajax) that should populate/fill my drop-lists.
>
> 2007/03/23 13:05:07 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
[...]
>  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)

The above line of code (in JMeter 2.2) is only executed as part of the block:

if (PROTOCOL_HTTPS.equalsIgnoreCase(u.getProtocol())){

}

> 2007/03/23 13:05:18 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/arkivsok/s/exec/SearchClass.getCountys.dwr <http://localhost:8080/arkivsok/s/exec/SearchClass.getCountys.dwr>

That appears to be a server problem.

> 2007/03/23 13:05:18 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/arkivsok/s/exec/PropertyClass.getPropertyValues.dwr <http://localhost:8080/arkivsok/s/exec/PropertyClass.getPropertyValues.dwr>
>

Likewise.

Check your server logs.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


SV: Calling a javascript from JMeter?

Posted by Rickardsson Daniel <da...@wmdata.com>.
Hi!
 
Below you see some warnings and errors from my logfile... have I missed something in my set-up of JMeter?!
I don't understand the first warnings because I don't do any https-requests.
But the last two lines... those are for my dwr-calls (ajax) that should populate/fill my drop-lists.
 
2007/03/23 13:05:07 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
 at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(Unknown Source)
 at javax.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
 at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
2007/03/23 13:05:11 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
 at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(Unknown Source)
 at javax.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
 at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
2007/03/23 13:05:11 WARN  - jmeter.protocol.http.sampler.HTTPSampler: You may have forgotten to set the ssl.provider property in jmeter.properties java.lang.IllegalStateException: SSLContextImpl is not initialized
 at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(Unknown Source)
 at javax.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContextSpiWrapper.engineGetSocketFactory(Unknown Source)
 at com.sun.net.ssl.SSLContext.getSocketFactory(Unknown Source)
 at org.apache.jmeter.util.JsseSSLManager.setContext(JsseSSLManager.java:101)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:160)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
 at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:112)
2007/03/23 13:05:18 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/arkivsok/s/exec/SearchClass.getCountys.dwr <http://localhost:8080/arkivsok/s/exec/SearchClass.getCountys.dwr>  
2007/03/23 13:05:18 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/arkivsok/s/exec/PropertyClass.getPropertyValues.dwr <http://localhost:8080/arkivsok/s/exec/PropertyClass.getPropertyValues.dwr>  
 

________________________________

Från: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Skickat: fr 2007-03-23 12:11
Till: JMeter Users List
Ämne: SV: Calling a javascript from JMeter?



I've never expirenced this when recording, only during replay.

Could it be that the http request are in an incorrect order?

________________________________

Fra: Rickardsson Daniel [mailto:darik@wmdata.com]
Sendt: fr 23-03-2007 11:23
Til: JMeter Users List
Emne: SV: Calling a javascript from JMeter?



Hi!

I have followed your conversation and I'm dealing with a similar problem.

I have a strange behaviour when I run my JMeter Proxy for recording a test scenario.

My drop-down lists should be loaded with data via an ajax/dwr call when my page is loaded.

But when I set up my browser (proxy settings/LAN config...) and runs my application the drop-downs is empty!!!!!!
It seems that there is some browser LAN settings problem!

Anyone has any idea?!

/Daniel.


________________________________

Från: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Skickat: fr 2007-03-23 11:02
Till: JMeter Users List
Ämne: SV: Calling a javascript from JMeter?



Argh the html got striped, I've indented instead.

________________________________

Fra: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Sendt: fr 23-03-2007 10:57
Til: JMeter Users List; JMeter Users List
Emne: SV: Calling a javascript from JMeter?



my comments in red:)

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 10:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

>>Are you talking about the Proxy recording session here, or when you
>>re-run the test?
Sorry, I meant re-run the test
> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

>>Surely you just need to make sure that the person developing the test
>>waits until step 2 has completed?
Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

>>JMeter always completes a sample before moving on to the next in the thread.
>>Check for sample errors.
jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
>>Also try running a single thread and see how that works.
Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org










---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org





SV: Calling a javascript from JMeter?

Posted by Nino Wael <Ni...@sdk.sas.com>.
I've never expirenced this when recording, only during replay.
 
Could it be that the http request are in an incorrect order?

________________________________

Fra: Rickardsson Daniel [mailto:darik@wmdata.com]
Sendt: fr 23-03-2007 11:23
Til: JMeter Users List
Emne: SV: Calling a javascript from JMeter?



Hi!

I have followed your conversation and I'm dealing with a similar problem.

I have a strange behaviour when I run my JMeter Proxy for recording a test scenario.

My drop-down lists should be loaded with data via an ajax/dwr call when my page is loaded.

But when I set up my browser (proxy settings/LAN config...) and runs my application the drop-downs is empty!!!!!!
It seems that there is some browser LAN settings problem!

Anyone has any idea?!

/Daniel.


________________________________

Från: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Skickat: fr 2007-03-23 11:02
Till: JMeter Users List
Ämne: SV: Calling a javascript from JMeter?



Argh the html got striped, I've indented instead.

________________________________

Fra: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Sendt: fr 23-03-2007 10:57
Til: JMeter Users List; JMeter Users List
Emne: SV: Calling a javascript from JMeter?



my comments in red:)

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 10:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

>>Are you talking about the Proxy recording session here, or when you
>>re-run the test?
Sorry, I meant re-run the test
> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

>>Surely you just need to make sure that the person developing the test
>>waits until step 2 has completed?
Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

>>JMeter always completes a sample before moving on to the next in the thread.
>>Check for sample errors.
jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
>>Also try running a single thread and see how that works.
Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org










---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


SV: Calling a javascript from JMeter?

Posted by Rickardsson Daniel <da...@wmdata.com>.
Hi!
 
I have followed your conversation and I'm dealing with a similar problem.
 
I have a strange behaviour when I run my JMeter Proxy for recording a test scenario.
 
My drop-down lists should be loaded with data via an ajax/dwr call when my page is loaded. 
 
But when I set up my browser (proxy settings/LAN config...) and runs my application the drop-downs is empty!!!!!!
It seems that there is some browser LAN settings problem!
 
Anyone has any idea?!
 
/Daniel.

 
________________________________

Från: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Skickat: fr 2007-03-23 11:02
Till: JMeter Users List
Ämne: SV: Calling a javascript from JMeter?



Argh the html got striped, I've indented instead.

________________________________

Fra: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Sendt: fr 23-03-2007 10:57
Til: JMeter Users List; JMeter Users List
Emne: SV: Calling a javascript from JMeter?



my comments in red:)

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 10:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

>>Are you talking about the Proxy recording session here, or when you
>>re-run the test?
Sorry, I meant re-run the test
> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

>>Surely you just need to make sure that the person developing the test
>>waits until step 2 has completed?
Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

>>JMeter always completes a sample before moving on to the next in the thread.
>>Check for sample errors.
jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
>>Also try running a single thread and see how that works.
Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org








SV: Calling a javascript from JMeter?

Posted by Nino Wael <Ni...@sdk.sas.com>.
It's always when running the test.
 
I belive the test plan does contain correct Ajax samples.

>In that case, it definitely seems like a server load problem.

>Though I suppose it could perhaps be some interaction between the
>threads - e.g. if two or more threads are using the same session id,
>this could cause problems for the server. Worth checking how the
>thread sessions are handled in the test plan.

Im using a cookie manager, and clears the session var after every iteration.

>You could also try running multiple JMeter instances.
>E.g. if you find that running only a few threads causes problems, then
>try running the same number of instances of JMeter with one thread
>each. If that solves the problem, then check the test plan for
>inadvertent session sharing.

Havent thought of this posibility, and havent tested extensivly if there are a boundery where these AJAX errors does not occur below. I'll look into this a bit now.
 
 
regards Nino
 
 

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 11:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: fr 23-03-2007 10:18
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> > While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.
>
> >>Are you talking about the Proxy recording session here, or when you
> >>re-run the test?
> Sorry, I meant re-run the test
> > Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
> >
> > what happens are this(simplyfied example):
> >
> > 1.user selects cars from the vehicle dropdown
> > 2.Ajax request updates the vehicle list
> > 3.user selects opel from the vehicle list
> >
> > So when 2 sometimes does not go thorough, the step 3 cant be done.
>
> >>Surely you just need to make sure that the person developing the test
> >>waits until step 2 has completed?
> Yes, but this are done, sometimes it just seems that the AJAX request fails to
> complete. On the real page there are several ajax requests, but it's always the
> first one that fails when it fails. I sorta figured that it should be somewhat random
> which one that fails.

Again, is this failure occurring at recording time, or run-time?

> >
> > Are there any one who has some comments on this?
> >
> > We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).
>
> >>JMeter always completes a sample before moving on to the next in the thread.
> >>Check for sample errors.
> jup that was how I discovered the problem, the page complains that you cant
> goto the next page without selecting a vehicle from the vechicle list

Does the Test Plan contain the correct Ajax samples?

> >>Also try running a single thread and see how that works.
> Running a thread group with only a single thread never gives errors,
> I'll try this more extensively.

In that case, it definitely seems like a server load problem.

Though I suppose it could perhaps be some interaction between the
threads - e.g. if two or more threads are using the same session id,
this could cause problems for the server. Worth checking how the
thread sessions are handled in the test plan.

You could also try running multiple JMeter instances.
E.g. if you find that running only a few threads causes problems, then
try running the same number of instances of JMeter with one thread
each. If that solves the problem, then check the test plan for
inadvertent session sharing.

> > regards Nino
> >
> > ________________________________
> >
> > Fra: sebb [mailto:sebbaz@gmail.com]
> > Sendt: to 22-03-2007 17:14
> > Til: JMeter Users List
> > Emne: Re: Calling a javascript from JMeter?
> >
> >
> >
> > The browser still generates an HTTP request which can be recorded by
> > the JMeter proxy.
> >
> >
> > On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > > Hi!
> > > Thanks for a fast aswer to my question.
> > > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > > And on our server side we use Spring framework with its controllers...
> > > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > > /Daniel
> > >
> > > ________________________________
> > >
> > > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > > Skickat: to 2007-03-22 16:34
> > > Till: 'JMeter Users List'
> > > Ämne: RE: Calling a javascript from JMeter?
> > >
> > >
> > >
> > > Daniel,
> > >
> > > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > > functions generate some HTTP requests?  If so, the best way is to
> > > record/playback those HTTP requests and not worry about the Javascript
> > > execution.  Or if the Javascript is changing a value in a form on the page
> > > that is going to be used as part of an HTTP request later, just modify the
> > > value in the actual HTTP request that is sent...no need to have the
> > > Javascript actually execute.
> > >
> > > From a performance testing perspective, it is OK to not execute the
> > > Javascript because it is run on the client side.
> > >
> > > Regards,
> > >
> > > Matt C.
> > >
> > > -----Original Message-----
> > > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > > Sent: Thursday, March 22, 2007 10:25 AM
> > > To: jmeter-user@jakarta.apache.org
> > > Subject: Calling a javascript from JMeter?
> > >
> > > Hi!
> > >
> > > Is there any way to call a javascript from JMeter?!
> > >
> > > I have an application that calls a javascript function when you selects a
> > > value in a select list. We have an onchange-event that fires off.
> > >
> > > I also need to call/simulate a click on a link that fires off a call to a
> > > javascript function.
> > >
> > > If you have any experience of this, please come back to me.
> > >
> > > /Daniel.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org





Re: Calling a javascript from JMeter?

Posted by sebb <se...@gmail.com>.
On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: fr 23-03-2007 10:18
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> > While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.
>
> >>Are you talking about the Proxy recording session here, or when you
> >>re-run the test?
> Sorry, I meant re-run the test
> > Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
> >
> > what happens are this(simplyfied example):
> >
> > 1.user selects cars from the vehicle dropdown
> > 2.Ajax request updates the vehicle list
> > 3.user selects opel from the vehicle list
> >
> > So when 2 sometimes does not go thorough, the step 3 cant be done.
>
> >>Surely you just need to make sure that the person developing the test
> >>waits until step 2 has completed?
> Yes, but this are done, sometimes it just seems that the AJAX request fails to
> complete. On the real page there are several ajax requests, but it's always the
> first one that fails when it fails. I sorta figured that it should be somewhat random
> which one that fails.

Again, is this failure occurring at recording time, or run-time?

> >
> > Are there any one who has some comments on this?
> >
> > We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).
>
> >>JMeter always completes a sample before moving on to the next in the thread.
> >>Check for sample errors.
> jup that was how I discovered the problem, the page complains that you cant
> goto the next page without selecting a vehicle from the vechicle list

Does the Test Plan contain the correct Ajax samples?

> >>Also try running a single thread and see how that works.
> Running a thread group with only a single thread never gives errors,
> I'll try this more extensively.

In that case, it definitely seems like a server load problem.

Though I suppose it could perhaps be some interaction between the
threads - e.g. if two or more threads are using the same session id,
this could cause problems for the server. Worth checking how the
thread sessions are handled in the test plan.

You could also try running multiple JMeter instances.
E.g. if you find that running only a few threads causes problems, then
try running the same number of instances of JMeter with one thread
each. If that solves the problem, then check the test plan for
inadvertent session sharing.

> > regards Nino
> >
> > ________________________________
> >
> > Fra: sebb [mailto:sebbaz@gmail.com]
> > Sendt: to 22-03-2007 17:14
> > Til: JMeter Users List
> > Emne: Re: Calling a javascript from JMeter?
> >
> >
> >
> > The browser still generates an HTTP request which can be recorded by
> > the JMeter proxy.
> >
> >
> > On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > > Hi!
> > > Thanks for a fast aswer to my question.
> > > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > > And on our server side we use Spring framework with its controllers...
> > > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > > /Daniel
> > >
> > > ________________________________
> > >
> > > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > > Skickat: to 2007-03-22 16:34
> > > Till: 'JMeter Users List'
> > > Ämne: RE: Calling a javascript from JMeter?
> > >
> > >
> > >
> > > Daniel,
> > >
> > > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > > functions generate some HTTP requests?  If so, the best way is to
> > > record/playback those HTTP requests and not worry about the Javascript
> > > execution.  Or if the Javascript is changing a value in a form on the page
> > > that is going to be used as part of an HTTP request later, just modify the
> > > value in the actual HTTP request that is sent...no need to have the
> > > Javascript actually execute.
> > >
> > > From a performance testing perspective, it is OK to not execute the
> > > Javascript because it is run on the client side.
> > >
> > > Regards,
> > >
> > > Matt C.
> > >
> > > -----Original Message-----
> > > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > > Sent: Thursday, March 22, 2007 10:25 AM
> > > To: jmeter-user@jakarta.apache.org
> > > Subject: Calling a javascript from JMeter?
> > >
> > > Hi!
> > >
> > > Is there any way to call a javascript from JMeter?!
> > >
> > > I have an application that calls a javascript function when you selects a
> > > value in a select list. We have an onchange-event that fires off.
> > >
> > > I also need to call/simulate a click on a link that fires off a call to a
> > > javascript function.
> > >
> > > If you have any experience of this, please come back to me.
> > >
> > > /Daniel.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


SV: Calling a javascript from JMeter?

Posted by Nino Wael <Ni...@sdk.sas.com>.
Argh the html got striped, I've indented instead.

________________________________

Fra: Nino Wael [mailto:Nino.Wael@sdk.sas.com]
Sendt: fr 23-03-2007 10:57
Til: JMeter Users List; JMeter Users List
Emne: SV: Calling a javascript from JMeter?



my comments in red:)

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 10:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

>>Are you talking about the Proxy recording session here, or when you
>>re-run the test?
Sorry, I meant re-run the test
> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

>>Surely you just need to make sure that the person developing the test
>>waits until step 2 has completed?
Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

>>JMeter always completes a sample before moving on to the next in the thread.
>>Check for sample errors.
jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
>>Also try running a single thread and see how that works.
Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org





SV: Calling a javascript from JMeter?

Posted by Nino Wael <Ni...@sdk.sas.com>.
my comments in red:)

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: fr 23-03-2007 10:18
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

Are you talking about the Proxy recording session here, or when you
re-run the test?
Sorry, I meant re-run the test
> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

Surely you just need to make sure that the person developing the test
waits until step 2 has completed?
Yes, but this are done, sometimes it just seems that the AJAX request fails to complete. On the real page there are several ajax requests, but it's always the first one that fails when it fails. I sorta figured that it should be somewhat random which one that fails.
>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

JMeter always completes a sample before moving on to the next in the thread.
Check for sample errors.
jup that was how I discovered the problem, the page complains that you cant goto the next page without selecting a vehicle from the vechicle list
Also try running a single thread and see how that works.
Running a thread group with only a single thread never gives errors, I'll try this more extensively.
> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Calling a javascript from JMeter?

Posted by sebb <se...@gmail.com>.
On 23/03/07, Nino Wael <Ni...@sdk.sas.com> wrote:
> While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request.

Are you talking about the Proxy recording session here, or when you
re-run the test?

> Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
>
> what happens are this(simplyfied example):
>
> 1.user selects cars from the vehicle dropdown
> 2.Ajax request updates the vehicle list
> 3.user selects opel from the vehicle list
>
> So when 2 sometimes does not go thorough, the step 3 cant be done.

Surely you just need to make sure that the person developing the test
waits until step 2 has completed?

>
> Are there any one who has some comments on this?
>
> We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).

JMeter always completes a sample before moving on to the next in the thread.
Check for sample errors.

Also try running a single thread and see how that works.

> regards Nino
>
> ________________________________
>
> Fra: sebb [mailto:sebbaz@gmail.com]
> Sendt: to 22-03-2007 17:14
> Til: JMeter Users List
> Emne: Re: Calling a javascript from JMeter?
>
>
>
> The browser still generates an HTTP request which can be recorded by
> the JMeter proxy.
>
>
> On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> > Hi!
> > Thanks for a fast aswer to my question.
> > My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> > And on our server side we use Spring framework with its controllers...
> > Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> > /Daniel
> >
> > ________________________________
> >
> > Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> > Skickat: to 2007-03-22 16:34
> > Till: 'JMeter Users List'
> > Ämne: RE: Calling a javascript from JMeter?
> >
> >
> >
> > Daniel,
> >
> > JMeter does not have a way to execute Javascript.  But, do your Javascript
> > functions generate some HTTP requests?  If so, the best way is to
> > record/playback those HTTP requests and not worry about the Javascript
> > execution.  Or if the Javascript is changing a value in a form on the page
> > that is going to be used as part of an HTTP request later, just modify the
> > value in the actual HTTP request that is sent...no need to have the
> > Javascript actually execute.
> >
> > From a performance testing perspective, it is OK to not execute the
> > Javascript because it is run on the client side.
> >
> > Regards,
> >
> > Matt C.
> >
> > -----Original Message-----
> > From: Rickardsson Daniel [mailto:darik@wmdata.com]
> > Sent: Thursday, March 22, 2007 10:25 AM
> > To: jmeter-user@jakarta.apache.org
> > Subject: Calling a javascript from JMeter?
> >
> > Hi!
> >
> > Is there any way to call a javascript from JMeter?!
> >
> > I have an application that calls a javascript function when you selects a
> > value in a select list. We have an onchange-event that fires off.
> >
> > I also need to call/simulate a click on a link that fires off a call to a
> > javascript function.
> >
> > If you have any experience of this, please come back to me.
> >
> > /Daniel.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


SV: Calling a javascript from JMeter?

Posted by Nino Wael <Ni...@sdk.sas.com>.
While I do know this, im a little querious. I have also a scenario where some ajax scripts are called (jmeter's http proxy catched the http requests), some times it seems that the ajax http request does not complete it's processing before jmeter continues to the next http request. 
 
Are there anyway to force jmeter to wait for processing to finish(or are this done by default)?
 
what happens are this(simplyfied example):
 
1.user selects cars from the vehicle dropdown
2.Ajax request updates the vehicle list
3.user selects opel from the vehicle list
 
So when 2 sometimes does not go thorough, the step 3 cant be done.
 
 
Are there any one who has some comments on this?
 
We have never expirenced that step 2 would'nt run, out side the JMeter test(but that could be that the system has'nt such hard a load in real life as under the jmeter test).
 
regards Nino

________________________________

Fra: sebb [mailto:sebbaz@gmail.com]
Sendt: to 22-03-2007 17:14
Til: JMeter Users List
Emne: Re: Calling a javascript from JMeter?



The browser still generates an HTTP request which can be recorded by
the JMeter proxy.


On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> Hi!
> Thanks for a fast aswer to my question.
> My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> And on our server side we use Spring framework with its controllers...
> Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> /Daniel
>
> ________________________________
>
> Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> Skickat: to 2007-03-22 16:34
> Till: 'JMeter Users List'
> Ämne: RE: Calling a javascript from JMeter?
>
>
>
> Daniel,
>
> JMeter does not have a way to execute Javascript.  But, do your Javascript
> functions generate some HTTP requests?  If so, the best way is to
> record/playback those HTTP requests and not worry about the Javascript
> execution.  Or if the Javascript is changing a value in a form on the page
> that is going to be used as part of an HTTP request later, just modify the
> value in the actual HTTP request that is sent...no need to have the
> Javascript actually execute.
>
> From a performance testing perspective, it is OK to not execute the
> Javascript because it is run on the client side.
>
> Regards,
>
> Matt C.
>
> -----Original Message-----
> From: Rickardsson Daniel [mailto:darik@wmdata.com]
> Sent: Thursday, March 22, 2007 10:25 AM
> To: jmeter-user@jakarta.apache.org
> Subject: Calling a javascript from JMeter?
>
> Hi!
>
> Is there any way to call a javascript from JMeter?!
>
> I have an application that calls a javascript function when you selects a
> value in a select list. We have an onchange-event that fires off.
>
> I also need to call/simulate a click on a link that fires off a call to a
> javascript function.
>
> If you have any experience of this, please come back to me.
>
> /Daniel.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org





Re: Calling a javascript from JMeter?

Posted by sebb <se...@gmail.com>.
The browser still generates an HTTP request which can be recorded by
the JMeter proxy.


On 22/03/07, Rickardsson Daniel <da...@wmdata.com> wrote:
> Hi!
> Thanks for a fast aswer to my question.
> My problem is actually that out javascripts calls our javacode via DWR (Ajax).
> And on our server side we use Spring framework with its controllers...
> Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
> /Daniel
>
> ________________________________
>
> Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
> Skickat: to 2007-03-22 16:34
> Till: 'JMeter Users List'
> Ämne: RE: Calling a javascript from JMeter?
>
>
>
> Daniel,
>
> JMeter does not have a way to execute Javascript.  But, do your Javascript
> functions generate some HTTP requests?  If so, the best way is to
> record/playback those HTTP requests and not worry about the Javascript
> execution.  Or if the Javascript is changing a value in a form on the page
> that is going to be used as part of an HTTP request later, just modify the
> value in the actual HTTP request that is sent...no need to have the
> Javascript actually execute.
>
> From a performance testing perspective, it is OK to not execute the
> Javascript because it is run on the client side.
>
> Regards,
>
> Matt C.
>
> -----Original Message-----
> From: Rickardsson Daniel [mailto:darik@wmdata.com]
> Sent: Thursday, March 22, 2007 10:25 AM
> To: jmeter-user@jakarta.apache.org
> Subject: Calling a javascript from JMeter?
>
> Hi!
>
> Is there any way to call a javascript from JMeter?!
>
> I have an application that calls a javascript function when you selects a
> value in a select list. We have an onchange-event that fires off.
>
> I also need to call/simulate a click on a link that fires off a call to a
> javascript function.
>
> If you have any experience of this, please come back to me.
>
> /Daniel.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


SV: Calling a javascript from JMeter?

Posted by Rickardsson Daniel <da...@wmdata.com>.
Hi!
Thanks for a fast aswer to my question.
My problem is actually that out javascripts calls our javacode via DWR (Ajax).
And on our server side we use Spring framework with its controllers...
Hmmm... I need to fire a ajax-call. Any way to accomplish that?!
/Daniel
 
________________________________

Från: Matthew Coventon [mailto:mattcoventon@iseinc.biz]
Skickat: to 2007-03-22 16:34
Till: 'JMeter Users List'
Ämne: RE: Calling a javascript from JMeter?



Daniel,

JMeter does not have a way to execute Javascript.  But, do your Javascript
functions generate some HTTP requests?  If so, the best way is to
record/playback those HTTP requests and not worry about the Javascript
execution.  Or if the Javascript is changing a value in a form on the page
that is going to be used as part of an HTTP request later, just modify the
value in the actual HTTP request that is sent...no need to have the
Javascript actually execute.

>From a performance testing perspective, it is OK to not execute the
Javascript because it is run on the client side.

Regards,

Matt C.

-----Original Message-----
From: Rickardsson Daniel [mailto:darik@wmdata.com]
Sent: Thursday, March 22, 2007 10:25 AM
To: jmeter-user@jakarta.apache.org
Subject: Calling a javascript from JMeter?

Hi!

Is there any way to call a javascript from JMeter?!

I have an application that calls a javascript function when you selects a
value in a select list. We have an onchange-event that fires off.

I also need to call/simulate a click on a link that fires off a call to a
javascript function.

If you have any experience of this, please come back to me.

/Daniel.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org





RE: Calling a javascript from JMeter?

Posted by Matthew Coventon <ma...@iseinc.biz>.
Daniel,

JMeter does not have a way to execute Javascript.  But, do your Javascript
functions generate some HTTP requests?  If so, the best way is to
record/playback those HTTP requests and not worry about the Javascript
execution.  Or if the Javascript is changing a value in a form on the page
that is going to be used as part of an HTTP request later, just modify the
value in the actual HTTP request that is sent...no need to have the
Javascript actually execute.

>From a performance testing perspective, it is OK to not execute the
Javascript because it is run on the client side.

Regards,

Matt C.

-----Original Message-----
From: Rickardsson Daniel [mailto:darik@wmdata.com] 
Sent: Thursday, March 22, 2007 10:25 AM
To: jmeter-user@jakarta.apache.org
Subject: Calling a javascript from JMeter?

Hi!
 
Is there any way to call a javascript from JMeter?!
 
I have an application that calls a javascript function when you selects a
value in a select list. We have an onchange-event that fires off.
 
I also need to call/simulate a click on a link that fires off a call to a
javascript function.
 
If you have any experience of this, please come back to me.
 
/Daniel.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org