Running same script on several languages and cultures
Hi,
As far as i can tell, when i'm recording a test and clicking an item on the GUI - it is saved in the TestComplete as the string that as it represented to the user (for example: Tab Action) and not in the inner prior-to-translation name ("Button_Tab_Action_List").
That means, that if my GUI supports several languages (i.e. the back name is the same, and the GUI is translating it from that name to the selected language) - i'll have to record it separately for each one, so the front name will be detected.
Is there a common practice to bypass those name?
also - would i have the same issue with the OS language? (e.g. does "new folder" is saved as "new folder" even when the language is Hebrew for example and it is displayed as "תיקיה חדשה")
Thanks,
Nadav.
Hi Nadav,
The recommended practice is to spend some time before recording and NameMap required UI elements manually. This will provide you with:
a) Objects tree that is more convenient for you; and
b) You may be able to map objects by stable language-agnostic internal identifiers.
You may consider NameMapping Templates (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/templates/index.html) to make things to be more convenient for you.
If you are forced to deal with localizable strings, you may implement something like resources table (used in the languages like C/C++/Delphi/etc.) and use variables instead of hardcoded strings for objects recognition (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/modifying/identification-properties.html).