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 you open QTP, how many sheets you can see?
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
What are the types of properties that quick test learns while recording?
What are the differences between qtp and winrunner?
What is checkpoints for quicktest professional (qtp)?
Can any one send me the QTP Basic Coding Samples?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
What is the basic concept of quicktest professional?
what is the difference between modular framework & datadriven framework
how to test use the quality control .how to verify the image verification
whare exactly we have to use functions and sub routain
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
For which type of project the iterative model is suitable?
Define Canvas view of UFT?
How to create a standard checkpoint ?