|RCP Validation Error Window not found [message #954927]
||Tue, 23 October 2012 07:10
| Juliane Gambke
Registered: July 2012
I'm having some weird trouble with an rcp error window. On changing a combo box value a business validation rule kicks in opening an error window displaying a message. This window can be closed by clicking the "ok"-button.
I've implemented a test case containing these steps:
1. change the combo box value
2. wait for the error window
3. click the error windows ok-button
4. wait for the window to close
5. change the combo box value back to a correct value
However during test execution the test case gets stuck in step 1. The combo box value is changed and the application is already displaying the error window while Jubula is stuck on step 1, claiming it is currently testing step 1 (changing combo box value). The test execution is never continued.
As I couldn't find a solution for this behaviour I recorded the test case hoping a recorded test case would work. However on executing the recorded test case I get the same results: Jubula is stuck on step 1 and never continues.
Is there a known problem with window appearing too fast? I get the feeling that the application is displaying the error window even before Jubula has finished changing the combo box value. Maybe this causes Jubula to lose focus on the combo box so that it never realizes step 1 has completed and gets stuck? But as I have no idea about the inner workings of Jubula I'm probably totally off here.
Any hints, ideas and workarounds are very much appreciated - I'm lost.
Thanks a lot
|Re: RCP Validation Error Window not found [message #956099 is a reply to message #954927]
||Wed, 24 October 2012 04:38
| Alexandra Schladebeck
Registered: July 2009
It does indeed sound like there is some kind of deadlock - like we are trying to check something in the UI thread when the error dialog is already there. If you can provide information on what toolkit (Swing, RCP ...) you are using, as well as version, platform etc, then that might help. It would also be really useful if you could provide a snippet or even a small example of the application that demonstrates the problem, then we could see what is going on.
In the meantime, I have a possible suggestion for a workaround -
- Put the focus on the combo box (clicking, tabbing to it..)
- Use the "key combination" or "external key combination" to select the item you want to select based on its first letter
- Then wait for the window.
Powered by FUDForum
. Page generated in 0.03764 seconds