ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
What is the difference between property and method?
 Question Submitted By :: Suma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between property and method?
Answer
# 1
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 ?    11 Yes 2 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process. TCS2
Synchronozation types in QTP  4
When The Low Level Recording is Used in QTP  14
How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?  1
Use of Multiple Actions in QTP?  2
how do u retrieve data from a database ? i.e. i want to retrieve 2nd record only from a database ? write code for this. by using ADODB connecton, RSOBJ and using a FOR loop we can retrieve all the records( ex: if we give query as select * from emp). but i want only 2nd record. so how to acheive this. Accenture2
How do we edit the script in QTP. Anybody can explain in detail..Thanks in advacne... IBM2
How to parameterize Object Repository?  2
Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.  5
How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....  2
how we do database testing with qtp using descriptive programming? Nutrins8
how you update scripts in qtp?  1
what is vmodel?advantages and disadvantages of vmodel? AZTEC3
how to calculate no. of repeating characters in a a string..please give me the code  1
what are the different Frame Works in Quick Test Proffessional testing Wipro2
what is a good testcase? Wipro2
CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP  2
I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded? Syntel4
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP? CTS7
What are the different scripting languages you could use when working with QTP ?  3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com