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

Answers were Sorted based on User's Feedback



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

Answer / prasanna

As far as i know there is no exist stmt and exist method
there is only exist propery which we can use with the any
test object to check for its existence in the application
within a specified time

Is This Answer Correct ?    12 Yes 2 No

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

Answer / 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

More QTP Interview Questions

What is Regular Expressions?

2 Answers  


What do you mean by iteration?

0 Answers  


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


how to get no.of non empty rows in a excel sheet through vb-script

2 Answers   HP,


how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP"

5 Answers   IBM,






Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

0 Answers  


How to change the run-time value of a property for an object in QTP?

4 Answers  


how to add run-time parameter to a datasheet?

1 Answers   Mphasis, Ordain Solutions,


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


How to work with multiple browsers when opened in the window, write the script for it

2 Answers   Verizon,


Sql questions to find second max salary and how to use joins

0 Answers   Deloitte,


Tell me about your project? please help me how to tell about insurance project

0 Answers   Cap Gemini,


Categories