HowTo localize qatesttool environment

From Apache OpenOffice Wiki
Revision as of 12:08, 23 January 2007 by Aschnabel (Talk | contribs)

Jump to: navigation, search


For testing of OOo functionality we are using the QATesttool. Although functionality is localization independend in most cases, the testtool environment (the scripts that actually execute the tests) need some basic information about the current localization. These are for instance:

  • information about existance of a localization (that vi_VI is a correct localization for OOo)
  • some strings to pick a string from a localized stringlist (e.g. the name of the file filter for Word 97 files)
  • default settings for localizations (e.g. CTL support is enabled per default for asian(?) languages but nor for western languages)

So - if you like to run the automated tests for your localized builds (and you really should do so) you need to add certain information to the testtool environment.

This page is supposed to collect information about the files you need to change or add.

Provide initial support for a localization

To provide initial support for a localization, you need to tell the testtool environment, that this localization exists and the string for the OOo file filter names. This will enable you to run the first and topten tests without false errors / warnings. ( See issue 73401 as example.)


global/system/inc/iniinfo.inc

  • this file has some basic functions to identify your localization and assigns an internal ID (a integer value that is used within the scripts)
  • look at http://l10n.openoffice.org/languages.html see, what code and MS language ID to use for your localization
    edit iniinfo.inc - you will see some case statements in sub GetLanguageInformation, function ConvertLanguage2, function ConvertLanguage, function ConvertCodeToLanguage and function GetLanguageText. Add new lines of code for your localization.


qatesttool/framework/first/input/filter.txt

  • This file defines the localized string for "All Formats" in the file open dialog
  • Add a new line with the correct string for your localization


qatesttool/global/input/filters/current/OpenOffice.org/filter??.txt

  • This file defines filter names for current OOo default file formats. The ?? in the filename is the code of your localization (e.g. filter84.txt for vi_VI)
  • copy any existing file (e.g. filter1.txt) and change the strings for your localization


qatesttool/global/input/filters/<version>/OpenOffice.org/filter??.txt

  • Filter names for default file types of older OOo / SO versions.
    <version> needs to be replaced by the build-ID of the corresponding codeline (e.g. 569 for StarOffice 5, 645 for OOo 1.1, 680 for OOo 2 )
  • create filter??.txt files in all of the subdirectories and enter the correctly localized strings. Minimum is to create the files in 569 subdir. (These are used to test "alien format" warnings)


qatesttool/framework/first/inc/topten.inc

  • there is localization dependend code in sub CutCopyPaste
  • If your localization does 'not' use CTRL+A to "Select all", you need to define the kexboard shortcut riht at the beginning of this sub

Support for further tests

TBD

Personal tools