| || |
Automating SAPGUITree for different languages
I am automating SAP application ECC6.0 with QTP 9.5 and there is need in my project that the script created for Locale EN should work for another locale JPY.
The requirement is to say activate the treenode
SAPGuiSession("Session").SAPGuiWindow("Display Document").SAPGuiTree("TableTreeControl").Activate Item "RegExp:=Sales I/F.*;RegExp:=Sales I/F.*;RegExp:=Accounting.*","#2".
Now the same code should work with different langauge and it will not as the locale is different. I tried using index for the path but couldnt succeed much.
Any help in this matter?
Re: Automating SAPGUITree for different languages
Check with below Text Recognition Mechanism.
I can't assure you & but you could give a try.
Text recognition mechanism provided here applies to QuickTest Professional 9.2 or higher.
QuickTest Professional supports single byte languages.
QuickTest Professional supports most popular single byte languages, such as French, German, Danish, Hebrew, Portugues, Spanish, Dutch, Finnish, Italian, Swedish, and Norwegian.
Modify the supported Languages value for the text recognition registry key
To indicate which language dictionaries QuickTest Professional's text recognition mechanism should use, update the supported language list in the registry.
1. Open the registry editor.
2. Navigate to HKEY_CURRENT_USER\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest\OcrEngine.
3. Right-click on the supportedLanguages value, and select "Modify"
4. Set the value data to the language or languages to be supported. Use a comma to separate the languages.
Combined hieroglyphic languages (CJK - Chinese, Japanese, or Korean) and non-hieroglyphic languages are not supported. For example: Japanese
5. Click <OK>.
6. Restart QuickTest Professional.