From Apache OpenOffice Wiki
Redirect page
|
|
(9 intermediate revisions by 5 users not shown) |
Line 1: |
Line 1: |
− | The testtool is the application used to automatically test OOo from the UI. Basically, it connects to the running office,
| + | #REDIRECT [[QA/test_automation_guide]] |
− | and sends artificial key and mouse event. For that to work, it normally needs a machine (or at least a display) on its own.
| + | |
− | | + | |
− | ==HowTo setup testtool==
| + | |
− | | + | |
− | Download the testtool application [http://qa.openoffice.org/qatesttool/ here] (you probably want the OOo2.0 binaries). Unpack the archive,
| + | |
− | start the <code>testtool</code> executable. Read up on how to setup [http://qa.openoffice.org/qatesttool/OOo_testtool.pdf here]. Please note that
| + | |
− | the base and HID directories on the profile tab page must point to a checked-out tree of the qa/qatesttool directory:
| + | |
− | | + | |
− | cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co qa/qatesttool
| + | |
− | | + | |
− | Change to the Generic tabpage in the Extras->Settings dialog, select OOoProgramDir as Area, and enter the path to an installed OOo instance in the
| + | |
− | Settings edit field (enter the full path to the place where the soffice/ooffice binary is located, usually something like <path>/program).
| + | |
− | | + | |
− | ==HowTo run tests==
| + | |
− | | + | |
− | Open one of the test scripts in the qa/qatesttool directory, e.g. <code>qa/qatesttool/framework/first/first.bas</code> or <code>qa/qatesttool/framework/first/topten.bas</code>. Press <code>F5</code> to run the test. Eventually, the office pointed to by the Generic settings
| + | |
− | page will open, and the test will be run (make sure the office keeps the focus, and best leave both keyboard and mouse alone during test run).
| + | |
Latest revision as of 12:08, 10 October 2012