Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346414 - Extend keyboard layout configuration granularity to support OS specific layouting
Summary: Extend keyboard layout configuration granularity to support OS specific layou...
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: RC (show other bugs)
Version: 0.9.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: Indigo SR1   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 06:41 EDT by Markus Tiede CLA
Modified: 2011-08-17 06:11 EDT (History)
1 user (show)

See Also:


Attachments
Project to reproduce (39.10 KB, text/xml)
2011-08-16 05:46 EDT, Oliver Goetz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Tiede CLA 2011-05-19 06:41:25 EDT
The current keyboard layout configuration granularity is able to differ between different keyboard languages. But currently there is no support to adjust mappings for the same language on different operating systems: e.g. on a german keyboard layout configuration (de_DE) the '@' is realized by pressing "ctrl+alt+q" on a windows machine (see http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/tree/org.eclipse.jubula.autagent/resources/keyboardmapping_de_DE.properties?id=94f1ab81530db147c13326951d8ff1fe956489c1#n37)
 though on a Mac OS X machine "ctrl+alt+l" needs to be pressed. There are also more characters which are related to this, e.g. '{', '}' '|' ...
Comment 1 Zeb Ford-Reitz CLA 2011-08-03 07:21:28 EDT
http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=0ea9a9d582e3229c94fbf54cc2f4f93697ba5042 implements the first step of this: Consolidating the Keyboard Layout information to the client (ITE, testexec) rather than having configuration in the client and mapping files in the server.
Comment 2 Zeb Ford-Reitz CLA 2011-08-03 10:29:20 EDT
http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=4c6957a3d8f34fbe77a90fe2a1f43e8d9744fa3d changes the Keyboard Layout combo of the AUT Configuration dialog to include all available Keyboard Layouts (all "*.properties" files located in the "resources/keyboard_mappings" directory of org.eclipse.jubula.client.core and its fragments). This replaces the previous functionality of the combo, which displayed all Locales supported by the running JRE.

Each Keyboard Layout file should conform to the Locale standard (<language>_<country>_<vairant>) because then it will be presented as the display name of the corresponding Locale. Otherwise, the filename (without the ".properties" extension) will be displayed.
Comment 3 Oliver Goetz CLA 2011-08-16 05:46:10 EDT
Created attachment 201553 [details]
Project to reproduce
Comment 4 Oliver Goetz CLA 2011-08-16 05:48:25 EDT
I was not able to verify the fix using the attached project. Setting the language in the windows language bar to german and starting the AUT with german keyboard layout GUIdancer does not insert the right characters. However setting the windows language to english and starting the AUT with english keyboard layout the characters are inserted.
Comment 5 Zeb Ford-Reitz CLA 2011-08-16 11:55:26 EDT
@Oliver: I also briefly experienced the problem as you described. The problem for me was that my Windows Keyboard Layout was being set per application, rather than for the entire desktop. I was changing the Layout to DE and then starting the AUT. However, when I clicked on the AUT's title bar, I noticed that the Windows Keyboard Layout for the AUT was actually EN! When I changed the Windows Keyboard Layout for the AUT as well, then the test ran through without any problems. Please give this a try and change the bug report status if necessary.
Comment 6 Oliver Goetz CLA 2011-08-17 06:11:30 EDT
My problem was the switching of the windows language. Fix works, closing this ticket.