From: Dakshinamurthy K. <tec...@gm...> - 2006-03-03 09:09:31
|
You can launch appletviewer using java command as follows: java sun.applet.AppletViewer <url> I guess once your applet is launched you might be able to make use of Marathon. Please post back if this is of success to you. Thanks and Regards KD On 3/2/06, Emilian Bold <emi...@gm...> wrote: > Hy, > > > I was using JFCUnit for scenario testing for an entire application > > (MDI forms based java swing) using xml scripts(recording), but > > I found that the xml script that is generated is very redundant > > and verbose. > > Yes, I've also found those XML files too complicated for normal usage. > > > 1. How to test an Applet which does not have a main class. > > I'm not sure about applets. Never tested any under Marathon (or > programmed applets lately). Maybe you could build a launcher for the > applet (and thus have a main to start) ? > > > 2. Can marathon be used to test web applications (not on the > > local machine) > > Not sure. Define web applications. You mean some HTML screen scrapping > or RMI and such ? > > > 3. Is it mandatory to specify name property of components. > > No, it's not. Marathon will do just fine without those. But setName() > helps a lot since Marathon generates some names (based on container > and such) that could change if you move components arround. If you use > setName(), marathon will find the component no matter of the > container. > > > 4. Is there a programming guide for writing scripts. > > There are some docs on the martathon site and download. > > > 5. Are the properties of the components accessible (e.g. btn.isEnabled(= )) > > I'm kind of rusty with marathon now, but I think you could actually > get the JButton instance. So I guess any method would do. > > > Finally, do you think that I should be continuing with JFCUnit (for > > scenario testing) or should I start using marathon. > > Marathon. > > -- > Emilian Bold > +40 740235562 (orange) > http://web.info.uvt.ro/~fierarul/typo3/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Marathonman-devel mailing list > Mar...@li... > https://lists.sourceforge.net/lists/listinfo/marathonman-devel > -- Dakshinamurthy Karra (http://blog.jaliansystems.com) |