Hi, I don't know precisely how Bugzilla persists your login. It could be by using a cookie, url rewriting, hidden form field storing session ID, ...
BTW, your solution can't works. JWebUnit (and behind HtmlUnit) emulates a browser, that manage internally cookies and all other stuff a real browser will do. A simple test to convince you: try to open Bugzilla in Firefox, then login. Now, open another browser (Opera, Konqueror, ...) [NO! IE could not be considered as a browser ;)] and try to open Bugzilla. You will have to login again. And if you logout in Firefox, you will still be connected in the other browser. Hope I was clear enough. ++ Julien --- Wang Ryan <[EMAIL PROTECTED]> a écrit : > Hi Everyone, > > I am new to jwebunit. > > I want to use JWebUnit to operate bugzila in java > program, however I > cannot supply the user ID and password of bugzilla > to my jwebunit test > cases. In bugzilla, if we sign-in and don't sign out > then we don't need > to sign-in again if we try to access bugzilla in > some other browser > window. I have to use this feature of bugzilla where > someone will > sign-in in advance for me in the browser, and I will > call a servlet/jsp > page which will in-turn call my jwebunit test case > to operate bugzilla > without specifying the userid/password. > > Here the problem is that, as I am not specifying the > credentials to > login in bugzilla in jwebunit program, my jwebunit > program is failing, > although it is running through the JSP page. > > Could you please let me know if it possible or not? > If yes, then how? > > Any useful information will be appreciated. > > Thanks a lot in advance > > Xiao > > _________________________________________________________________ > News, entertainment and everything you care about at > Live.com. Get it now! > http://www.live.com/getstarted.aspx> ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/> _______________________________________________ > JWebUnit-users mailing list > JWebUnit-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users