Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » HTTP Response Content from HTTP Recorder
HTTP Response Content from HTTP Recorder [message #70557] Thu, 11 May 2006 16:19 Go to next message
Ryan Graciano is currently offline Ryan GracianoFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I am using Hyades' HTTP Recorder to load a single URL. My goal is to verify
that the content of the response - the actual HTML page - is what it should
be. I'd like to write my own custom code to do this, so I tried to open up
the class that was generated by Hyades for the HTTP recording. In this
class (HyadesLogonTest.java), there exists an executeRequest(HttpRequest)
method that has the following line:

HttpResponse response = m_httpExecutor[nUser].execute(request);

It seems to me that I should be able to use response.getBody() to access the
content of my response, but this method always returns null. I would really
appreciate some advice here - is there a way for me to populate getBody()
when Hyades retrieves the response? Alternatively, is there another method
exposed somewhere that will give me access to the content of the HTTP
response?

Thanks,
- Ryan
Re: HTTP Response Content from HTTP Recorder [message #70631 is a reply to message #70557] Fri, 12 May 2006 14:09 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Ryan,
This is a defect with the HttpResponse class. Please open a defect.
You can open a defect here:

http://www.eclipse.org/tptp/ >> Submit Enhancements & Bugs >> Report a new
bug. >> TPTP

Paul
"Ryan Graciano" <graciano@us.ibm.com> wrote in message
news:e3vo7j$ulp$1@utils.eclipse.org...
> Hello,
>
> I am using Hyades' HTTP Recorder to load a single URL. My goal is to
verify
> that the content of the response - the actual HTML page - is what it
should
> be. I'd like to write my own custom code to do this, so I tried to open
up
> the class that was generated by Hyades for the HTTP recording. In this
> class (HyadesLogonTest.java), there exists an executeRequest(HttpRequest)
> method that has the following line:
>
> HttpResponse response = m_httpExecutor[nUser].execute(request);
>
> It seems to me that I should be able to use response.getBody() to access
the
> content of my response, but this method always returns null. I would
really
> appreciate some advice here - is there a way for me to populate getBody()
> when Hyades retrieves the response? Alternatively, is there another
method
> exposed somewhere that will give me access to the content of the HTTP
> response?
>
> Thanks,
> - Ryan
>
>
>
Re: HTTP Response Content from HTTP Recorder [message #70761 is a reply to message #70631] Fri, 12 May 2006 18:40 Go to previous message
Ryan Graciano is currently offline Ryan GracianoFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks Paul. I opened the following defect -

https://bugs.eclipse.org/bugs/show_bug.cgi?id=141599

Regards,
- Ryan

"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:e424ul$jfe$1@utils.eclipse.org...
> Hi Ryan,
> This is a defect with the HttpResponse class. Please open a defect.
> You can open a defect here:
>
> http://www.eclipse.org/tptp/ >> Submit Enhancements & Bugs >> Report a new
> bug. >> TPTP
>
> Paul
> "Ryan Graciano" <graciano@us.ibm.com> wrote in message
> news:e3vo7j$ulp$1@utils.eclipse.org...
> > Hello,
> >
> > I am using Hyades' HTTP Recorder to load a single URL. My goal is to
> verify
> > that the content of the response - the actual HTML page - is what it
> should
> > be. I'd like to write my own custom code to do this, so I tried to open
> up
> > the class that was generated by Hyades for the HTTP recording. In this
> > class (HyadesLogonTest.java), there exists an
executeRequest(HttpRequest)
> > method that has the following line:
> >
> > HttpResponse response = m_httpExecutor[nUser].execute(request);
> >
> > It seems to me that I should be able to use response.getBody() to access
> the
> > content of my response, but this method always returns null. I would
> really
> > appreciate some advice here - is there a way for me to populate
getBody()
> > when Hyades retrieves the response? Alternatively, is there another
> method
> > exposed somewhere that will give me access to the content of the HTTP
> > response?
> >
> > Thanks,
> > - Ryan
> >
> >
> >
>
>
Previous Topic:How to do a "controlled profiling" of a application on a server
Next Topic:TPTP Profiling of WTP Generic Servers
Goto Forum:
  


Current Time: Sat Nov 09 05:25:08 GMT 2024

Powered by FUDForum. Page generated in 0.02991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top