You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Renjith R Nair <re...@rapidvaluesolutions.com> on 2016/04/12 08:17:30 UTC

How to save the intercepted request & response from HTTP Test Script Recorder [Non GUI].

Hi,

Good Morning !

Our intention is to capture all the HTTP traffic in background (via JMeter)
while we are performing functional automation (via Selenium/Appium) , so
that we can filter the response for Web Service and facilitate further
specific testings. We want to develop a method once called, will run in
background, capture traffic and once notified, stops capturing and save the
results.

Via code, we are able to setup proxy and the proxy is able to intercept all
messages, which is then displayed in eclipse console. But we are not able
to save the intercepted data for reference. We tried monitoring the
recording controller, Result collector objects but unfortunately unable to
view the captured traffic.

Source code attached for reference. Kindly advice.

Thanks & Regards,

*Renjith R Nair*,* Senior Test Engineer*
*​​*

*RapidValue <http://www.rapidvaluesolutions.com/>* | Blog
<http://www.rapidvaluesolutions.com/blog/> | Video
<http://www.slideshare.net/Rapidvaluesolutions/rapidvalue-corporate-video>

Mobile: +91-81-3808-9595

3C, 3rd floor, Phase 2, Carnival Infopark, Kakkanad, Kochi, 682030

-- 
*The information contained in this message is intended for the addressee 
only and may contain classified information. If you are not the addressee, 
please delete this message and notify the sender; you should not copy or 
distribute this message or disclose its contents to anyone. Any views or 
opinions expressed in this message are those of the individual(s) and not 
necessarily of the organization. No reliance may be placed on this message 
without written confirmation from an authorized representative of its 
contents. No guarantee is implied that this message or any attachment is 
virus free or has not been intercepted and amended.*

Re: How to save the intercepted request & response from HTTP Test Script Recorder [Non GUI].

Posted by Renjith R Nair <re...@rapidvaluesolutions.com>.
Code as requested..

Thanks & Regards,

*Renjith R Nair*,* Senior Test Engineer*

*RapidValue <http://www.rapidvaluesolutions.com/>* | Blog
<http://www.rapidvaluesolutions.com/blog/> | Video
<http://www.slideshare.net/Rapidvaluesolutions/rapidvalue-corporate-video>

Mobile: +91-81-3808-9595

3C, 3rd floor, Phase 2, Carnival Infopark, Kakkanad, Kochi, 682030



On Wed, Apr 13, 2016 at 11:55 AM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:

> Hello,
> Attached code is not present.
> You need to provide it differently.
>
> Thanks
>
> On Tuesday, April 12, 2016, Renjith R Nair <
> renjith.r@rapidvaluesolutions.com> wrote:
>
> > Hi,
> >
> > Good Morning !
> >
> > Our intention is to capture all the HTTP traffic in background (via
> > JMeter) while we are performing functional automation (via
> Selenium/Appium)
> > , so that we can filter the response for Web Service and facilitate
> further
> > specific testings. We want to develop a method once called, will run in
> > background, capture traffic and once notified, stops capturing and save
> the
> > results.
> >
> > Via code, we are able to setup proxy and the proxy is able to intercept
> > all messages, which is then displayed in eclipse console. But we are not
> > able to save the intercepted data for reference. We tried monitoring the
> > recording controller, Result collector objects but unfortunately unable
> to
> > view the captured traffic.
> >
> > Source code attached for reference. Kindly advice.
> >
> > Thanks & Regards,
> >
> > *Renjith R Nair*,* Senior Test Engineer*
> > *​​*
> >
> > *RapidValue <http://www.rapidvaluesolutions.com/>* | Blog
> > <http://www.rapidvaluesolutions.com/blog/> | Video
> > <
> http://www.slideshare.net/Rapidvaluesolutions/rapidvalue-corporate-video>
> >
> > Mobile: +91-81-3808-9595
> >
> > 3C, 3rd floor, Phase 2, Carnival Infopark, Kakkanad, Kochi, 682030
> >
> >
> >
> > *The information contained in this message is intended for the addressee
> > only and may contain classified information. If you are not the
> addressee,
> > please delete this message and notify the sender; you should not copy or
> > distribute this message or disclose its contents to anyone. Any views or
> > opinions expressed in this message are those of the individual(s) and not
> > necessarily of the organization. No reliance may be placed on this
> message
> > without written confirmation from an authorized representative of its
> > contents. No guarantee is implied that this message or any attachment is
> > virus free or has not been intercepted and amended.*
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>

-- 
*The information contained in this message is intended for the addressee 
only and may contain classified information. If you are not the addressee, 
please delete this message and notify the sender; you should not copy or 
distribute this message or disclose its contents to anyone. Any views or 
opinions expressed in this message are those of the individual(s) and not 
necessarily of the organization. No reliance may be placed on this message 
without written confirmation from an authorized representative of its 
contents. No guarantee is implied that this message or any attachment is 
virus free or has not been intercepted and amended.*

Re: How to save the intercepted request & response from HTTP Test Script Recorder [Non GUI].

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Attached code is not present.
You need to provide it differently.

Thanks

On Tuesday, April 12, 2016, Renjith R Nair <
renjith.r@rapidvaluesolutions.com> wrote:

> Hi,
>
> Good Morning !
>
> Our intention is to capture all the HTTP traffic in background (via
> JMeter) while we are performing functional automation (via Selenium/Appium)
> , so that we can filter the response for Web Service and facilitate further
> specific testings. We want to develop a method once called, will run in
> background, capture traffic and once notified, stops capturing and save the
> results.
>
> Via code, we are able to setup proxy and the proxy is able to intercept
> all messages, which is then displayed in eclipse console. But we are not
> able to save the intercepted data for reference. We tried monitoring the
> recording controller, Result collector objects but unfortunately unable to
> view the captured traffic.
>
> Source code attached for reference. Kindly advice.
>
> Thanks & Regards,
>
> *Renjith R Nair*,* Senior Test Engineer*
> *​​*
>
> *RapidValue <http://www.rapidvaluesolutions.com/>* | Blog
> <http://www.rapidvaluesolutions.com/blog/> | Video
> <http://www.slideshare.net/Rapidvaluesolutions/rapidvalue-corporate-video>
>
> Mobile: +91-81-3808-9595
>
> 3C, 3rd floor, Phase 2, Carnival Infopark, Kakkanad, Kochi, 682030
>
>
>
> *The information contained in this message is intended for the addressee
> only and may contain classified information. If you are not the addressee,
> please delete this message and notify the sender; you should not copy or
> distribute this message or disclose its contents to anyone. Any views or
> opinions expressed in this message are those of the individual(s) and not
> necessarily of the organization. No reliance may be placed on this message
> without written confirmation from an authorized representative of its
> contents. No guarantee is implied that this message or any attachment is
> virus free or has not been intercepted and amended.*



-- 
Cordialement.
Philippe Mouawad.