Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "JWT Tests"
(→Aim) |
(→Resources and tools) |
||
Line 14: | Line 14: | ||
=== UI testing === | === UI testing === | ||
+ | ==== Open-Source :) ==== | ||
+ | * Eclipse TPTP | ||
+ | ** Eclipse Official Project | ||
+ | ** TODO: try it | ||
* [http://swtbot.sourceforge.net/wiki/Main_Page SWTBot] is a young tool that automates UI event and polls. | * [http://swtbot.sourceforge.net/wiki/Main_Page SWTBot] is a young tool that automates UI event and polls. | ||
− | ** Very young project | + | ** Very young project, does not seem mature enough |
* Abbot is an open-source project that is may be able to record UI event an to automatically run them. | * Abbot is an open-source project that is may be able to record UI event an to automatically run them. | ||
** [http://abbot.sourceforge.net/wiki/index.php/Abbot Abbot wiki page] | ** [http://abbot.sourceforge.net/wiki/index.php/Abbot Abbot wiki page] | ||
** This tool does not seem to be functional yet with SWT... | ** This tool does not seem to be functional yet with SWT... | ||
+ | |||
+ | ==== Commercial : ( ==== | ||
+ | * IBM Rational Tester | ||
+ | ** http://www-306.ibm.com/software/awdtools/tester/functional/index.html | ||
* Bretex proposes a tool that is able to *automatically* test SWT UI. This tool is named [http://www.guidancer.com|GUIDancer]. However, it is a commercial software. | * Bretex proposes a tool that is able to *automatically* test SWT UI. This tool is named [http://www.guidancer.com|GUIDancer]. However, it is a commercial software. | ||
** [http://www.eclipsecon.org/2008/sub/attachments/GUI_test_creation_before_application_availability_8211_GUIdancer_Tutorial.pdf Here ] is their presentation at EclipseCON2008. | ** [http://www.eclipsecon.org/2008/sub/attachments/GUI_test_creation_before_application_availability_8211_GUIdancer_Tutorial.pdf Here ] is their presentation at EclipseCON2008. | ||
** Since it is a commercial tool, it might be impossible to add this tool in JWT build. But maybe one day, it will be open-sourced... | ** Since it is a commercial tool, it might be impossible to add this tool in JWT build. But maybe one day, it will be open-sourced... |
Revision as of 06:11, 2 May 2008
Contents
Aim
The aim of this page is to list a set of tools and references that could be used to write tests in JWT, to put JWT into a continuous integration process.
Sources
Another document about Eclipse and tests: http://www.eclipsecon.org/2008/sub/attachments/TestDriven_Development_TDD_for_Eclipse_RCP.ppt
Resources and tools
Unit testing
- PDE JUnit. More informations in chapter 12 of Kent Beck and Erich Gamma's book: [Contributing to Eclipse: Contributing to Eclipse: Principles, Patterns, and Plug-In] (Translated in French at CampusPress edition)
- It is advised to use one test plugin for each plugin we want to test. This way, we have a better control on dependencies, and it facilitate the use of Test-Driven Development.
- JMock is often used to create mock files in unit testing process.
- Can we mock some SWT classes?
UI testing
Open-Source :)
- Eclipse TPTP
- Eclipse Official Project
- TODO: try it
- SWTBot is a young tool that automates UI event and polls.
- Very young project, does not seem mature enough
- Abbot is an open-source project that is may be able to record UI event an to automatically run them.
- Abbot wiki page
- This tool does not seem to be functional yet with SWT...
Commercial : (
- IBM Rational Tester
- Bretex proposes a tool that is able to *automatically* test SWT UI. This tool is named [1]. However, it is a commercial software.
- Here is their presentation at EclipseCON2008.
- Since it is a commercial tool, it might be impossible to add this tool in JWT build. But maybe one day, it will be open-sourced...