difference between waitProperty & Checkproperty

Answers were Sorted based on User's Feedback



difference between waitProperty & Checkproperty..

Answer / uday

As per the name, waitProperty waits till the condition met
or the maximum time specified.
For ex:B().p().webbutton().waitproperty "Enabled",true,30000
So here QTP waits till the button is enabled or waits for
max of 30 Secs and if the button is not enabled, then the
step fails.

Where as CheckProperty is to verity whether the value is
matched or not and returns a Boolean value
Ex:
B().p().webbutton().CheckProperty "Enabled",true,30000
Here QTP verifies whether the button is enabled or not and
waits for 30 sec and returns true if the button enable else
return false.

Thanks,
Uday
http://qtpftvideos.blogspot.com/

Is This Answer Correct ?    5 Yes 1 No

difference between waitProperty & Checkproperty..

Answer / shikha

CheckProperty: Checks whether the specified object property achieves the specified value within the specified timeout.

If the expected and actual values do not match, an error is reported and the test or component status is changed to failed.

WaitProperty: will not fail your test but is use for synchroniztion
For test run synchronization, or whenever you do not want to fail the test if the expected and actual values do not match, use the WaitProperty method.

Is This Answer Correct ?    2 Yes 0 No

difference between waitProperty & Checkproperty..

Answer / bapi

so check property Returns Result in Results Page and Wait property never returns Only execute the step?

Is This Answer Correct ?    1 Yes 1 No

difference between waitProperty & Checkproperty..

Answer / kiran patil

Boths working are different.
1) check property is checking the condition ( is it or not ).and get the result in the form of boolean value( true or false ) or. ( 0's or 1's ).

2)wait property have a limit value ( like=1 to 10 ) 10 is a wait value.
When loop is going on 1 toward 10 then ok but, when the 10 value is cross that time process is in wait condition or stop conditions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script

2 Answers  


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

0 Answers  


What are the benefits of qtp?

0 Answers  


How to remove the associated function library?

0 Answers  


How to find local host name using QTP?

6 Answers  






what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

0 Answers   EpuraTech,


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

0 Answers   Wipro,


What is the standard timing delay for web based application in qtp?

0 Answers  


we have a link in a website or webtable How can we record link in that table or site? link is not static we don't know exact location of that link? how ? if u know pls give reply with script also?

6 Answers   Cognizant, Covansys,


What the differences are and best practical application of Object Repository?

0 Answers  


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

0 Answers  


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  


Categories