Difference between revisions of "RU/qa/vcltesttool/localisation tools"

From Apache OpenOffice Wiki
< RU‎ | qa‎ | vcltesttool
Jump to: navigation, search
(переводим...)
Line 58: Line 58:
 
Например: диалог '''OOo Writer → View → Zoom''' будет сохранён в виде файла '''10000.bmp''' (Это особенность теста диалогов.)
 
Например: диалог '''OOo Writer → View → Zoom''' будет сохранён в виде файла '''10000.bmp''' (Это особенность теста диалогов.)
  
Во-первых, вам необходимо иметь рабочее окружение VCL TestTool. For further information read the guide 'VCL TestTool First Use Guide'
+
Во-первых, вам необходимо иметь рабочее окружение VCL TestTool. За дополнительной помощью обращайтесь к Руководству по первому использованию VCL TestTool ('VCL TestTool First Use Guide').
  
Add the generic TestTool configuration item: ''Screenshot''(As described in the chapter: How to add an 'Generic' TestTool configuration item)
+
Добавьте основной (generic) элемент конфигурации TestTool: ''Скриншот'' (''Screenshot'') (как описано в главе "Как добавить 'Основной' ('Generic') элемент конфигурации TestTool).
  
  Values:  
+
  Значения:  
  '''True''' / '''1''' : Enable screenshots
+
  '''True''' / '''1''' : Включить скриншоты
  '''False''' / '''0''' : Disable screenshots
+
  '''False''' / '''0''' : Отключить скриншоты
  
Verify that the setting works: Take the script''qa/qatesttool/writer/update/w_updt.bas ''and take a look on the result header: If your testrun is enabled for screenshots, a line is printed in the header of the result file:
+
Проверьте работоспособность настройки: запустите скрипт ''qa/qatesttool/writer/update/w_updt.bas '' и посмотрите на заголовок итогового вывода. Если у Вас включены скриншоты, то в заголовке итогового файла появится строка:
  
  <nowiki>** </nowiki>There will be screenshots taken from every dialog
+
  <nowiki>** </nowiki>Скриншоты будут сняты с каждого диалогового окна (There will be screenshots taken from every dialog)
  
To get easy almost every dialog, run:
+
Чтобы получить почти все диалоги, запустите:
 
''qa/qatesttool/writer/update/w_updt.bas''
 
''qa/qatesttool/writer/update/w_updt.bas''
  
To get more dialogs, run:
+
Чтобы получить больше диалогов, запустите:
 
''qa/qatesttool/calc/update/c_updt.bas''
 
''qa/qatesttool/calc/update/c_updt.bas''
 
''qa/qatesttool/graphics/update/i_updt.bas''
 
''qa/qatesttool/graphics/update/i_updt.bas''
Line 81: Line 81:
 
''qa/qatesttool/math/update/m_updt.bas''
 
''qa/qatesttool/math/update/m_updt.bas''
  
To get still some more, run:
+
А чтобы ещё немного больше:
 
''qa/qatesttool/framework/update/f_updt_*.bas''
 
''qa/qatesttool/framework/update/f_updt_*.bas''
  
The screenshots are saved in the user config directory:
+
Скриншоты будут сохранены в каталоге конфигурации пользователя:
 
''user/work/screenshots + language id number + /application name/''
 
''user/work/screenshots + language id number + /application name/''
  
The file name is the HelpID of the dialog + '.bmp'
+
Имя файла - идентификатор диалога (HelpID) + '.bmp'
If there are taken more than one shot of the dialog, then the file name is HelpID + _i + .bmp, with i like 1,2,3,...
+
Если для диалога будет сделано больше одного скриншота, именя файлов будут иметь вид HelpID + _i + .bmp, где i - 1,2,3,...
  
 
==Problems / Discussion==
 
==Problems / Discussion==

Revision as of 18:00, 14 April 2010

Template:RU/documentation/beingedited Template:RU/documentation/helpneeded



Book.png
← Предыдущая страница [[{{{NextPage}}}|

Следующая страница →]]


Что установить на вкладке 'Generic' в конфигурации TestTool

В качестве примера: Screenshot

Запись всевозможных скриншотов каждого диалога, если тест это поддерживает.

Вы можете настроить TestTool через меню Extra → Settings → Generic, или отредактировать конфигурационный файл Template:Documentation/Linux Template:Documentation/Windows

Tt generic.png
Пункт Описание
Area Введите имя для нового раздела. Например: Screenshot
New (Area) После нажатия на эту кнопку, раздел будет активирован.
Setting Введите обязательный параметр. Например:
  • 1 - создавать скриншоты
  • 0 - не создавать скриншоты
New (Setting) Будет создана при нажатии.

Конфгурационный файл Template:Documentation/Linux Template:Documentation/Windows будет выглядеть так:

[Screenshot]
Current=1
All=1
Documentation caution.png Рекомендуем закрыть TestTool во время редактирования конфигурационного файла.

Как создавать скриншоты диалогов

Вы получите изображения каждого диалога OpenOffice.org в Windows Bitmap (.bmp) файле.

Например: диалог OOo Writer → View → Zoom будет сохранён в виде файла 10000.bmp (Это особенность теста диалогов.)

Во-первых, вам необходимо иметь рабочее окружение VCL TestTool. За дополнительной помощью обращайтесь к Руководству по первому использованию VCL TestTool ('VCL TestTool First Use Guide').

Добавьте основной (generic) элемент конфигурации TestTool: Скриншот (Screenshot) (как описано в главе "Как добавить 'Основной' ('Generic') элемент конфигурации TestTool).

Значения: 
True / 1 : Включить скриншоты
False / 0 : Отключить скриншоты

Проверьте работоспособность настройки: запустите скрипт qa/qatesttool/writer/update/w_updt.bas и посмотрите на заголовок итогового вывода. Если у Вас включены скриншоты, то в заголовке итогового файла появится строка:

** Скриншоты будут сняты с каждого диалогового окна (There will be screenshots taken from every dialog)

Чтобы получить почти все диалоги, запустите: qa/qatesttool/writer/update/w_updt.bas

Чтобы получить больше диалогов, запустите: qa/qatesttool/calc/update/c_updt.bas qa/qatesttool/graphics/update/i_updt.bas qa/qatesttool/base/update/b_updt.bas qa/qatesttool/graphics/update/i_updt_1.bas qa/qatesttool/graphics/update/i_updt_2.bas qa/qatesttool/math/update/m_updt.bas

А чтобы ещё немного больше: qa/qatesttool/framework/update/f_updt_*.bas

Скриншоты будут сохранены в каталоге конфигурации пользователя: user/work/screenshots + language id number + /application name/

Имя файла - идентификатор диалога (HelpID) + '.bmp' Если для диалога будет сделано больше одного скриншота, именя файлов будут иметь вид HelpID + _i + .bmp, где i - 1,2,3,...

Problems / Discussion

You get only screenshots of dialogs, which are called by the function DialogTest() from the file qa/qatestool/global/tools/inc/t_tools1.inc.

This is the case and reason for all update tests.

If you run more tests than w_updt.bas you might get additional screenshots from the same dialog in every application.

The golden rule, to leave the machine alone, which runs TestTool tests, has to be followed here.

If something covers the dialog, which should get a screenshot, the covering is also shown on the screenshot.

Some pictures are just 'snow'; This issue is solved right now; If you still have some pictures that show just 'snow' please file an issue to the qa project, subcategorie testscripts.

On MacOS X exists the issue, that there are almost all pictures black; i63620.

The pictures are saved in BMP Format. There exists the suggestion to choose a compressed file format: Issue 63621.

Translation In Place

The TestTool is a tool used for the automated GUI testing of OpenOffice.org. It can simulate a normal office user and automatically check nearly all it's functionality. To help translation teams to verify their work a special mode has been added to the TestTool: Translation in Place Mode. A special variable stops each TestTool testscript on dialogs (‚ÜígDasNicht in global/system/inc/gvariable.inc), opens an additional window where strings in the user interface (UI) can be verified (strings, inappropriate expressions, doubled hotkeys/shortcuts, ...) and changed! After all dialogues of a testcase have been verified, the dialogue will be closed and opened again when the next testcase opens a dialogue. All changes will be written in a logfile which can be included in the development framework of the office.

In order for us to implement your feedback, it is important that your corrections or suggestions always refer to the screenshot of the dialog manually made. In the Translation In Place dialog you can make the necessary corrections or suggestions in the field Translation and in the field Comment you can add the reference to the screenshot.

Using the Translation In Place Mode

[[Image:]]When you start a TestTool script (with Program / Start or F5) and an office dialog opens wait until the Translation In Place appears.

The script will be paused until you press the Next-button. In this way you can check the whole dialog.

If you want to make changes click on the Select-button to select the entry you want to change. The entry selected will appear automatically in the Translation-field. Now you can edit it. You will see your corrections in the office dialog while you're editing it. This makes it possible to check the length of the entry you're typing.

Immediately below the Translation-field, you' see the original string you've selected before. In the Comment-field it is important that you write the name of the screenshot and a comment on the change you suggest.

In order for us to receiving your corrections and suggestions, we need screen shots of those dialogs. The screen shots of dialogs you want to change must also contain the Translation In Place-dialog. Only in this way it is guaranteed that we have no encoding problems. Both the changes and comments are also saved in trans_output.txt. It's a text file that you can find in your office root path. If you just save the corrections without making a screen shot of the dialogs (Office dialog together the Translation In Place dialog) it will be nearly impossible for us to implement your suggestions.

With Accept-button your changes as well as your comment will be saved in the trans_output.txt file. If you want to make more that one correction in one dialog, click Select-button otherwise click Next-button.

For the linguistic testing we also recommend you to select an entry on each dialog although you don't want to make any changes. In this way, you activate a function which allows to see (highlighted in pink) if there are doubled accelerators (shortcuts). Also in this case it is important to receive your corrections.

When the Translation In Place dialog closes and in the Testool task (on the task bar or in the title bar of the TestTool) RUN disappears, this means that the script has been ended.

The menu item verification test

tbd

Known Problems

  • TestTool should start the office on it's own! (To enable the Automated GUI Testing a commandline parameter is used and the TestTool application will use it to start. If there is another instance of the office the testscripts won't start!)
  • Only one office should be installed on one machine (or one user account) when you want to run a script.
  • The scripts will nearly open all dialogs in the office. Since the TestTool has not been created to stop at each dialog, there may be problems in getting the right focus on a dialog. As a consequence the testcase causes errors. It will not find the next dialog and it interrupts the test case.
  • Usually, this happens in case of tab-page dialogs. After clicking Next-button in the Translation In Place-dialog you'll need to click on the next tab page of the office dialog to set the focus on it. Then the script will then run correctly.
  • You can't test network-installations. Please make only a standard (FAT) installation.
  • The scripts stop only at dialogs not at message boxes.
  • You can't close the Translation In Place-dialog. Only after you cancelled the script in the TestTool (with Program / Cancel) you can close the dialog.
  • TestTool can't run when OpenOffice.org is installed in directories with non ASCII or special characters (eg. √§√∂√º√©√°√≥ etc.) - BASIC-problems. Please install the office only in directories with ASCII characters.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools