Hi Mike, I don't have much idea on DBus, probably Mike Gorse (CC) in this email might. He is the author of at-spi2.
Thanks Nagappan On Mon, Sep 23, 2013 at 9:32 AM, Mike Pelican <mpeli...@sift.net> wrote: > Thanks, Nagappan. > > Possibly we're trying something you didn't intend or haven't tried. We're > running Xtightvnc on a test server and using JollyFastVNC to watch on our > Macs. Usually I run ldtp interactively from a separate ssh session on the > test server, but we've tried running from scripts and from xterms running > inside the VNC/Gnome desktop. > > Can you recommend a better way to run tests remotely on a headless system? > > Here are a couple of our problems: > > 1) The previously mentioned key mapping problems: > > >>> generatekeyevent('abcdefghjijklmnopqrtuvwyz') > generatekeyevent('abcdefghjijklmnopqrtuvwyz') > 1 > >>> asqc9defg;ghiut'`7-=]r8[o > > To workaround, I can (did) hack the translations in keypress_actions.py or > could modify the code that reads the xmodmap output. > > 2) There's something wrong with our dbus setup. When we start an > application within ldtp, then send a key event, the app crashes: > > >>> launchapp('firefox') > launchapp('firefox', [], 0, 1, 'C') > 9155 > >>> Xlib: extension "RANDR" missing on display "earth:12". > GTK Accessibility Module initialized > process 9155: arguments to dbus_server_get_data() were incorrect, > assertion "server != NULL" failed in file ../../dbus/dbus-server.c line > 1178\ > . > This is normally a bug in some application using the D-Bus library. > process 9155: arguments to dbus_server_set_data() were incorrect, > assertion "server != NULL" failed in file ../../dbus/dbus-server.c line > 1142\ > . > This is normally a bug in some application using the D-Bus library. > > ** (iceweasel:9155): ERROR **: Not enough memory to set up DBusServer for > use with GLib > > Thanks, > > Mike > > > > On Sep 16, 2013, at 12:45 PM, Nagappan Alagappan <nagap...@gmail.com> > wrote: > > Hi Mike, > > Even, I could not see the message in moderator's page. Not sure, what > happened. > > > LDTP keycode was done based on LTFX project. On Ubuntu 13.04, its how the > result is: > > nagappan@nalagappan:~$ python > Python 2.7.4 (default, Apr 19 2013, 18:28:01) > [GCC 4.7.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from ldtp import * > >>> generatekeyevent('abcdefghijklmnopqrstuvwxyz') > abcdefghijklmnopqrstuvwxyz1 # 1 at end is output from generatekeyevent API > >>> abcdefghijklmnopqrstuvwxyz > > Thanks > Nagappan > > > On Mon, Sep 16, 2013 at 7:16 AM, Mike Pelican <mpeli...@sift.net> wrote: > >> Hi Nagappan - >> >> I tried to send the following message to ldtp-dev, but the message didn't >> appear in the archive and I didn't get a bounce. Was it quietly rejected? >> >> I've been digging into the generatekeyevent issue. It seems like some >> key code values are hardcoded and others are read from xmodmap output, but >> the result is not right for our configuration. Based on my limited >> knowledge, it seems the Right Thing to use xmodmap to arrange all the key >> mappings. Is there a better way? Should we be doing something differently >> to make the current code work? >> >> Thanks, >> >> Mike >> >> Begin forwarded message: >> >> *From: *Mike Pelican <mpeli...@sift.net> >> *Subject: **how do I configure key code map for generatekeyevent?* >> *Date: *September 12, 2013 11:59:33 AM CDT >> *To: *ldtp-dev@lists.freedesktop.org >> *Cc: *Eric Engstrom <engst...@sift.net> >> >> Hi - >> >> I'm trying to use LDTP to script a web browser. I'd like to use >> generatekeyevent to type things into browser text boxes and web forms, but >> I don't understand the mapping between the string I pass to >> generatekeyevent and the resulting key events in my window. Eg: >> >> generatekeyevent("abcdefghijkmlnopqrstuwxyz") >> >> produces >> >> asqc9def;ghuit'`7-b=]8p[o >> >> in an xterm window. >> >> I see that there's a remapping done in get_keyval_id using _get_key_value >> which uses a hardcoded _char_key map. >> >> Do I need to change my X or Gnome configuration to match this _char_key >> map? (How?) Or is there a function I should use to transform my string >> before I pass it to generatekeyevent? >> >> Thanks! >> >> Mike >> >> >> > > > -- > Cross platform GUI testing > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra > ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom > http://nagappanal.blogspot.com > > > -- Cross platform GUI testing Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev