Linux Desktop Testing Project

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Infobox/styles.css has no content.

Linux Desktop Testing Project
[[Programmer|DeveloperTemplate:Pluralize from text]]Emily Chen, Nagappan A., et al.[1]
Initial releaseJanuary 28, 2005; 21 years ago (2005-01-28)[2]
Template:Infobox software/simple
Written inPython, C#[3]
Operating systemLinux, macOS, Windows[4]
TypeAutomated testing
LicenseGNU LGPL[5]
Websiteldtp.freedesktop.org
Repositorygithub.com/ldtp/ldtp2

Script error: No such module "Check for conflicting parameters".

The Linux Desktop Testing Project (LDTP) is a testing tool that uses computer assistive technology[7] to automate graphical user interface (GUI) testing.[8] The GUI functionality of an application can be tested in Linux, macOS, Windows, Solaris, FreeBSD, and embedded system environments.[9] The macOS version is named PyATOM,[10] and the Windows version is Cobra.[11] 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.[12]

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

LDTP can be used to remotely test applications.[14][15]

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 2006[16][17] for Tinderbox integration, Evolution automation, and LDTP regression suite under GNOME organization. Then again in 2007,[18][19] 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

Script error: No such module "wide image".

See also

Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

References

Page Template:Reflist/styles.css has no content.

  1. ^ Page Module:Citation/CS1/styles.css has no content."Team Members". ldtp.freedesktop.org. Retrieved 25 December 2017.
  2. ^ Page Module:Citation/CS1/styles.css has no content."FAQ".
  3. ^ Page Module:Citation/CS1/styles.css has no content."Linux Desktop Testing Project". dtp/ldtp2. Retrieved 25 December 2017 – via GitHub.
  4. ^ Page Module:Citation/CS1/styles.css has no content."ldtp 3.5.0: Python Pakage Index".
  5. ^ Page Module:Citation/CS1/styles.css has no content."Download".
  6. ^ LDTP2 Releases - GitHub
  7. ^ Page Module:Citation/CS1/styles.css has no content."ldtp".
  8. ^ Page Module:Citation/CS1/styles.css has no content."LDTP 3.0 automates GUI testing on Linux - The H Open: News and Features".
  9. ^ Page Module:Citation/CS1/styles.css has no content."ldtp".
  10. ^ Page Module:Citation/CS1/styles.css has no content."pyatom/pyatom - GitHub".
  11. ^ Page Module:Citation/CS1/styles.css has no content."ldtp/cobra - GitHub".
  12. ^ Page Module:Citation/CS1/styles.css has no content."ldtp".
  13. ^ Page Module:Citation/CS1/styles.css has no content."FAQ".
  14. ^ Page Module:Citation/CS1/styles.css has no content."Executing scripts remotely".
  15. ^ Page Module:Citation/CS1/styles.css has no content."How to control GNOME apps remotely using LDTP - YouTube". Archived from the original on 2021-12-13.
  16. ^ Page Module:Citation/CS1/styles.css has no content."SoC".
  17. ^ Page Module:Citation/CS1/styles.css has no content."SoC06".
  18. ^ Page Module:Citation/CS1/styles.css has no content."SoC".
  19. ^ Page Module:Citation/CS1/styles.css has no content."SoC07".
  20. ^ Page Module:Citation/CS1/styles.css has no content."ldtp-tutorial" (PDF).

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.