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 conditions for the test scripts depending on the local.I have a project variable for identifying a local I need to use that tun specific test scripts.
Thanks in advance
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.