Linux Desktop Testing Project: Difference between revisions

Content deleted Content added
Cjbayliss (talk | contribs)
Added more info and refs
Otbest (talk | contribs)
#suggestededit-add-desc 1.0
Tags: Mobile edit Mobile app edit Android app edit
 
(54 intermediate revisions by 21 users not shown)
Line 1:
{{Short description|Testing tool that uses computer assistive technology}}
<!-- Please do not remove or change this AfD message until the issue is settled -->
{{Article for deletion/dated|page=Linux Desktop Testing Project|timestamp=20140316032909|year=2014|month=March|day=16|substed=yes|help=off}}
<!-- For administrator use only: {{Old AfD multi|page=Linux Desktop Testing Project|date=16 March 2014|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
{{unreferenced|date=September 2011}}
 
{{Infobox software
| name = Linux Desktop Testing Project
| released = {{Start date|c. 2005|}}
| 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>
| frequently updated = yes
| licensereleased = [[GNU{{Start Lesserdate Generaland Public Licenseage|GNU LGPL]] 2005|01|28}}<ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/DownloadFAQ/ | title=Download | accessdate=2014-3-28FAQ}}</ref>
| programming language = [[C (programming language)|C]], [[C++]], [[Python (programming language)|Python]], [[C Sharp (programming language)|C#]], Other <ref>{{cite web | url=http://www.ohloh.net/p/ldtp | title=The Linux Desktop Testing Project OpenSource Project on Ohloh | accessdate=2014-3-28}}</ref>
| latest release version = 3.5.0
| operating system = [[Linux |Linux]][[OS X |OS X]], [[Microsoft Windows |Windows]]
| 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}}
| 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>
| genre = [[Automated testing]]
| statuslicense = Active[[GNU Lesser General Public License|GNU LGPL]]<ref>{{cite web | url=http://wwwldtp.ohlohfreedesktop.netorg/pwiki/Download/ldtp | title=The Linux Desktop Testing Project OpenSource Project on Ohloh | accessdate=2014-3-28Download}}</ref>
| website = {{URL|httphttps://ldtp.freedesktop.org/wiki/}}
| license = [[GNU Lesser General Public License|GNU LGPL]] <ref>{{cite web | url=http://ldtp.freedesktop.org/wiki/Download/ | title=Download | accessdate=2014-3-28}}</ref>
| website = {{URL|http://ldtp.freedesktop.org/wiki/}}
| working state = Current
}}
 
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).
The '''Linux Desktop Testing Project''' (LDTP) is a set of [[open source]] [[testing tool]]s that uses accessibility libraries to [[wikt:trigger|trigger]] applications' [[user interface]] [[GUI widget|widget]]s.
 
LDTP can test any accessibility-enabled [[GNOME]] application, [[Mozilla]], [[OpenOffice.org]], any Swing-based [[Java (programming language)|Java]] application and should be able to test, [[Qt toolkit(software)|Qt]] 54-based and [[KDE]] 54.x applications.<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/ |title=ldtp}}</ref>
LDTP is based on [[Assistive technology]].
 
LDTP is/was used by the following companies and organizations:<ref>{{cite web |url=http://ldtp.freedesktop.org/wiki/FAQ/ |title=FAQ}}</ref>
The LDTP can generate an "AppMap" by finding out what widgets applications use.{{Citation needed|date=April 2007}} The framework can also record test cases by watching what a user clicks.{{Citation needed|date=April 2007}} The LDTP framework then uses this "AppMap" and the recorded test cases to test applications. Using this tool, the GUI functionality of an application can be tested in Windows, Mac, Linux, Solaris, FreeBSD and embedded environment [[Linux GUI Application Testing]].{{Clarify|date=March 2009}}
 
* [[GNOME]]
LDTP can test any accessibility-enabled [[GNOME]] application, [[Mozilla]], [[OpenOffice.org]], any Swing-based [[Java (programming language)|Java]] application and should be able to test [[Qt toolkit|Qt]] 5-based [[KDE]] 5 applications.
* [[Mozilla]]
* [[Openoffice.org]]
* [[KDE]]
* [[Novell]]/[[SUSE S.A.|SuSE]]
* [[Access Systems Americas|Palm Source]]
* [[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>
The LDTP is released under the [[GPL]] and [[LGPL]].
 
== References History==
 
{{Reflist|30em}}
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==
 
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==
{{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 ==
{{Portal|Free and open-source software}}
* [[List of Linux GUI testing tools]]
* [[Desktop Linux]]
 
== References ==
{{Reflist|30em}}
 
==External links==
* [http{{Official website|https://ldtp.freedesktop.org Homepage]}}
* [https://web.archive.org/web/20090717224205/http://mago.ubuntu.com/FrontPage Mago] Ubuntu wrapper using LDTP
 
{{Linux}}
{{FOSS}}
 
[[Category:Freedesktop.org]]