Micro Focus QTP (UFT) Forums
How to create Function for Login Screen - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to create Function for Login Screen (/Thread-How-to-create-Function-for-Login-Screen)



How to create Function for Login Screen - saiteja - 06-01-2011

Hi,

Login page is same for all my applications. Instead of writing login code for every time i want to use function. Please help me how to create login function.

like Function Login()




RE: How to create Function for Login Screen - wuamyamy - 06-15-2011

hi here is one,

1. click new -->select function --> create your function
function login()
end function

2. open new -->test
call login()
... other

3. in setting -->associate the function to your test

will work

good luck

amy