Skip to main content

SeeTest Client - SetLanguagePropertiesFile

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Description

Sets the Language properties file to be used during the script.

Parameters

  • Properties File: Full path to the language properties file which will be referenced during the execution of the test.

Example

Scenario: We will run the same test on the amazon application on English and French languages.

The script will click on the "Shop by Department" button in the application's home page.

Without this feature, this is how the test should look like:

In this case, when testing the application in the French language, we'll need to change the test for every element identified by it's text property.

**

**

Step 1: Use the automatic Language Properties Files feature to create files for the different languages (SeeTestAutomation - Using Language Properties Files).

For example, for the properties file in French, 'Shop by\nDepartment' is 'Choisir une\nBoutique'.

Both will be recognized by the same key rs_shop_by_department_text

Step 2: Add the "SetLanguagePropertiesFile" command to the test script and enter the full path of the language property file you have created.

Step 3: Change the value of the Element parameter to the key in the properties file. 

whenever a parameter will contain the pattern ${key}, SeeTest will try to find the substring value for that key.

If no substitution key is found, the value will not be replaced.

**

**

Step 4: Now, to test the french version, we only need to change the properties file to fr.properties

       Now the test will work on French and English the same.

When switching between languages, only need to change the properties file.