Forum Discussion

Raghukatta's avatar
Raghukatta
Contributor
8 years ago

Running tests in different locals

Hi,   I have a project with test scripts which will run in different locals (Ex:US,Germany etc).But few functionalities are there only in US.How can run those test scripts in US only.I want to add ...
  • Colin_McCrae's avatar
    Colin_McCrae
    8 years ago

    Or if you don't run your scripts with calls such as those outlined by tristaanogre above, then you'll probably need to modify your tests so that the first line of each one checks the locale (there should be an "e" at the end ;) ) and simply exits if the current locale is not one it's meant to run in.

     

    eg. (pseudocode)

     

    Start Test

     

    If (CurrentLocale <> "USA") Then:

    ---- Exit Test

    Else:

    ---- Do the test.

    End If

     

    Something along those lines. Simple enough.