I learned all the objects of my application in object
repository thru English Language. now i want to use same
object repository for other languages(French,Dutuch and
Chinese)

Answer Posted / a>s>

First I tried to use a non language specific way of
identifying the object, like the Window ID ( a unique number
, it is also only 1 primary identifier). This means that
each object is usable irrespective of language. This of
cause does not work for a window or a dialog so here I
create a Environment file for each language ( including one
for English, xml but simple) and then map the window O.R.
item to that environment variable ( a little complicated )
and then on execution I find out the current language and
use that as part of the Environment file to load like
EVF_English.xml so if it finds French then it loads the
EVF_French.xml environment file. Since its only windows I
have to worry about since you can not have a window ID for a
window then there are fewer vairables I have to have in the
Environment files. Oh and one more thing the Environment
variable can not have spaces in it so you can use
Environment("MainWindow") but not ("Main Window").

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


what is clean sweep?

1970


ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1625


What is checkpoint in qtp?

648


How can get count of list box?

741






How many number of actions possible in qtp?

693


How is test case write?

664


Explain the differences between table and db checkpoints?

668


Is text area check point supports for web applications?

614


tell me QTP standards ?plz

1608


whare exactly we have to use functions and sub routain

1927


Explain runtime dynamic settings?

2111


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

650


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1650


How to integrate the qualitycenter with qtp

1861