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

Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1773


what is keyword driven testing in qtp?n how is it useful?

1493


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1427


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

1019


what is Property......End Property loop? how to write sript for it in QTP

1900






write a script to verify the image path(src property) of the images which are in web pages.

1811


What are the various automation frameworks available in qtp?

513


How to get the particular property value?

614


Explain Descriptive Programming Types with Examples?

927


What is the difference between per-action and shared?

594


Explain the concept of object repository and how QTP recognizes objects?

555


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625


how do u plan test automation?

1447


When to use descriptive programming?

595


Where we use data driver in qtp?

613