Hi Janak,
no, the problem doesn't happen for all our test,
and not always..it seems randomly.
I didn't try to include some sleep() before invoking waitForIdle(),
it could be a solution, but sure not the "last" solution :-)
Is it possible that the waitForIdle() method hangs, when I call this last one
immediately after the JUnit test modifies an ULCProxy ( eg a TextField ) ?
It seems that the waitForIdle method loses some "event/condition"
CLIENT (Junit test) | SERVER
myTextField.settext("hello") ---------> |
UISession.waitForIdle() |-----------> ULC does some
alignment
ULC roundtrip |<----------
<---------- |
It is very difficult to extract a test-case that blocks systematically,
but I will try it...
On Friday 10 November 2006 14:00, Alberto Nipoti wrote:
> We test our framework (that uses ULC as the presentation layer) on a
> machine with "Red Hat Enterprise Linux ES release 4 (Nahant Update 2)".
>
> We implemented JUnit tests (running on the client side of the ULC
> application) that uses Jemmy in order to interact with the GUI (eg. set
> a text in a TextField).
> Every time the JUnit test interacts with the GUI (e.g by selecting an
> item in a combobox) we use the waitForIdle() method to wait the end of
> the ULC-roundtrip; for example:
>
> ...
> JTextComponentOperatortext text = getTextFieldOperator("myText");
> text.typeText("Hello");
> ...
>
> public JTextComponentOperator getTextFieldOperator(name){
> getCurrentSession().waitForIdle();
> ...
> }
>
> Unfortunately, we are encountering a problem with the
> UISession.waitForIdle: this sometimes doesn't return, so the test blocks.
>
> On the ULC bug archive we discovered that this problem should be fixed
> in the 6.1.1 release of ULC: we tried it, but the problem is still
> present for what we can see!
>
> There are some unclear comment in the UBA-6803, like "wrong resolution";
> could someone tell me what is does mean?
>
> (https://www.canoo.com/jira/browse/UBA-6803;jsessionid=AF42AC5D9EC9151C3312
>9225645CEF8D?page=all)
>
> Any ideas/suggestions welcomed!
>
> Thanks,
>
> Alberto (on behalf of Luca)
>
> _______________________________________________
> ULC-developer mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/ulc-developer
--
Würth Phoenix S.r.l.
Luca Nardelli
Product Development Zeus
Via Kravogl 4
I-39100 Bolzano
Direct: +39 0471 564076
E-Mail: mailto:[EMAIL PROTECTED]
Website: http://www.wuerth-phoenix.com
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer