Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347886 - Press any key (modifier: alt, base: O) fails during nightly tests on centOS5
Summary: Press any key (modifier: alt, base: O) fails during nightly tests on centOS5
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 1.0   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 04:15 EDT by Oliver Goetz CLA
Modified: 2011-06-14 06:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Goetz CLA 2011-06-01 04:15:16 EDT
Error occured during nightly tests in GD-Performance-gdcentos5, TC "Test duration of export project" -> "wait for window refresh".
On the screenshot for this error you can see the save as..-dialog. GD performs ub_app_pressAnyKey with alt as modifier and O as base key which should close the save as-dialog. The testcase ub_app_pressAnyKey gets the status succesfully tested, the save as..-dialog remains open.
Comment 1 Zeb Ford-Reitz CLA 2011-06-01 12:13:08 EDT
I am able to reproduce the problem (at least most of the time). I think the key event is getting properly posted, but the posted event does not occur until the "Save as..." dialog (which is a native dialog) is closed. I will look into this in more detail next week.

It seems very likely that we won't be able to fix this for the 1.0 release, as Indigo is right around the corner.
Comment 2 Zeb Ford-Reitz CLA 2011-06-06 06:42:18 EDT
So far today I have been unable to reproduce the problem, although I see that the error occurred during last night's automated UI tests. My current suspicion is that some earlier Test Step (possibly in a previous Test Suite) is failing to release a modifier key (probably Shift or Control), which results in the action not properly closing the dialog due to, for example, Shift+Alt+O being pressed instead of the desired Alt+O.
Comment 3 Zeb Ford-Reitz CLA 2011-06-08 03:28:13 EDT
Through the use of key-mon (http://code.google.com/p/key-mon/), I can say with some certainty that the problem is not caused by "leftover" modifier keys.
Comment 4 Zeb Ford-Reitz CLA 2011-06-08 08:45:31 EDT
The cause is now clear: The AUT from the nightly tests is started with a German locale, and the native (GTK) save file dialog has duplicate instances of the "O" mnemonic ("In &Ordner speichern:" and "&OK"). The result is that pressing Alt+O toggles between those two elements but does not close the dialog.

I updated our test script today so that the German locale will not be used in the nightly tests. I suspect that the locale was configured some time ago and was necessary at the time, but I see no reason why it would be necessary now.

I have reported Bug 348716, so the SWT people are aware of this as well.
Comment 5 Oliver Goetz CLA 2011-06-14 06:42:31 EDT
Verified through nightly tests