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

When The Low Level Recording is Used in QTP

17 Answers  


Explain different types of checkpoints?

0 Answers  


How to execute the test cases using QTP. i.e What is the use of QTP while execution

2 Answers  


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

0 Answers   HCL,


what is web application and client server application.is there any difference ?

1 Answers   Wells Fargo,






When using descriptive programming?

0 Answers  


How is UFT 11.5 version different from UFT 12.0?

0 Answers  


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

0 Answers  


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">", Second button "html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">", Third button "html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab Fourth button "html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"" 5th button "html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",

0 Answers  


what is the purpose of QTP?

2 Answers  


How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance

1 Answers   Capco,


In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i have parametrize the Person name and company Name and i have enter one person name and one company name in the excel sheet now we import the sheet and the script is passed i want to ask one thing can we add more than one person name and more than one company name in the excel sheet suppose firstly we create person name "ADDy" and company nmae.'Wipro" and we set the current row in the script for this data and now we want run the script another set of data so how we can run the script with another set of data

2 Answers  


Categories