Jonathan, Thanks for your follow up on problem.
Jian On Fri, Sep 17, 2010 at 7:27 AM, Jonathan Share <[email protected]> wrote: > FYI, this was a programming error on my part. My call to getHtmlSource > happens in a catch block, however the line of code in my test that > triggered the error wasn't included in the try block. Tellurium has no > problem accessing the HTML document of a 500 error response. > > On 24 August 2010 12:37, Jonathan Share <[email protected]> wrote: > > The error page is just a regular Apache Tomcat 500 error. I can try > > and reproduce tomorrow if I have time in the morning. > > > > On 23 August 2010 18:03, Jian Fang <[email protected]> wrote: > >> Tellurium delegates the getHtmlSource call to selenium api > >> > >> Selenium.prototype.getHtmlSource = function() { > >> /** Returns the entire HTML source between the opening and > >> * closing "html" tags. > >> * > >> * @return string the entire HTML source > >> */ > >> return > >> this.browserbot.getDocument().getElementsByTagName("html")[0].innerHTML; > >> }; > >> > >> Seems if there is any html tag with inner html, it should return the > >> content. I an not sure > >> what your 500 error page looks like, could you take a look at the page > >> source to > >> see if the page includes a html tag? > >> > >> Thanks, > >> > >> Jian > >> > >> On Mon, Aug 23, 2010 at 8:17 AM, Jonathan Share <[email protected]> > wrote: > >>> > >>> Hi, > >>> > >>> I have some code written that whenever any of my tellurium tests fails > >>> I call getHtmlSource() and write the response to a file for later > >>> analysis. This seems to work fine as long as the server returns an > >>> HTTP error code in the 2XX and 4XX ranges (200, 404, 410) however if > >>> the application under test returns a 500 error my call to > >>> getHtmlSource() returns null. > >>> > >>> Is there a way to retrieve the HTML that was returned for these 500 > >>> errors? Or at least verify that a 500 response was received by the > >>> browser? > >>> > >>> Regards, > >>> > >>> Jonathan > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "tellurium-users" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]<tellurium-users%[email protected]> > . > >>> For more options, visit this group at > >>> http://groups.google.com/group/tellurium-users?hl=en. > >>> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "tellurium-users" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<tellurium-users%[email protected]> > . > >> For more options, visit this group at > >> http://groups.google.com/group/tellurium-users?hl=en. > >> > > > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
