| How to test a re-appearing panel? [message #1755235]
||Wed, 01 March 2017 11:31
| Ilkka Nieminen
Registered: March 2017
A menu panel (Swing) is created and shown when mouse is moved near the edge of the screen. The menu panel has multiple icons (buttons etc.) to launch other GUI components. Initially, after logging in to the application, there are no other GUI components present. After selection is done or mouse is moved away from the menu panel, the menu panel is disposed.
Jubula Version: 188.8.131.52, Felix, Swing, Java 8
How to test this kind of re-appearing menu panel with Jubula when initially there is no visible component to link with?
What I've tried:
Moving mouse would be the most logic approach but there is no moveMouse(int, x, int y) in Jubula. Therefore I wrote a public static void moveMouse(Integer x, Integer y) -method into AUT for moving the mouse around. However, invoking the method with ub_rfl_invoke only results in ClassNotFoundException. I'm betting that's due to Felix (OSGi) having its own ClassLoader.
Running an image recognition based test case (Sikuli) to move the mouse would resolve the issue, but I'd rather avoid having test cases based on image recognition since each desktop in the test environment may have it's own visual appearance (Different OS etc.).
Powered by FUDForum
. Page generated in 0.01470 seconds