From: David T. <da...@de...> - 2013-10-18 17:31:37
|
Ahmed, I have been running with a patch in my code that has the same effect as yours. There is never a call to DownloadedContent.OnFile.cleanUp(). Yes, I am calling webClient.closeAllWindows() in finally clause and the call is immediately followed by a logging line. Here is my log entry for one URL. 09:37:22,330 [UXMON-1 thread] INFO - start Run# 745 for sorted URL# 95 [UXMON-1 - http://??.??.62.101/uxmon] 09:37:23,378 [UXMON-1 thread] INFO - UXMON-1 initial page load time: 1010 09:37:23,379 [UXMON-1 thread] INFO - For URL [http://??.??.62.101/uxmon] cookie Manager has these cookies: [JSESSIONID=A40EF7C5A76EB0D670AEFF81EB69DF10;domain=??.??.62.101;path=/uxmon] 09:37:23,379 [UXMON-1 thread] INFO - search response for [rtvdisplay servlet] is true after a simple search. 09:37:23,379 [UXMON-1 thread] INFO - UXMON-1 saw error: false - error count this run: 0 09:37:23,379 [UXMON-1 thread] INFO - DownloadedContent.InMemory of length: 3849 for: http://??.??.62.101/uxmon 09:37:23,379 [UXMON-1 thread] INFO - Closed all webClient windows for: http://??.??.62.101/uxmon 09:37:23,379 [UXMON-1 thread] INFO - UXMON-1 Min, Max, Average, this time: 917 1095 989 1010 09:37:23,379 [UXMON-1 thread] INFO - Response time for URL #95 [UXMON-1] runCount #745 was 1010 ms elapsed, javascript = false, search success = true 09:37:23,379 [UXMON-1 thread] INFO - end Run# 745 for sorted URL# 95 [UXMON-1] 1049 ms elapsed including overhead. Notice that the DownloadedContent is of type InMemory and that "Closed all webClient windows" is logged. David David -- David Taylor, Detayls On Fri, Oct 18, 2013 at 2:32 AM, Ahmed Ashour <asa...@ya...> wrote: > Hi David, > > Also, are you calling .closeAllWindows()? > > Ahmed > ------------------------------ > *From:* Ahmed Ashour <asa...@ya...> > *To:* "htm...@li..." < > htm...@li...> > *Sent:* Friday, October 18, 2013 11:32 AM > > *Subject:* Re: [Htmlunit-user] Fw: Bug 1344: is this fix in 2.12? > > Hi David, > > There are two cleanUp(), one in InMemory and another in OnFile. > > Attached is a patch (against SVN), with which the test case below prints > "Cleaning..." :) > > What is the output of the test case below on your machine, the second > Assertion fails? > > Yours, > Ahmed > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |