--- In uispec4j@yahoogroups.com, "Regis Medina" <regis.medina@d...> wrote:
> Hi Nascif,
>
> Thanks for taking the time to tell us about these issues.
>
>
> > I started playing with UISpec4J - tired of the problems with
Abbot, and
> > curious about the different approach.
>
> What problems did you have with Abbot ? I never used it myself, but I
> thought it was the best tool around.
I have way too many problems with having reliable "reproducable" unit
tests. I run my tests through many different paths - directly from
JUnit, from Emacs calling Ant calling JUnit, from Maven calling JUnit.
And I had tests that would work through one path but not work through
the other. I had to spend a lot of time tweaking properties and delays
to get it to work in maven at all, but I still have problems on occasion.
Don't get me wrong, it is a great tool, and I am glad it is available.
But all that effort made me want to look around for alternatives.
> My first experience has not been very succesful. I converted a Junit
> > testcase from Abbot to UISpec4J, and the mapping from one API to the
> > other was quite simple. But when I run the testcase I get the
following
> > error: [...]
>
> Could you please send me your test files, or any information that
could
> help me investigate the problem ?
> What JDK version are you using ?
I am working on JDK 1.4.1, on Windows XP. The setup is too large to
send, but I will try to isolate it further.
> I cannot see how UISpec4j could influence the behaviour of JUnit.
Maybe an
> exception thrown in the test constructor ? Or during the
initialization of
> the UISpecToolkit ?
It is still a mystery to me. I found some problems in my code and
fixed them - I am now able to call the tests manually and they work fine:
public static void main(String[] args) {
UiTest test = new UiTest("test");
test.setUp();
test.testEmpty();
test.testSingleSelection();
}
But somehow when I try to run using the JUnit TestRunner, I get that
strange error message:
Time: 0
There were 2 failures:
1)
null(com.sas.analytics.irp.client.swing.UiTest)junit.framework.AssertionFailedEr\
ror
2)
null(com.sas.analytics.irp.client.swing.UiTest)junit.framework.AssertionFailedEr\
ror
It is like it failed while running the Reflection step to discover the
testcase methods ! I have no idea of what it could be at this point,
tomorrow I will try to run the whole setup under a debugger.
>
> For the UISpec test cases, our timeouts are maybe too tight. We'll
have to
> work on that obviously.
>
>
> > PS: Regis, your name sounds Brazillian to me. Are you from Brazil
by any
> > chance?
>
> No, I am French (I live near Paris). My name is indeed spanish or
arabian,
> depending on how far you look back in the family history.
Cool, same with me. Grandfather was from Lebanon hence the name.
Regards,
Nascif