You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sbhosale <sa...@gmail.com> on 2010/12/21 12:29:34 UTC

Problems in handling the AJAX request

Hi all,

I am having problems in handling the ajax request on the page. My
application is having one feature like create case which gets open on the
same page with some fields and once I fills the form and saves it. It gets
saved without refreshing a page. So when i recorded this flow i got the
requests with the parameters. Now when I am rerunning it the cases are not
getting created but the listeners are showing the proper data in the
responce time.

Can anybody help me how to handle such type of requests.

Thank You,

Regards,
Sandeep
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/Problems-in-handling-the-AJAX-request-tp3313363p3313363.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Problems in handling the AJAX request

Posted by Deepak Shetty <sh...@gmail.com>.
please stop resurrecting old threads for the problem you have already raised
on another thread.
As mentioned by felix you need to compare it with the browser (firefox +
live httpheaders or firebug or fiddler2 ).
This allows you to compare whether you are passing the correct number of
parameters.However in your case because the value itself is dynamic , you
cannot directly compare it with the browser since the value wont be the same
anyway(if your problem is that you are not extracting the value completely).


regards
deepak

On Wed, Sep 7, 2011 at 3:44 PM, chanda <kc...@yahoo.com> wrote:

> can someone explain the lines mentioned below ie
> Next step is to very carefully compare the exact request headers that
> Jmeter sends (faulty?) and that your browser sends (correct).
>
> 1. How to compare the headers
> 2. How do we compare that we are passing the correct RegExp ViewState and
> EventValidation variables that are extracted from previous request and
> passing to next requests .
> 3. The request in the treewiew should be compared against which.
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Problems-in-handling-the-AJAX-request-tp3313363p4780399.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Problems in handling the AJAX request

Posted by chanda <kc...@yahoo.com>.
can someone explain the lines mentioned below ie 
Next step is to very carefully compare the exact request headers that
Jmeter sends (faulty?) and that your browser sends (correct).

1. How to compare the headers
2. How do we compare that we are passing the correct RegExp ViewState and
EventValidation variables that are extracted from previous request and
passing to next requests .
3. The request in the treewiew should be compared against which.

 


--
View this message in context: http://jmeter.512774.n5.nabble.com/Problems-in-handling-the-AJAX-request-tp3313363p4780399.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Problems in handling the AJAX request

Posted by Felix Frank <ff...@mpexnet.de>.
On 12/21/2010 02:24 PM, sandeep bhosale wrote:
> Thank You Felix for your kind help. I have done as per your suggesions. I am
> getting the response as Object Moved . Please see below response
> 
> <html><head><title>Object moved</title></head><body>
> <h2>Object moved to <a href="/trunk/">here</a>.</h2>
> </body></html>
> 
> 
> Now what I need to do to fix this. For the verification I have recorded the
> same feature using the Badboy and reran the script and it is giving me the
> expected Result. So i am really stuck here in jmeter.

Good analysis there.

Next step is to very carefully compare the exact request headers that
Jmeter sends (faulty?) and that your browser sends (correct).

Jmeter shows the request in a tab of View Results Tree. Badboy should
show you the browser's request (otherwise, use e.g. Firefox +
LiveHTTPHeaders).

Keep it up,
Felix

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


Re: Problems in handling the AJAX request

Posted by sandeep bhosale <sa...@gmail.com>.
Thank You Felix for your kind help. I have done as per your suggesions. I am
getting the response as Object Moved . Please see below response

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/trunk/">here</a>.</h2>
</body></html>


Now what I need to do to fix this. For the verification I have recorded the
same feature using the Badboy and reran the script and it is giving me the
expected Result. So i am really stuck here in jmeter.

Thanks
Sandeep.



On Tue, Dec 21, 2010 at 6:41 PM, Felix Frank <ff...@mpexnet.de> wrote:

>
>
> On 12/21/2010 02:08 PM, sandeep bhosale wrote:
> > Yes its not getting created in the application(database). But still i am
> > getting the response time that means these requests are getting executed
> but
> > the end result that it is intended to do (create case in my application)
> is
> > not happening.
>
> In the View Results Tree Listener, make sure the AJAX request is done
> with the appropriate parameters and that the server does generate a
> positive return code and valid XML response.
>
> In fact, the XML from the server may tell you more about what's going
> wrong.
>
> HTH,
>  Felix
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Problems in handling the AJAX request

Posted by Felix Frank <ff...@mpexnet.de>.

On 12/21/2010 02:08 PM, sandeep bhosale wrote:
> Yes its not getting created in the application(database). But still i am
> getting the response time that means these requests are getting executed but
> the end result that it is intended to do (create case in my application) is
> not happening.

In the View Results Tree Listener, make sure the AJAX request is done
with the appropriate parameters and that the server does generate a
positive return code and valid XML response.

In fact, the XML from the server may tell you more about what's going wrong.

HTH,
Felix

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


Re: Problems in handling the AJAX request

Posted by sandeep bhosale <sa...@gmail.com>.
Yes its not getting created in the application(database). But still i am
getting the response time that means these requests are getting executed but
the end result that it is intended to do (create case in my application) is
not happening.




On Tue, Dec 21, 2010 at 5:37 PM, Felix Frank <ff...@mpexnet.de> wrote:

>
>
> On 12/21/2010 12:29 PM, sbhosale wrote:
> >
> > Hi all,
> >
> > I am having problems in handling the ajax request on the page. My
> > application is having one feature like create case which gets open on the
> > same page with some fields and once I fills the form and saves it. It
> gets
> > saved without refreshing a page. So when i recorded this flow i got the
> > requests with the parameters. Now when I am rerunning it the cases are
> not
> > getting created but the listeners are showing the proper data in the
> > responce time.
>
> What do you mean by "cases are not getting created"? Can you not see
> them in the application's database or...?
>
> Also, what have the response times to do with anything?
>
> Felix
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Problems in handling the AJAX request

Posted by Felix Frank <ff...@mpexnet.de>.

On 12/21/2010 12:29 PM, sbhosale wrote:
> 
> Hi all,
> 
> I am having problems in handling the ajax request on the page. My
> application is having one feature like create case which gets open on the
> same page with some fields and once I fills the form and saves it. It gets
> saved without refreshing a page. So when i recorded this flow i got the
> requests with the parameters. Now when I am rerunning it the cases are not
> getting created but the listeners are showing the proper data in the
> responce time.

What do you mean by "cases are not getting created"? Can you not see
them in the application's database or...?

Also, what have the response times to do with anything?

Felix

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