Linux Desktop Testing Project
|Developer(s)||Emily Chen, Nagappan A., et. al.|
|Initial release||January 28, 2005|
3.5.0 / May 1, 2013
|Written in||Python, C#|
|Operating system||Linux, macOS, Windows |
|License||GNU LGPL |
The Linux Desktop Testing Project (LDTP) is an open-source testing tool that uses computer assistive technology to automate GUIs. The GUI functionality of an application can be tested in Windows, Mac, Linux, Solaris, FreeBSD and embedded environments. The Mac OS X version is called PyATOM, and the Windows version is Cobra.
LDTP is/was used by the following companies/organizations:
The LDTP is released under the LGPL.
LDTP version 0.1.0 was released in January 2005 and then showcased and discussed at GUADEC 2005. It was then used at the Google Summer of Code in 2006 for Tinderbox integration, Evolution automation, and LDTP regression suite under GNOME organization. Then again in 2007, it was used by the Mozilla Foundation for Firefox automation and Tinderbox integration.
This is an example of how LDTP would test writing in gedit:
#!/usr/bin/python # The standard import stuff. from ldtp import * from ooldtp import context as locate from time import sleep # Here we open the app. launchapp('gedit') # Now we find it and make sure it is open. gedit_win = locate('*gedit') gedit_win.waittillguiexist() # Now we type into gedit. text_field = gedit_win.getchild('txt1') text_field.enterstring("G'Day mate!") # Save a picture to prove we did it. imagecapture('*gedit', '/tmp/foo.png') # Quit gedit. quit = gedit_win.getchild('mnuQuit') quit.selectmenuitem() # Close without saving. dont_save = locate('Question') dont_save.waittillguiexist() button = dont_save.getchild('btnClosewithoutSaving') button.click() # Wait until gedit is gone. gedit_win.waittillguinotexist()
Diagram of how LDTP works
- "Team Members". ldtp.freedesktop.org. Retrieved 25 December 2017.
- LDTP2 Releases - Github
- "Linux Desktop Testing Project". dtp/ldtp2. Retrieved 25 December 2017 – via GitHub.
- "ldtp 3.5.0 : Python Pakage Index".
- "LDTP 3.0 automates GUI testing on Linux - The H Open: News and Features".
- "pyatom/pyatom - GitHub".
- "ldtp/cobra - GitHub".
- "Executing scripts remotely".
- "How to control GNOME apps remotely using LDTP - YouTube".
- "ldtp-tutorial" (PDF).