What is the difference between property and method?
Answer Posted / amarendra kothuru
Property is nothing like a variable and Method is like a
function.
You cannot pass parameters to a property and you can
directly assign value to it.
for a Method, set of lines of code and when it is called
that executes set of lines written in it and generates the
results. you can pass parameters to the method and you can
retirve the result from the method. You cannot directly
assign any value to it but you can pass it by
Parameterizing it.
Ex: Reporter.Filter - Here Filter is a property
Reporter.ReportEvent - Here ReoprtEvent is a mothod.
Reporter.Filter = 0 'this enable the results for the test
results. Here you can directly assig value to it
Reporter.ReportEvent micPass, "Msg1","Msg2". Here we are
passing three parameters to the methos ReportEvent that
send the results to Test Results.
Reporter is either a prepdefined Abstract class/interface
in QTP that has so many Properties and Moethods
| Is This Answer Correct ? | 31 Yes | 6 No |
Post New Answer View All Answers
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
What are output values and why they are used ?
Which functionalities of QTP used in banking project?
How to creating an output value using quicktest professional (qtp)?
Your roles and responsibilities and daily tasks? (As automation tester)
What are the key points to create a framework in QTP for oracle forms?
how to post xml data from QTP scripts to any application?
What is checkpoints for quicktest professional (qtp)?
How to handle the exceptions using the recovery scenario manager in qtp?
how to do the batch testing in test director using manual testing procedure?
How you can delete excel file in qtp?
how to find that tools work well with your existing system?
How do client side image and server side image work?
How can you pass value one action to another action?
Explain features of the latest version of qtp/ uft 12.1?