Linux Desktop Testing Project

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Otbest at 11:27, 14 May 2024 (#suggestededit-add-desc 1.0). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Script error: No such module "Infobox".Template:Template other Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".

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

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

LDTP can be used to remotely test applications.[8][9]

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[10][11] for Tinderbox integration, Evolution automation, and LDTP regression suite under GNOME organization. Then again in 2007,[12][13] 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".Script error: No such module "Check for unknown parameters".

See also

Script error: No such module "Portal".

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".Template:Cbignore
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. Script error: No such module "citation/CS1".

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

External links

  • Script error: No such module "Official website".Script error: No such module "Check for unknown parameters".
  • Mago Ubuntu wrapper using LDTP

Script error: No such module "Navbox". Script error: No such module "Navbox".