Forum Discussion

VivekJain's avatar
VivekJain
New Contributor
9 years ago

Locale constant LOCALE_SNAME is not defined in TestComplete environment

Hello,

 

For our software testing, we need to use LOCALE_SNAME constant. But this constant is not defined in TestComplete environment.

While other locale constants like LOCALE_SCURRENCY and LOCALE_SDECIMAL etc. are defined in TestComplete environment.

Any help would be appreciated.

 

Thanks,
Vivek

  • HKosova's avatar
    HKosova
    9 years ago

    You can define the LOCALE_SNAME constant manually:

    // JScript
    var
    LOCALE_SNAME = 92; // 0x0000005c
  • NisHera's avatar
    NisHera
    Valued Contributor

    Hi,

    According to this you can use "aqEnvironment.GetLocaleInfo(LocaleType)" to get any local constant.

    and it's not TC but TC calling windows method.

    It can get any of these Constance (including LOCALE_SNAME). 

    • VivekJain's avatar
      VivekJain
      New Contributor

      Hi,

       

      Thanks for quick reply.

      This seems like LOCALE_SNAME did not work with TestComplete10. But witth TestComplete11, LOCALE_SNAME worked correctly.

       

      Thanks again,

      Vivek

      • HKosova's avatar
        HKosova
        SmartBear Alumni (Retired)

        You can define the LOCALE_SNAME constant manually:

        // JScript
        var
        LOCALE_SNAME = 92; // 0x0000005c