can anyone answer this question ........in the DICTIONARY
OBJECT....i created the dictionary object in reserved object
ok....here i have some sets of values ...now i want to
retrieve the item i done too ok.......here my question is
now i saved the test and close the qtp tool ,again i opened
now i retrieve the same item in the dictionary is it
possible ????. friends when i try to do this i am getting
empty message box i mean no value will be retrieved
......ans me any one plz...



can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object..

Answer / abhishek

the dictionary object has not been initialized with the
key,value pairs so first you need to create the dictionary
object with the key value pairs then you.
When you want to share data between different actions in a
test, dictionary object can be used. To do this you should
create a reserved test object for the Dictionary object.
Here is a process to set up a reserved dictionary object.
[Source]

1.Open Window’s registry by opening a Run window and
entering regedit.
2.Navigate to HKEY_CURRENT_USERSoftwareMercury
InteractiveQuickTest ProfessionalMicTestReservedObjects.
3.Create a new key (folder) named GlobalDictionary by right-
clicking on the ReservedObjects key and selecting New ->
Key.
4.Under the new key, create a String value named ProgID by
right-clicking on GlobalDictionary and selecting New ->
String Value.
5.Assign “Scripting.Dictionary” to the new ProgID string
value by right-clicking on ProgID and selecting “Modify.”
6.If QTP window is already open you need to close and
restart it.
7.Now to check whether dictionary object was installed
successfully in registry, simple write GlobalDictionary.
(don’t forget the dot) and you should see a drop-down
containing all methods and properties associated with
dictionary object.

I hope trhis works.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

We have an application which generates links( more than thousand) based on the time stamp dynmically.Each link will download an xls file. we are supposed to click a particular link (which link to click will be obtained thru some buisiness logic).Now the issue is QTP is not recogniging the link(say Var1) though its properties showed mandatory fields text=xyz and html tag=A.I used following code to do this. Browser("ABC").Page("123").Link("text:=" &Var1,"html tag:=A").click, can any one suggest why this is not recognised by QTP though syntax is correct?(Is there any sync issue to be considered?Because on clicking the link it will take 5 mins to open that file)

3 Answers  


what is option explicit? what is the use of it?

9 Answers   Syntel,


what is the diffrence bw qtp architectute and qtp framework?

0 Answers  


What is Virtual Users?

1 Answers   Crea,


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  






What are advantages of test automation?

0 Answers  


If some requirements r changed during the testing process ,then how can u handle this in frame work?

1 Answers  


Do you have any knowledge about Business Processing Testing in QTP

1 Answers   TCS,


What is API

1 Answers  


What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


Got job with 3 years fake Experience

1 Answers   MNC,


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,


Categories