Forum Discussion

yuchang's avatar
yuchang
Contributor
11 years ago

Keyword test for multiple languages/browsers

Here is the steps that I would like to test:

Settings: different browsers with different languages, for example: IE/Japanes; English, FireFox/English, and Chrome/Arabic.



1. Type URL to address to a link which will be different for each language.

    - how to find what languae of the browser? Please provideexamples of keyword test and JScript.

2. After landing the request URL, accorrding to the language of the browser, type in the localized string for the account and passwords to login an account.

   - how to specify the localized strings for typing? Using parameters or variables? Please provideexamples of keyword test and JScript.

3. How to name the screenshot to insert a shot name of the language for example change 123.jpg to 123EN.jpg?

 

2 Replies

  • I found the way to find the language of the OS, however still need to know how to find the language of the browser.



    function getHostLanguage(){

      var result = Storages.Registry("Control Panel\\International\\", HKEY_CURRENT_USER);

      var lanaguage = result.GetOption("sLanguage",0);

      Log.Message(language);//show me current language

      return language;

    }