You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Eugene Dzhurinsky <jd...@gmail.com> on 2013/10/26 00:12:42 UTC

Record page response in JMeter

I need to create scenario for user interaction with single-page WEB
application. The application does lots of AJAX calls in order to authenticate
user and get user data.

So I created simple scenario with HTTP Test Script Recorder and tried to
record my script.

Everything went well, however I noticed that whilst request data is recorder
properly, the response data is not recorder at all. I tried to enable Add
assertions and Regex matching - but that didn't work as well.

Can you please advice how do I record response texts as well?

-- 
Eugene N Dzhurinsky

Re: Record page response in JMeter

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
Hello,
View Results Tree under proxy will record request, responses during
recording.

This is useful to understand where a dynamic field comes from. This will
help your find from which response X you need to extract data to inject in
request X+N.

I think you may find this option useful to add in user.properties:

- proxy.number.requests=true

This will give a number to each request and corresponding sampler so you
will be able to find response for the request.

Once you have done this, you will start adding Post Processors (Regex,
CSS/JQuery, XPAth ...) to Sampler X to extract data from its response.
This will create variables you can then use as ${varName} in request X+N.

Hope this is more clear to you.


Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>



On Sat, Oct 26, 2013 at 1:26 AM, Eugene Dzhurinsky <jd...@gmail.com>wrote:

> On Sat, Oct 26, 2013 at 12:20:26AM +0200, UBIK LOAD PACK Support wrote:
> > Hello,
> >
> > You can add a View Results Tree as a child of HTTP Test Script Recorder.
> >
> > Note that If you are using 2.10, you have a template for recording that
> > will ease your configuration:
> > - select File > Template > Recording
>
> Okay, that's good for start, my esenario is like:
>
> - record session for user with our application
> - add some post-processing of results, like extract some data from JSON
> response
> - replace some headers in all subsequent requests with captured values from
> previous responses
>
> So after I created new project from "Recording" template, I was able to
> record
> some scenario, but the thing is that responses are stored under
> WorkBench -> HTTP Proxy Server -> View Results Tree
>
> And it's not clear how can I actually do pattern-match on those responses
> and
> extract some variables, because it's hard to guess what is the appropriate
> request for every response.
>
> --
> Eugene N Dzhurinsky
>



-- 

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>

Re: Record page response in JMeter

Posted by Eugene Dzhurinsky <jd...@gmail.com>.
On Sat, Oct 26, 2013 at 12:20:26AM +0200, UBIK LOAD PACK Support wrote:
> Hello,
> 
> You can add a View Results Tree as a child of HTTP Test Script Recorder.
> 
> Note that If you are using 2.10, you have a template for recording that
> will ease your configuration:
> - select File > Template > Recording

Okay, that's good for start, my esenario is like:

- record session for user with our application
- add some post-processing of results, like extract some data from JSON
response
- replace some headers in all subsequent requests with captured values from
previous responses

So after I created new project from "Recording" template, I was able to record
some scenario, but the thing is that responses are stored under 
WorkBench -> HTTP Proxy Server -> View Results Tree

And it's not clear how can I actually do pattern-match on those responses and
extract some variables, because it's hard to guess what is the appropriate
request for every response.

-- 
Eugene N Dzhurinsky

Re: Record page response in JMeter

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
Hello,

You can add a View Results Tree as a child of HTTP Test Script Recorder.

Note that If you are using 2.10, you have a template for recording that
will ease your configuration:
- select File > Template > Recording

Regards

-- 

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>

On Sat, Oct 26, 2013 at 12:12 AM, Eugene Dzhurinsky <jd...@gmail.com>wrote:

> I need to create scenario for user interaction with single-page WEB
> application. The application does lots of AJAX calls in order to
> authenticate
> user and get user data.
>
> So I created simple scenario with HTTP Test Script Recorder and tried to
> record my script.
>
> Everything went well, however I noticed that whilst request data is
> recorder
> properly, the response data is not recorder at all. I tried to enable Add
> assertions and Regex matching - but that didn't work as well.
>
> Can you please advice how do I record response texts as well?
>
> --
> Eugene N Dzhurinsky
>


<http://twitter.com/ubikloadpack>