请输入您要查询的百科知识:

 

词条 Linux Desktop Testing Project
释义

  1. History

  2. Example

  3. Diagram of how LDTP works

  4. See also

  5. References

  6. External links

{{Infobox software
| name = Linux Desktop Testing Project
| developer = Emily Chen, Nagappan A., et. al.[1]
| released = {{Start date and age|2005|1|28|df}}[2]
| latest release version = 3.5.0
| latest release date = {{Start date and age|2013|05|01}}[3]
| repo = {{URL|https://github.com/ldtp/ldtp2}}
| programming language = Python, C#[4]
| operating system = Linux, macOS, Windows [5]
| genre = Automated testing
| license = GNU LGPL [6]
| website = {{URL|https://ldtp.freedesktop.org}}
}}

The Linux Desktop Testing Project (LDTP) is an open-source testing tool that uses computer assistive technology[7] to automate GUIs.[8] The GUI functionality of an application can be tested in Windows, Mac, Linux, Solaris, FreeBSD and embedded environments.[9] The Mac OS X version is called PyATOM,[10] and the Windows version is Cobra.[11]

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/organizations:[13]

  • GNOME
  • Mozilla
  • Openoffice.org
  • KDE
  • Novell/SuSE
  • Palm Source
  • VMware

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

The LDTP is released under the LGPL.

History

LDTP version 0.1.0 was released in January 2005 and then showcased and discussed at 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:

  1. !/usr/bin/python
  1. The standard import stuff.

from ldtp import *

from ooldtp import context as locate

from time import sleep

  1. Here we open the app.

launchapp('gedit')

  1. Now we find it and make sure it is open.

gedit_win = locate('*gedit')

gedit_win.waittillguiexist()

  1. Now we type into gedit.

text_field = gedit_win.getchild('txt1')

text_field.enterstring("G'Day mate!")

  1. Save a picture to prove we did it.

imagecapture('*gedit', '/tmp/foo.png')

  1. Quit gedit.

quit = gedit_win.getchild('mnuQuit')

quit.selectmenuitem()

  1. Close without saving.

dont_save = locate('Question')

dont_save.waittillguiexist()

button = dont_save.getchild('btnClosewithoutSaving')

button.click()

  1. Wait until gedit is gone.

gedit_win.waittillguinotexist()

Diagram of how LDTP works

{{Wide image|Ldtp-workings.svg|700px|How LDTP works[20]|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

1. ^{{cite web|title=Team Members|url=https://ldtp.freedesktop.org/wiki/TeamMembers/|website=ldtp.freedesktop.org|accessdate=25 December 2017}}
2. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/FAQ/ | title=FAQ}}
3. ^[https://github.com/ldtp/ldtp2/releases LDTP2 Releases] - Github
4. ^{{cite web|title=Linux Desktop Testing Project|url=https://github.com/ldtp/ldtp2|website=dtp/ldtp2|accessdate=25 December 2017 |via=GitHub}}
5. ^{{cite web | url=https://pypi.python.org/pypi/ldtp | title=ldtp 3.5.0 : Python Pakage Index}}
6. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/Download/ | title=Download}}
7. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}
8. ^{{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}}
9. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}
10. ^{{cite web | url=https://github.com/pyatom/pyatom | title=pyatom/pyatom - GitHub}}
11. ^{{cite web | url=https://github.com/ldtp/cobra | title=ldtp/cobra - GitHub}}
12. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/ | title=ldtp}}
13. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/FAQ/ | title=FAQ}}
14. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/Executing_scripts_remotely/ | title=Executing scripts remotely}}
15. ^{{cite web | url=https://www.youtube.com/watch?v=ojAN8MktFHE | title=How to control GNOME apps remotely using LDTP - YouTube}}
16. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC/ | title=SoC}}
17. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC06/ | title=SoC06}}
18. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC/ | title=SoC}}
19. ^{{cite web | url=http://ldtp.freedesktop.org/wiki/SoC07/ | title=SoC07}}
20. ^{{cite web | url=http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf | title=ldtp-tutorial}}

External links

  • {{Official website|https://ldtp.freedesktop.org}}
  • [https://web.archive.org/web/20090717224205/http://mago.ubuntu.com/FrontPage Mago] Ubuntu wrapper using LDTP
{{Linux}}{{FOSS}}

2 : Freedesktop.org|Free software programmed in Python

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 20:40:30