Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?

Answers were Sorted based on User's Feedback



Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logica..

Answer / lok nath

actually we ll use the descriptive programing because we know the logical name of the object so. suppose i am having web button and i know logical name then what we ll do.
set odsec = description .create
odsec.Add "micclass","WebButton"

Set str name=Browser("tittle:=*"). page("tittle:=*").childobject(odsec).GetRoProperty(name)
print str name

Is This Answer Correct ?    0 Yes 1 No

Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logica..

Answer / cnu_thatavarthi

If without using object repository and object spy for identify the object then first i will record the test script(application)

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More VB Script Interview Questions

How can you create an object in vbscript?

0 Answers  


1)How to test whether items in a weblist are in alphabetical order or not?

1 Answers   TCS,


write a vb script to display 3*3 matrix

1 Answers  


What is vbscript?

0 Answers  


Write a Script for ATM in QTP

0 Answers  






What are the environments supported by vbscript language?

0 Answers  


Explain the filter expression?

0 Answers  


How to create MSAcess table foriegn key

1 Answers  


We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below

0 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


Mention how to access array data?

0 Answers  


When to use function procedures and what are its characteristics?

0 Answers  


Categories