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


Please Help Members By Posting Answers For Below Questions

Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

608


Why qtp the best testing tool?

568


How to find the length of the string in qtp?

582


can test automation improve test effectiveness?

1489


How to add synchronisation points in qtp?

580






What is the syntax to call one action in another?

557


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

1462


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1630


What is the use of running the scripts in Hidden-mode in UFT?

688


why text area checkpoints cannot used for web applications

1885


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1447


Write a QTP script to enter a keyword in to Google search engine?

653


how interviews will be on QTP?

1525


How to open a new test using quicktest professional?

574