[Mono-list] GUI unit-tests

Philippe Lavoie philippe.lavoie@cactus.ca
Thu, 15 Aug 2002 09:55:24 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C24463.66FD94A5
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20

I have yet to find a way to creat nice to use GUI unit tests. The
closest I came to it is with HttpUnit for Junit. That module, parses the
html page in such a way that you can then programmatically (in Java)
access the objects defined in it, make sure they have their proper
default values, etc.=20

=20

Would the use of GTK# help one build unit tests for the GUI interface?
I'm not sure how easy/hard it is to access the gui components of GTK#
from a library, heck I'm not even sure you can render GTK# to a virtual
window (i.e. don't display it).=20

=20

I was thinking something that would enable me to start the GUI
application, make sure some controls are there, enable me to input
values into them and make sure that a new window is opened or that some
controls have now a new value.

=20

Anyway, this might be too cumbersome to be useful. Still, I'd like to
have a fully automated build process that reports on the execution of
the unit tests even if my project is GUI based or HTTP based.=20

=20

Phil


------_=_NextPart_001_01C24463.66FD94A5
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:PMingLiU;
	panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
	{font-family:"\@PMingLiU";
	panose-1:2 2 3 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have yet to find a way to creat nice to use GUI =
unit
tests. The closest I came to it is with HttpUnit for Junit. That module, =
parses
the html page in such a way that you can then programmatically (in Java) =
access
the objects defined in it, make sure they have their proper default =
values,
etc. </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Would the use of GTK# help one build unit tests for =
the GUI
interface? I&#8217;m not sure how easy/hard it is to access the gui =
components
of GTK# from a library, heck I&#8217;m not even sure you can render GTK# =
to a
virtual window (i.e. don&#8217;t display it). </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I was thinking something that would enable me to =
start the
GUI application, make sure some controls are there, enable me to input =
values
into them and make sure that a new window is opened or that some =
controls have
now a new value.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Anyway, this might be too cumbersome to be useful. =
Still, I&#8217;d
like to have a fully automated build process that reports on the =
execution of
the unit tests even if my project is GUI based or HTTP based. =
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Phil</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C24463.66FD94A5--