Re: Handling Downloads
Russell Gold <[email protected]> Thu, 8 May 2008 23:36:15 -0400
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
On May 8, 2008, at 11:13 PM, Theyagarajan S wrote: > > > Sure. Take a look at test/com/meterware/httpunit/ > MessageBodyRequestTest.java, in particular, the "download" method. > Great and thanks :) ,my question was how do i identify the new > "Save" window . ? will getCurrentPage have the new "Save" file . getCurrentPage.getInputStream is the stream from which you need to read. > > > How can i call testdownloadrequest () ? so that the new file can be > save to my disk You just imitate the loop in the download method, only writing to a file rather than storing it in a byte array. You don't call this test method. > >> >> >>> >>> >>> -- >>> \\\\\-///// >>> / \ >>> | \\ // | >>> (| (.) (.) |) >>> ------------------o00o--(_)--o00o------------------ >>> S Theyagarajan >>> http://theyagar.com >>> S.Theyagarajan >>> Under Graduate >>> Department Of Computer Science And Engineering >>> National Institute Of Technology , Trichirapalli >>> India 620015 >>> --------------ooo0---------------------------------- >>> ( ) 0ooo >>> \ ( ( ) >>> \_) ) / >>> (_ / >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save >>> $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ >>> Httpunit-develop mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/httpunit-develop >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Httpunit-develop mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/httpunit-develop >> >> >> >> >> -- >> \\\\\-///// >> / \ >> | \\ // | >> (| (.) (.) |) >> ------------------o00o--(_)--o00o------------------ >> S Theyagarajan >> http://theyagar.com >> S.Theyagarajan >> Under Graduate >> Department Of Computer Science And Engineering >> National Institute Of Technology , Trichirapalli >> India 620015 >> --------------ooo0---------------------------------- >> ( ) 0ooo >> \ ( ( ) >> \_) ) / >> (_ / >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ >> Httpunit-develop mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/httpunit-develop > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop > > > > > -- > \\\\\-///// > / \ > | \\ // | > (| (.) (.) |) > ------------------o00o--(_)--o00o------------------ > S Theyagarajan > http://theyagar.com > S.Theyagarajan > Under Graduate > Department Of Computer Science And Engineering > National Institute Of Technology , Trichirapalli > India 620015 > --------------ooo0---------------------------------- > ( ) 0ooo > \ ( ( ) > \_) ) / > (_ / > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop