Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

2108


What are output values and why they are used ?

1058


Which functionalities of QTP used in banking project?

2424


How to creating an output value using quicktest professional (qtp)?

999


Your roles and responsibilities and daily tasks? (As automation tester)

3077


What are the key points to create a framework in QTP for oracle forms?

2247


how to post xml data from QTP scripts to any application?

1958


What is checkpoints for quicktest professional (qtp)?

1021


How to handle the exceptions using the recovery scenario manager in qtp?

1026


how to do the batch testing in test director using manual testing procedure?

2360


How you can delete excel file in qtp?

1060


how to find that tools work well with your existing system?

1850


How do client side image and server side image work?

1822


How can you pass value one action to another action?

1041


Explain features of the latest version of qtp/ uft 12.1?

1046