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
Printable View
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
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
what type of help u need give exact one i will give the solution to u