Linux Desktop Testing Project
Template:Short description {{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check | template = Template:Infobox software | cat = Template:Main other | logo size; logo_size | logo class; logo_class | logo alt; logo_alt | logo title; logo_title | logo caption; logo_caption | screenshot size; screenshot_size | screenshot upright; screenshot_upright | screenshot class; screenshot_class | screenshot alt; screenshot_alt | screenshot title; screenshot title | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | programming language; programming_language | operating system; operating_system }}
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:
<syntaxhighlight lang="python">
- !/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() </syntaxhighlight>
Diagram of how LDTP works
See also
{{#invoke:Portal|portal}}
References
External links
- Template:Official website
- Mago Ubuntu wrapper using LDTP
{{#invoke:Navbox|navbox}} Template:FOSS
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}Template:Cbignore
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}