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

Can we Script any test case with out having Object repository? or Using Object Repository is a must

3 Answers   Crea,


By default Action1 runs first in QTP. Is it possible to start the run with Action2?

9 Answers   Virtusa,


hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take?

1 Answers   ADP,


Where are the snapshots stored?

2 Answers  


what is meant by Utility object and utility functions?can u all pls explain these clearly.

1 Answers  


What r the diffrernt file extentions in QTP?

3 Answers  


VB - Script Training in MUMBAI.

1 Answers  


What are the key points to create a framework in QTP for oracle forms?

0 Answers  


how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.

3 Answers  


Explain about the Test Fusion Report of QTP ?

1 Answers   Ordain Solutions,


1) after inserting the check point how to change the expected value that was captured while inserting the check point

2 Answers   TCS,


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

0 Answers  


Categories