What is the use of "Registeruserfunc" when should we use
it?
Note:Please do not copy paste the date from QTP help.
I tryed it.But I don't Understand where should we use
exactly.
Answer Posted / anish pillai
RegisterUserFunc in QTP can be used for both Method
Overriding as well as Method Reuse.
In method overriding, we can override the default
implementation of the function and replace with a new custom
implementation. For example, we can create a function, say
fnClick, which will not only click on an element, but it
also first verify if the element we want to click exists and
is enabled.
In method reuse, we can create a function which we can bind
with multiple controls & then use this function for all
these controls. For example, we can create a function
fnClick, which can be used to click on a button, on a link
on an image and so on. Refer below link for more details -
http://www.automationrepository.com/2011/12/how-to-achieve-method-overriding-and-reuse-using-registeruserfunc-in-qtp/
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
How to handle the exceptions using the recovery scenario manager in qtp?
what is test scheduleling?
what QTP Options do you know?
Analyzing the checpoint results?
Explain the difference between data driven testing and parameterization ?
Why script error occur in between recording in qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What are the common defects found in your project? (in qtp interview)
How do you configure QTP AND Test director?
How will you test a stapler?
what is ODC and GDC?
Will down time for server and content maintenance/upgrades be allowed? how much?
What is the extension of the qtp local repository?
Explain how qtp identifies object?