chinna:
From QTP create a new library file and copy your function into that file.
Right-click on the file and "associate" that function library with the
calling script.
Rick
Topic: how we can call library function in qtp
<http://groups.google.com/group/mercuryqtp/t/4047fb0d241d37e1>
chinna <[email protected]> Feb 16 06:35PM +0530 ^
<#digest_top>
acutally I developed script for gmail longing page and i save
that script
in .vbs
after that i can associate the script using setting options
which code i want write in qtp to run below function
Function gmail_login()
Browser("Google").Page("Google").Sync
Browser("Google").Navigate "http://www.gmail.com/"
Browser("Google").Page("Gmail: Email from
Google").WebEdit("Email").Set
"chinna"
Browser("Google").Page("Gmail: Email from
Google").WebEdit("Passwd").SetSecure
"4b794bc217051ee02a5f36e7f80642cf4e1d887102eff397"
Browser("Google").Page("Gmail: Email from Google").WebButton("Sign
in").Click
If Browser("Google").Page("New! Google Buzz in
Gmail").Link("Nah, go to my
inbox").Exist(3) Then
Browser("Google").Page("New! Google Buzz in Gmail").Link("Nah,
go to my
inbox").Click
End If
Browser("Google").Page("Gmail - Inbox (5)").Frame("v1").Link("Sign
out").Click
Browser("Google").Page("Gmail: Email from Google_2").Sync
Browser("Google").Close
End Function
--
Thanks & Regards,
Chinna,
Mob:9739656841
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en