> Have you looked at the documentation, particularly the component
reference?

1. Yes Sebb, I have seen "save response to file" and tried it. The thing is,
we can not use it to store the response while we are manually playing
through proxy and recording. Proxy should be able to capture response also
at the same time instead of having to replay it again to create the samples.
If we create samples in next step while replaying we need to go to each
response again to manually verify that sample to be sure that samples are
good, nothing went wrong this time. I think second step is unnecessary.

2. The other question is, can jmeter compare responses from test run against
a set of reference responses stored on disk and give a report saying which
requests produced different results.


On Fri, Mar 25, 2011 at 5:36 PM, sebb <[email protected]> wrote:

> On 25 March 2011 07:32, Vikas Malik <[email protected]> wrote:
> > Hi David,
> >
> > Thanks for the response,
> >
> >>(1) Capture them all in a Results Tree sampler. I think I would do this
> > twice for one and two as you list below, then compare the output files
> >
> > I have many requests(test cases) in my automated test suite. At the end
> of
> > test-run, I want to get a list of failed test cases/requests.
> > In this case, I guess it would be needed to do some extra work "parse and
> > compare" the two xmls etc.
> >
> > This requirement is a very general use case. Does jmeter provide a
> simpler
> > way to go about it?
>
> Have you looked at the documentation, particularly the component reference?
>
> There is a Listener (Save Results) that can do just this.
>
> > For load testing also, I think it would be useful because to verify that
> > under a heavy load also your website sends expected response is
> important.
> >
> > Please let me know if I am trying to do something differently or missing
> > something.
> >
> > Thanks.
> >
> >
> > On Fri, Mar 25, 2011 at 11:50 AM, David Patrick <[email protected]>
> wrote:
> >
> >> Hi Vikas,
> >>
> >> To record the responses, I think you have two options:
> >> (1) Capture them all in a Results Tree sampler. I think I would do this
> >> twice for one and two as you list below, then compare the output files
> >>
> >> or
> >>
> >> (2) Use Badboy (badboy.com.au) to record the transactions in record
> phase.
> >> Then, after exporting this to a JMX file, you will be able to run it and
> >> compare the results you get.
> >>
> >> If you are looking to do both your steps in each iteration, then I think
> >> that extending my option (1) above is the way to go - possibly using
> REGEX
> >> samples, variables and assertions to capture the response, re-request it
> and
> >> check again.
> >>
> >> I hope I have been of help.
> >>
> >> --
> >> David Patrick
> >> [email protected]
> >>
> >> On 25 Mar 2011, at 06:11, Vikas Malik wrote:
> >>
> >> > Hello,
> >> >
> >> > I am using jmeter for functional testing the website. I am trying to
> >> store
> >> > the responses while recording the HTTP request traffic using HTTP
> proxy
> >> > server, but there does not seem to be any option in jmeter to store
> >> > responses.
> >> >
> >> > Basically I am trying to do the following. Please let me know if it is
> >> > possible to do so using jmeter, if yes, any pointers how to go about
> it
> >> will
> >> > be very useful.
> >> >
> >> > 1. Store the http traffic(both request and response) using HTTP proxy.
> >> Store
> >> > the responses as samples.
> >> > 2. Re-run the recorded HTTP requests in testing phase and compare the
> >> > responses we get now against the samples stored in step 1. Any
> mismatch
> >> > should fail the test.
> >> >
> >> > Thanks.
> >> > Vikas Malik
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to