cancel
Showing results for 
Search instead for 
Did you mean: 

Running same script on several languages and cultures

SOLVED
Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Running same script on several languages and cultures

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/temp...) 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/mana...).

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
1 REPLY 1
Community Hero

Re: Running same script on several languages and cultures

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/temp...) 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/mana...).

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Top Kudoed Authors