If you are using Swing you could also look at JFCUnit
(http://jfcunit.sourceforge.net/). Its an extension of Junit that
allows you to poke sing events into your widgets at quite a low level.
Cherney John-CJC030 wrote:
>I know I am resurrecting an old thread, but I didn't see any more info about
>Executive Summary: Is there a way to use jython to do automated unit tests?
>Answer: 2 different options, both can be done in either Java or jython. 1)
>Recording AWT events using a listener, and then playing the events back, or
>2) using java.awt.Robot
>So, has anybody tried either of these? How was the experience? Are there
>things I should look out for with either of these? Can anyone point me to
>some examples I could look at? Are there other options not mentioned here? I
>would love to have a way to code up my box test cases and run them
>automatically, and I don't want to reinvent the wheel.
>John <mailto:John.Cherney@...> Cherney | Motorola Inc
>Software Engineer | phone:(248)994-7713
>Network Transport | fax:(248)324-9550
>CGISS | pager: (888)878-1354 <mailto:8781354@...>