Ask a Question

Run TestComplete tests on French Locale (OS and Application under Test having French Locale)

SOLVED
Mrunal
Contributor

Run TestComplete tests on French Locale (OS and Application under Test having French Locale)

Hello,

 

I am running my testcomplete tests against applition which is in English Locale. I want to run same set of tests on application with French Locale (Language). Operating system is also in French Locale. Do I have to change any settings?


Thanks in Advance.

 

----
Mrunal
8 REPLIES 8
m_essaid
Valued Contributor

Hi,

I'm in France, all the environment and tested app is in french.

So I don't think it is a problem.

Do you think at something in particular ?

Mehdi

Hello,

 

I am trying to run test on Tested App with French Locale which was created on Tested App (having English Locale), I  am getting error as "Object does not exists". As my Next butoon has WCaption as "next" it gives me error as "Object does not exists" beacause In French Locale we have transalations for Next as "Suivant".

 

All objects stored has Wcaption in English Locale in my suite. I am not able to run same set of tests on Tested App with French Locale.

 

So should I create different suite for French Tested App? or Is there any settings in TestComplete to run same set of tests on different tested apps with different languages?

----
Mrunal

If it's just a matter of labels being different, you could use conditional name mapping:

http://support.smartbear.com/viewarticle/55608

 

In your example, you could set the name mapping to be 

WndCaption = "Next" OR WndCaption = "Suivant"


Marsha_R
[Community Hero]
____
[Community Heroes] 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. Posts made by [Community Heroes]
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.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Hi Marsha,

 

I will try with conditional name mapping and will let you know.

 

Thanks.

----
Mrunal

Hi,

 

Alternatively to the mentioned conditional NameMapping, you may also consider NameMapping Configurations (http://support.smartbear.com/viewarticle/55608).

 

One more approach that may be considered but requires extra coding (it was mentioned ages ago so I don't have a link, but the idea remains) is like this:

Assuming that you are using NameMapping (if not or not always, just adopt the idea to the .FindChild()/.FindAll() methods) :

-- Instead of using hardcoded identification parameters (like 'Next' value), make your NameMapping to use the project variables (http://support.smartbear.com/viewarticle/57310/);

-- Store the values of the identification properties ('Next', etc.) in the external (resource) file, database, etc.;

-- Get the required property when needed and assign it to the project variable that is used in the NameMapping;

-- Check if the given namemapped object exists.

 

The disadvantage of this approach is the required extra coding.

Its advantage is that you can adopt your namemapping 'on the fly'. The guy who originally described this his approach used it to check tested product's localization without any additional efforts. I.e. when he had to test, say, French version of the software, he looked for the identification property value in the French section of the resources file. If the value was not found, the warning was posted to the test log. Then he tried to search for the required object. If the object was not found, he used the value of the identification property from the English section and tried to search for the object again. If the object was found, then he used it, but posted a warning to the log that some object (e.g. Button('Next') ) is not localized.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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. Posts made by [Community Heroes]
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.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

Hi Alex, Thanks for detailed explanation. I will surely go through name mapping configuration links and will also try to execute 'extra coding' method 🙂 Hope this will solve my issues. Will try and let you know.
----
Mrunal

Hi Alex, Thanks for your solution. I am able to run same set of tests on French Locale as well. Thanks all for your kind help.
----
Mrunal

Hi MSL,

 

Great to hear that the problem is solved and thank you for the update!

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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. Posts made by [Community Heroes]
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.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: