Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Linux Desktop Testing Project

The Linux Desktop Testing Project (LDTP) is a testing tool that uses computer assistive technology to automate graphical user interface (GUI) testing. The GUI functionality of an application can be tested in Linux, macOS, Windows, Solaris, FreeBSD, and embedded system environments. The macOS version is named PyATOM, and the Windows version is Cobra. The LDTP is released as free and open-source software under the GNU Lesser General Public License (LGPL).

LDTP can test any accessibility-enabled GNOME application, Mozilla, OpenOffice.org, any Swing-based Java, Qt 4-based and KDE 4.x applications.

LDTP is/was used by the following companies and organizations:

LDTP can be used to remotely test applications.

We don't have any images related to Linux Desktop Testing Project yet.
We don't have any YouTube videos related to Linux Desktop Testing Project yet.
We don't have any PDF documents related to Linux Desktop Testing Project yet.
We don't have any Books related to Linux Desktop Testing Project yet.
We don't have any archived web articles related to Linux Desktop Testing Project yet.

History

LDTP version 0.1.0 was released in January 2005 and then showcased and discussed at GNOME Users And Developers European Conference (GUADEC) 2005. It was then used at the Google Summer of Code in 20061011 for Tinderbox integration, Evolution automation, and LDTP regression suite under GNOME organization. Then again in 2007,1213 it was used by the Mozilla Foundation for Firefox automation and Tinderbox integration.

Example

This is an example of how LDTP would test writing in gedit:

#!/usr/bin/env python3 # 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

How LDTP works14

See also

  • Free and open-source software portal

References

  1. "ldtp". http://ldtp.freedesktop.org/wiki/

  2. "LDTP 3.0 automates GUI testing on Linux - The H Open: News and Features". http://www.h-online.com/open/news/item/LDTP-3-0-automates-GUI-testing-on-Linux-1660613.html

  3. "ldtp". http://ldtp.freedesktop.org/wiki/

  4. "pyatom/pyatom - GitHub". https://github.com/pyatom/pyatom

  5. "ldtp/cobra - GitHub". https://github.com/ldtp/cobra

  6. "ldtp". http://ldtp.freedesktop.org/wiki/

  7. "FAQ". http://ldtp.freedesktop.org/wiki/FAQ/

  8. "Executing scripts remotely". http://ldtp.freedesktop.org/wiki/Executing_scripts_remotely/

  9. "How to control GNOME apps remotely using LDTP - YouTube". Archived from the original on 2021-12-13. https://www.youtube.com/watch?v=ojAN8MktFHE

  10. "SoC". http://ldtp.freedesktop.org/wiki/SoC/

  11. "SoC06". http://ldtp.freedesktop.org/wiki/SoC06/

  12. "SoC". http://ldtp.freedesktop.org/wiki/SoC/

  13. "SoC07". http://ldtp.freedesktop.org/wiki/SoC07/

  14. "ldtp-tutorial" (PDF). http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf