[Webunitproj-users] instructions for building WebUnit
Brought to you by:
dgan
From: <Eri...@al...> - 2002-11-01 14:55:35
|
this is an old email -- I'm sending it now so it'll be in the archives. It contains a short 'how-to' for building WebUnit. --Erik -----Original Message----- From: Ostermueller, Erik=20 Sent: Friday, October 25, 2002 2:36 PM To: 'Johnny Lan' Cc: 'dor...@ze...' Subject: RE: FW: Re: buttons > -----Original Message----- > From: Johnny Lan [mailto:jl...@co...] > Sent: Friday, October 25, 2002 2:09 PM > To: Ostermueller, Erik > Cc: dor...@ze... > Subject: RE: FW: Re: buttons >=20 >=20 > I think we should start making use of the sourceforge=20 > mailing list for > communication about WebUnit issues. Absolutely. >=20 > By the way, I am having trouble building a release from=20 > the CVS files. > Could you briefly explain the build process for WebUnit=20 > and/or make a new > release available? Thanks much. Send me your errors and I'll look at it -- I've made a few changes in the last week. Build instructions: 1) If you wish to build webunit you will need to install the Microsoft Java Development Kit that can be downloaded at http://www.microsoft.com/java. If you install it in this directory, you won't have to change build.xml: C:/Program Files/Microsoft SDK for Java 4.0 If you install it elsewhere, update this line in the build.xml: <property name=3D"msjee.jdk.path" value=3D"C:/Program Files/Microsoft = SDK for Java 4.0"/> 2) Sun Java Development Kit version 1.3 or higher. 3) InternetExplorer 6.5 was used for the development and testing of web unit but older browsers (5+) work, too. 4) You'll need Ant; I use version 1.5. 5) be sure that ant.bat is in your path. 6) go to the directory with build.xml in it. Type ant. 7) To run the unit tests, type 'ant unittest'. There is a trick to the unittests. Check my notes on this on the 'patches' page on sf (patch 613945). >=20 > j >=20 > On Tue, 22 Oct 2002 Eri...@al... wrote: >=20 > > done. > > > > What maillist/forum do you think we should start using? > > > > > -----Original Message----- > > > From: Doron [mailto:dor...@ze...] > > > Sent: Tuesday, October 22, 2002 9:05 AM > > > To: Ostermueller, Erik > > > Subject: Re: FW: Re: buttons > > > > > > > > > Hi Erik, > > > > > > > > > Oh my, this project is growing, we need to > > > communicate now, wow! ;-) > > > > > > Totally, I wasn't even thinking. I suggest you > > > use the fix below since > > > its generic/simple and will solve other=20 > issues that may > > > come up in the > > > future which we have not thought about yet. > > > > > > -Doron > > > > > > > > > > > > On Tue, 2002-10-22 at 09:55,=20 > Eri...@al... wrote: > > > > Doron, > > > > > > > > Whoops. I put a DIFFERNT fix in for this yesterday. > > > > I like your's better. But, let's communicate better > > > > on these issues. How about let's move these > > > > discussions to the 'Support' forum, or > > > > perhaps we have a maillist? > > > > > > > > I'll back out my changes and add yours -- > > > > I'll wait to hear back from you, though, > > > > before I do it. > > > > > > > > -----Original Message----- > > > > From: Johnny Lan [mailto:jl...@co...] > > > > Sent: Monday, October 21, 2002 4:59 PM > > > > To: Ostermueller, Erik > > > > Subject: Fwd: Re: buttons > > > > > > > > > > > > Doron has suggested this fix. I'm not all too > > > familiar with the CVS > > > > system > > > > so if you could please make sure this fix is in the > > > cvs baseline it'd be > > > > > > > > greatly appreciated. Thanks! > > > > > > > > j > > > > > > > > >Subject: Re: buttons > > > > >From: Doron <dg...@sh...> > > > > >To: Johnny Lan <jl...@co...> > > > > >X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) > > > > >Date: 18 Oct 2002 21:53:12 -0400 > > > > > > > > > >Hi, > > > > > > > > > > You can call click on any tag and it will > > > do the right thing. > > > > > > > > > > So something like > > > > > > > > > > WebTag = button=3DloginForm.findFirst("name", > > > > >"loginButton",WebTag.FIND_EQUALS , > > > > > WebTag.class); > > > > > button.click(); > > > > > > > > > >///You will need to modify the webunit code. If you > > > don't want to do > > > > it, > > > > >I can do it on Monday. > > > > > > > > > >In DefaultWebTag add: > > > > > > > > > >/** Activate the link. > > > > > * > > > > > */ > > > > > public void click() > > > > > { > > > > > try > > > > > { > > > > > getRuntimeHandler().click(this); > > > > > } > > > > > catch (RemoteException e) > > > > > { > > > > > throw new RuntimeException("Error:" > > > +Util.toString(e)); > > > > > } > > > > > } > > > > > > > > > > public void doubleClick() > > > > > { > > > > > try > > > > > { > > > > > getRuntimeHandler().doubleClick(this); > > > > > } > > > > > catch (RemoteException e) > > > > > { > > > > > throw new RuntimeException("Error:" > > > +Util.toString(e)); > > > > > } > > > > > } > > > > > > > > > >In WebTag add: > > > > > > > > > >public void click(); > > > > >public void doubleClick(); > > > > > > > > > > > > > > > > > > > > > > > > > -Doron > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >=20 > Johnny Lan > Columbia University > 4042 Lerner Hall > New York, NY 10027 > 212.853.6627 >=20 >=20 |