Forum Discussion

Mrunal's avatar
Mrunal
Contributor
9 years ago
Solved

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.

 

  • 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.

8 Replies

  • m_essaid's avatar
    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

    • Mrunal's avatar
      Mrunal
      Contributor

      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?