difference between waitProperty & Checkproperty
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project
What is the difference between shared and local object repository?
1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins
What is quick test pro?
After the execution of a script how do u upload the results to Quality Center. Pls anyone explain in detail. It is very urgent._______Thanks a lot!!
how to load the *.vbs (or) test generating script in a new machine?
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
Suppose i have given 10 test cases all the test cases should be automated?
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND
Explain the difference between data driven testing and parameterization ?
1.how can we report the QTP test result in a different excel sheet 2.
What is the file extension of the code file in qtp?