FEST-Swing: Please try fix for French keyboard (FEST-232) in latest snapshot

26 views
Skip to first unread message

Alex Ruiz

unread,
Nov 29, 2009, 11:07:40 PM11/29/09
to easytesting
Greetings,

I just uploaded a new snapshot ( http://snapshots.repository.codehaus.org/org/easytesting ) with a fix for FEST-232 ( http://jira.codehaus.org/browse/FEST-232 )

I used the image in http://www.forlang.wsu.edu/help/kfrench.asp to create the keyboard mapping. I have no way to test it.

Users that have French keyboards, please give it a try. I suspect that the issue that Olivier reported is still there (Q and A are inverted.)

Please let me know.

Cheers!
-Alex

Alex Ruiz

unread,
Nov 29, 2009, 11:10:15 PM11/29/09
to easytesting
I forgot to mention. I think there are still some mappings missing.
I'd appreciate if anybody finds them and reports them :)

Cheers,
-Alex

On Nov 29, 8:07 pm, Alex Ruiz <alex.ruiz...@gmail.com> wrote:
> Greetings,
>
> I just uploaded a new snapshot (http://snapshots.repository.codehaus.org/org/easytesting) with a fix for
> FEST-232 (http://jira.codehaus.org/browse/FEST-232)
>
> I used the image inhttp://www.forlang.wsu.edu/help/kfrench.aspto create

OlivierD

unread,
Nov 30, 2009, 1:49:36 AM11/30/09
to easytesting
Hi Alex,

Thanks for working on the issue. I made some research and it's not
going to be an easy one.
The latest code create some new problem. Before there were no problem
with enterText
Using
frameFixture.textBox(ConstantsNames.WINE_NAME).enterText("My New
Wine");
now write "?y Nez Zine" without the quotes.

I'll continue some testing and let you know

Thanks,

Olivier

OlivierD

unread,
Nov 30, 2009, 2:02:01 AM11/30/09
to easytesting
Hi Alex,

The more I look at it, the less I think it's a FEST bug, but a java
issue.
The keyboard layout is not the same on Mac, at least on my MacBook.

Using this :
public class TestRobot extends JFrame {

public TestRobot() {
JPanel panel = new JPanel();
setContentPane(panel);

panel.add(new JLabel("Label:"));
panel.add(new JTextField(15));
}

public static void main(String[] args)
throws Exception {
JFrame frame = new TestRobot();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
Robot robot = new Robot();
robot.setAutoDelay(500);

robot.keyPress(KeyEvent.VK_X);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_B);
robot.keyPress(KeyEvent.VK_C);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_2);
robot.keyPress(KeyEvent.VK_PERIOD);
robot.keyRelease(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_PERIOD);
robot.keyPress(KeyEvent.VK_A);
}
}

Here is the output on French OSX with french keyboard : xqbc2/:q

Is it a OSX bug? I don't know since I don't have any other machine
with French OS and french keyboard.
Can somebody test it on Windows?

Like I said, it's not going to be an easy one.

Thanks,

Olivier

Henning

unread,
Nov 30, 2009, 7:53:28 AM11/30/09
to easytesting
i found a bug in ther german key map

mappings.add(mapping('+', VK_CLOSE_BRACKET, NO_MASK));
mappings.add(mapping('*', VK_CLOSE_BRACKET, SHIFT_MASK));
mappings.add(mapping('~', VK_CLOSE_BRACKET, ALT_GRAPH_MASK));

should be:

mappings.add(mapping('+', VK_PLUS, NO_MASK));
mappings.add(mapping('*', VK_PLUS, SHIFT_MASK));
mappings.add(mapping('~', VK_PLUS, ALT_GRAPH_MASK));

Also there are no java virtuel key for ö,ä,ü,ß on german keyboard so
that a simple maping dont work.
There is a workaround with alt+0+2+1+4 or send Event to
SystemEventQueue.

Alex Ruiz

unread,
Nov 30, 2009, 8:09:01 AM11/30/09
to easyt...@googlegroups.com
Thanks Olivier for your help! hopefully we can have fixed for 1.2 :)

Cheers,
-Alex

--

You received this message because you are subscribed to the Google Groups "easytesting" group.
To post to this group, send email to easyt...@googlegroups.com.
To unsubscribe from this group, send email to easytesting...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/easytesting?hl=en.



Alex Ruiz

unread,
Nov 30, 2009, 8:09:37 AM11/30/09
to easyt...@googlegroups.com
Thanks Henning! Can you please file a bug? :)

Cheers!
-Alex

Reply all
Reply to author
Forward
0 new messages