-
Junior Member
Any help available for starters with user defined functions
Hi,
I am trying to write user defined functions for testing a web based applications.
Please tell me if there is any help available for starters with user defined in Visual Basic.
Any pointers to it would be of great help..
Thanks,
vJ
-
Junior Member
Re: Any help available for starters with user defined functions
hi,
here i am giving example for login using userdefined functions
function login(uname,pwd)
Browser("Browsername").page("pagename").WebEdit("username").set uname
Browser("Browsername").page("pagename").WebEdit("password").set pwd
Browser("Browsernam").page("pagename").WebButton("submit").click
end function
create this function in notepad and save this with extension filename.vbs
now open Test script
Associate this library file with Test script
Test->settings->Resources->add this file((+) filename.vbs)
write this statement in testscript
x=datatable.value("uname",dtGlobalsheet) 'Test the application with multiple
y=datatable.value("pwd",dtGlobalsheet) 'test data
login x,y
In datasheet create colums uname,pwd
uname pwd
xxxx
-
Junior Member
Re: Any help available for starters with user defined functions
what type of help u need give exact one i will give the solution to u
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules