LDTP in jhbuild: A Cry For Help

Glom has lots of code, lots of functionality and lots of UI. It’s easy to break things when making changes to the code. So Armin set up some initial Glom LDTP python scripts to check for regressions. These scripts try to actually use the UI and then check that the application worked as expected.

I’m sure I had that working once, but it doesn’t work for me now. I wish it did because it would be incredibly useful to me. Note that I build Glom in jhbuild, so I need LDTP to work there. To simplify things, I build LDTP in jhbuild too. I’m trying this on Ubuntu Jaunty and Ubuntu Karmic. Armin has a similar environment and it does work for him.

The problem is that the waittillguiexist() [1] function calls just timeout instead of recognizing that the first window has appeared. I definitely have accessibility support enabled, and Accerciser does show the window properly. I’ve asked the LDTP developers but they haven’t been able to help me.

[1] Yes, I hate that function name. I wish that the API and documentation had received proper feedback from native English speakers. It’s rather embarrassing to look at so far.

3 thoughts on “LDTP in jhbuild: A Cry For Help

  1. Nagappan, my glom is built in the jhbuild prefix, so glom wouldn’t run without jhbuild.

    But, well, the regular Ubuntu Karmic glom version is quite up-to-date. I do have the same problem when trying to run the ldtp tests outside of jhbuild, with that regular version of Glom. But I’m not 100% sure that the package has the changes that we added to Glom to support ldtp, such as Atk details.

  2. Nagappan, I did notice these warnings when running outside of jhbuild (using the regular Ubuntu Karmic packages for ldtp and Glom). I guess that they are not important, but I’ll mention them just in case:

    ** (ldtprunner:3669): WARNING **: Trying to register gtype ‘WnckWindowState’ as flags when in fact it is of type ‘GEnum’

    ** (ldtprunner:3669): WARNING **: Trying to register gtype ‘WnckWindowActions’ as flags when in fact it is of type ‘GEnum’

    ** (ldtprunner:3669): WARNING **: Trying to register gtype ‘WnckWindowMoveResizeMask’ as flags when in fact it is of type ‘GEnum’

Leave a Reply

Your email address will not be published. Required fields are marked *