Jump to content

Linux Desktop Testing Project: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m top: Typo fixing, replaced: et. al. → et al.
Template:Infobox software, WP:REFerence WP:CITation parameters: update-standardizes, respaces, conform to master templates. WP:LINKs: update-standardizes, needless WP:PIPE > WP:NOPIPE. MOS:FIRSTABBReviations clarify, define before WP:ABBRs in parentheses. Small WP:COPYEDITs WP:EoS: clarify, WP:TERSE. WP:SLASH > and.
Line 2: Line 2:
| name = Linux Desktop Testing Project
| name = Linux Desktop Testing Project
| developer = Emily Chen, Nagappan A., et al.<ref>{{cite web|title=Team Members|url=https://ldtp.freedesktop.org/wiki/TeamMembers/|website=ldtp.freedesktop.org|accessdate=25 December 2017}}</ref>
| developer = Emily Chen, Nagappan A., et al.<ref>{{cite web|title=Team Members|url=https://ldtp.freedesktop.org/wiki/TeamMembers/|website=ldtp.freedesktop.org|accessdate=25 December 2017}}</ref>
| released = {{Start date and age|2005|1|28}}<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/FAQ/ | title=FAQ}}</ref>
| released = {{Start date and age|2005|01|28}}<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/FAQ/ |title=FAQ}}</ref>
| latest release version = 3.5.0
| latest release version = 3.5.0
| latest release date = {{Start date and age|2013|05|01}}<ref>[https://github.com/ldtp/ldtp2/releases LDTP2 Releases] - Github</ref>
| latest release date = {{Start date and age|2013|05|01}}<ref>[https://github.com/ldtp/ldtp2/releases LDTP2 Releases] - GitHub</ref>
| repo = {{URL|https://github.com/ldtp/ldtp2}}
| repo = {{URL|https://github.com/ldtp/ldtp2}}
| programming language = [[Python (programming language)|Python]], [[C Sharp (programming language)|C#]]<ref>{{cite web|title=Linux Desktop Testing Project|url=https://github.com/ldtp/ldtp2|website=dtp/ldtp2|accessdate=25 December 2017 |via=[[GitHub]]}}</ref>
| programming language = [[Python (programming language)|Python]], [[C Sharp (programming language)|C#]]<ref>{{cite web|title=Linux Desktop Testing Project|url=https://github.com/ldtp/ldtp2|website=dtp/ldtp2|access-date=25 December 2017 |via=[[GitHub]]}}</ref>
| operating system = [[Linux]], [[macOS]], [[Windows]]<ref>{{cite web | url=https://pypi.python.org/pypi/ldtp | title=ldtp 3.5.0 : Python Pakage Index}}</ref>
| operating system = [[Linux]], [[macOS]], [[Windows]]<ref>{{cite web |url=https://pypi.python.org/pypi/ldtp |title=ldtp 3.5.0: Python Pakage Index}}</ref>
| genre = [[Automated testing]]
| genre = [[Automated testing]]
| license = [[GNU Lesser General Public License|GNU LGPL]]<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/Download/ | title=Download}}</ref>
| license = [[GNU Lesser General Public License|GNU LGPL]]<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/Download/ |title=Download}}</ref>
| website = {{URL|https://ldtp.freedesktop.org}}
| website = {{URL|https://ldtp.freedesktop.org}}
}}
}}


The '''Linux Desktop Testing Project''' (LDTP) is an [[open-source software|open-source]] [[testing tool]] that uses computer [[Computer accessibility|assistive technology]]<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}</ref> to automate [[GUI]]s.<ref>{{cite web | url=http://www.h-online.com/open/news/item/LDTP-3-0-automates-GUI-testing-on-Linux-1660613.html | title=LDTP 3.0 automates GUI testing on Linux - The H Open: News and Features}}</ref> The GUI functionality of an application can be tested in Windows, Mac, Linux, Solaris, FreeBSD and embedded environments.<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}</ref> The Mac OS X version is called PyATOM,<ref>{{cite web | url=https://github.com/pyatom/pyatom | title=pyatom/pyatom - GitHub}}</ref> and the Windows version is Cobra.<ref>{{cite web | url=https://github.com/ldtp/cobra | title=ldtp/cobra - GitHub}}</ref>
The '''Linux Desktop Testing Project''' (LDTP) is a [[testing tool]] that uses computer [[Computer accessibility|assistive technology]]<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/ |title=ldtp}}</ref> to automate [[graphical user interface]] (GUI) testing.<ref>{{cite web |url=http://www.h-online.com/open/news/item/LDTP-3-0-automates-GUI-testing-on-Linux-1660613.html |title=LDTP 3.0 automates GUI testing on Linux - The H Open: News and Features}}</ref> The GUI functionality of an application can be tested in [[Linux]], [[macOS]], [[Windows]], [[Oracle Solaris|Solaris]], [[FreeBSD]], and [[embedded system]] environments.<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/ |title=ldtp}}</ref> The macOS version is named PyATOM,<ref>{{cite web |url=https://github.com/pyatom/pyatom |title=pyatom/pyatom - GitHub}}</ref> and the Windows version is Cobra.<ref>{{cite web |url=https://github.com/ldtp/cobra |title=ldtp/cobra - GitHub}}</ref> 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 (programming language)|Java]], [[Qt toolkit|Qt]] 4-based and [[KDE]] 4.x applications.<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}</ref>
LDTP can test any accessibility-enabled [[GNOME]] application, [[Mozilla]], [[OpenOffice.org]], any Swing-based [[Java (programming language)|Java]], [[Qt (software)|Qt]] 4-based and [[KDE]] 4.x applications.<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/ |title=ldtp}}</ref>


LDTP is/was used by the following companies/organizations:<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/FAQ/ | title=FAQ}}</ref>
LDTP is/was used by the following companies and organizations:<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/FAQ/ |title=FAQ}}</ref>


* [[GNOME]]
* [[GNOME]]
Line 27: Line 27:
* [[VMware]]
* [[VMware]]


LDTP can be used to remotely test applications.<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/Executing_scripts_remotely/ | title=Executing scripts remotely}}</ref><ref>{{cite web | url=https://www.youtube.com/watch?v=ojAN8MktFHE |archive-url=https://ghostarchive.org/varchive/youtube/20211213/ojAN8MktFHE |archive-date=2021-12-13 |url-status=live| title=How to control GNOME apps remotely using LDTP - YouTube}}{{cbignore}}</ref>
LDTP can be used to remotely test applications.<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/Executing_scripts_remotely/ |title=Executing scripts remotely}}</ref><ref>{{cite web |url=https://www.youtube.com/watch?v=ojAN8MktFHE |archive-url=https://ghostarchive.org/varchive/youtube/20211213/ojAN8MktFHE |archive-date=2021-12-13 |url-status=live| title=How to control GNOME apps remotely using LDTP - YouTube}}{{cbignore}}</ref>

The LDTP is released under the [[LGPL]].


==History==
==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<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC/ | title=SoC}}</ref><ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC06/ | title=SoC06}}</ref> for [[Tinderbox (software)|Tinderbox]] integration, [[Evolution (software)|Evolution]] automation, and LDTP regression suite under [[GNOME]] organization. Then again in 2007,<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC/ | title=SoC}}</ref><ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC07/ | title=SoC07}}</ref> it was used by the Mozilla Foundation for [[Firefox]] automation and [[Tinderbox (software)|Tinderbox]] integration.
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<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/SoC/ |title=SoC}}</ref><ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/SoC06/ |title=SoC06}}</ref> for [[Tinderbox (software)|Tinderbox]] integration, [[Evolution (software)|Evolution]] automation, and LDTP regression suite under [[GNOME]] organization. Then again in 2007,<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/SoC/ |title=SoC}}</ref><ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/SoC07/ |title=SoC07}}</ref> it was used by the Mozilla Foundation for [[Firefox]] automation and [[Tinderbox (software)|Tinderbox]] integration.


==Example==
==Example==
Line 77: Line 75:


==Diagram of how LDTP works==
==Diagram of how LDTP works==
{{Wide image|Ldtp-workings.svg|700px|How LDTP works<ref>{{cite web | url=http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf | title=ldtp-tutorial}}</ref>|100%|center|alt=Diagram of the workings of LDTP}}
{{Wide image|Ldtp-workings.svg|700px|How LDTP works<ref>{{cite web |url=http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf |title=ldtp-tutorial}}</ref>|100%|center|alt=Diagram of the workings of LDTP}}


== See also ==
== See also ==

Revision as of 11:43, 3 October 2023

Linux Desktop Testing Project
Developer(s)Emily Chen, Nagappan A., et al.[1]
Initial releaseJanuary 28, 2005; 20 years ago (2005-01-28)[2]
Stable release
3.5.0 / May 1, 2013; 12 years ago (2013-05-01)[3]
Repositorygithub.com/ldtp/ldtp2
Written inPython, C#[4]
Operating systemLinux, macOS, Windows[5]
TypeAutomated testing
LicenseGNU LGPL[6]
Websiteldtp.freedesktop.org

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

Diagram of the workings of LDTP
How LDTP works[20]

See also

References

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