Howcan you differentiate between Exist statement, Exist
property, and Exist method??? How they used???

Answer Posted / tvs ramakrishna chowdary

exist method
-------------
object heirarchy.exists[time in secons]

'it is mainly used for checking whether the object is
existing or not if exists other wise it will make qtp to
wait till the object exist until default time.if within the
default time(20,000ms or 20 sec) object exists it returns a
value "true" else it returns a value "false"...

wait prop
----------------------

object heirarchy.waitproperty "propery name","property
value",[extra time in milli seconds]


it is used for making the tool to wait based on the objects
properties values or up to the maximum time menctioned as a
parameter


there is no "exists" property in QTP but exist method is
there..if we make use exists method in a qtp script
statement then it is generally called as exists statement

ex1:object heirarchy.exists[10]'here qtp wait 30 sens 20
(default secs+10 secns)

ex2:oh.waitproperty "property name","property value",10,000

here 10,000 is in milli seconds.......

total time is :20,000(default)+10,000(menctioned time)
=30,000 milli secons...

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please post the interview questions for QA position in FACTSET

3958


How to interact tool & application build in QTP?

1467


Hi,All How to create a link in excel sheet using qtp

3007


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1542


How to export quicktest professional (qtp) results to an .xls file?

604






Can you list some technologies that support qtp?

558


I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

1483


What are the types of data tables in qtp?

587


What is qtpro? What is quick test pro?

564


Can I change properties of a test object?

635


How to save your test using quicktest professional (qtp)?

603


What are the Application Functions available in QTP?

1478


Can we run multiple QTP scripts one after the other without manual intervention? How?

602


What is post recovery scenario?

1657


What is method name to compare two XML files.

1541