Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

[abbot-users] Testing JInternalFrames

From:Larry Mello [mellolarry@masked-domain]
Sent on:Tue, 24 Jun 2008 09:11:59 -0700 (PDT)


--0-1522245893-1214323919=:14717
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello to all.=A0 I think Abbot is a great product.=A0 We are using Abbot 1.=
0.0 RC 2.
=A0
I have used Abbot successfully to perform unit=A0test against our Java GUI =
client.=A0 I don't know if it makes any difference, but we don't use Costel=
lo - we write tests by hand.
=A0
Our original roll-out consisted of a JFrame and several modal dialogs and I=
wrote tests for them just fine.=A0 However, we have recently enhanced our =
original JFrame: it now has a "default" JInternalFrame (containing a JTree)=
which users use to open other internal frames.=A0 I have enhanced the orig=
inal JFrame tests to deal with the initial "default" frame.
=A0
I would like to write another suite of tests for=A0an internal=A0frame that=
a user can open using the JTree on the "default" internal frame.=A0 I woul=
d like to set up this internal frame as a fixture.=A0 I can't do a "showWin=
dow" on it as a JInternalFrame is not a valid argument.=A0 Using "showFrame=
" on it doesn't work properly either.=A0 I can probably (though I haven't t=
ried it yet) set up the JFrame and the JInternalFrame=A0that I want to=A0te=
st as one big fixture, although I'd rather not create (and destroy)=A0the m=
ain GUI (the JFrame) for every test.=A0 What I want to do is create the mai=
n GUI once then treat the JInternalFrame as a fixture.=A0 Is this "allowed"=
or should the main GUI be part of the fixture's set up and tear down?
=A0
Thanks,
=A0
Larry=0A=0A=0A
--0-1522245893-1214323919=:14717
Content-Type: text/html; charset=us-ascii

<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><P>Hello to all.&nbsp; I think Abbot is a great product.&nbsp; We are using Abbot 1.0.0 RC 2.</P>
<P>&nbsp;</P>
<P>I have used Abbot successfully to perform unit&nbsp;test against our Java GUI client.&nbsp; I don't know if it makes any difference, but we don't use Costello - we write tests by hand.</P>
<P>&nbsp;</P>
<P>Our original roll-out consisted of a JFrame and several modal dialogs and I wrote tests for them just fine.&nbsp; However, we have recently enhanced our original JFrame: it now has a "default" JInternalFrame (containing a JTree) which users use to open other internal frames.&nbsp; I have enhanced the original JFrame tests to deal with the initial "default" frame.</P>
<P>&nbsp;</P>
<P>I would like to write another suite of tests for&nbsp;an internal&nbsp;frame that a user can open using the JTree on the "default" internal frame.&nbsp; I would like to set up this internal frame as a fixture.&nbsp; I can't do a "showWindow" on it as a JInternalFrame is not a valid argument.&nbsp; Using "showFrame" on it doesn't work properly either.&nbsp; I can probably (though I haven't tried it yet) set up the JFrame and the JInternalFrame&nbsp;that I want to&nbsp;test as one big fixture, although I'd rather not create (and destroy)&nbsp;the main GUI (the JFrame) for every test.&nbsp; What I want to do is create the main GUI once then treat the JInternalFrame as a fixture.&nbsp; Is this "allowed" or should the main GUI be part of the fixture's set up and tear down?</P>
<P>&nbsp;</P>
<P>Thanks,</P>
<P>&nbsp;</P>
<P>Larry</P></td></tr></table><br>


--0-1522245893-1214323919=:14717--


--
Found what you were looking for? If not - continue at Wiki Index

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources