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

Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?

4 Answers  


where did you automate in your project?(please tell me example senarios)

2 Answers  


tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used

2 Answers   HCL,


How should I get results when I run scripts in a Batch mode

1 Answers   TCS,


In QTP, What is Global action and Local action?

0 Answers   Virtusa,






Hi all, In Every interview interview asking one question what type of challenges you have been faced in your project?

1 Answers  


how open two urls in one browser? plz urgent

9 Answers   Satyam,


How to make arguments optional in a function?

6 Answers   Liquid Crystal,


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

0 Answers  


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

1 Answers  


Hi, Can anyone help me with: How to select a value from combobox and check the checkbox and set the filter. I have to set a filter by selecting a value from dropdown. Also, im using UFT 11.5 so can anyone help me with code for UFT. Thanks Sreevidya

1 Answers  


in qtp wha t is synchronisatin pt,what is the maximam time out

3 Answers  


Categories