Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Any help available for starters with user defined functions within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| User defined function in QTP library | JobHelper | QTP | 8 | 09-23-2009 06:43 AM |
| How to find Defined key fields in a table? | sharifhere | SQL | 2 | 02-22-2007 01:01 AM |
| Pre-defined and post-defined value | JobHelper | Seibel | 0 | 12-30-2006 04:51 PM |
| Rules for user defined words | Bessie | MainFrame | 1 | 10-09-2006 04:04 PM |
| Why are Levels defined like this | GregMark | MainFrame | 0 | 10-01-2006 05:33 PM |