Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using LDTP Python API in order to test desktop applications under Ubuntu (Unity shell, Ubuntu 12.04). I can't find if there's any available way to interact with appindicator icon and menus using the API, and if it's possible at all. Can anyone suggest a solution?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Yes, desktop applications are wonderfully tested with autopilot. It was originally written to test unity, unity indicators, and etc.

What is autopilot?

Autopilot is a functional testing tool. It simulates user actions by generating keyboard and mouse events, and then testing the internal state of the application in question. It works for gtk and qt based applications. Autopilot is written in python. Tests are standard python unit tests and introspection is done using DBus calls.

Check out the official documentation: http://unity.ubuntu.com/autopilot/

Here's a tutorial as well to get you started: http://developer.ubuntu.com/resources/cookbook/mobile/how-to-write-autopilot-tests/

There's even a video by yours truly showing how it can be used to work on qml/qt applications: http://www.youtube.com/watch?v=qD_e_xqlBbg

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.