Micro Focus QTP (UFT) Forums
Function association to a object - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Function association to a object (/Thread-Function-association-to-a-object)



Function association to a object - anbarasu - 10-28-2009

Hi,

I have created a function library which holds the function

Code:
public function newset
' body
end function
RegisterUserFunc "WebEdit", "Set", "NewSet"

then i associated the function library with test. On creating step to webEdit object, newset function is not getting listed in the operation list box.

How can i add function to object?
how can i override a function of object?


RE: Function association to a object - basanth27 - 10-28-2009

Should work. Have you tried, closing and reopening the test ?


RE: Function association to a object - anbarasu - 10-28-2009

I tried by reopening the test, but it is not working.........
Is body of the function need to be support with the object.


RE: Function association to a object - basanth27 - 10-30-2009

Sorry about the ant - tips...Would you mind removing the Function library and associating it again ?