Geeks Talk

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.

Any help available for starters with user defined functions

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 ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 04-03-2007
Junior Member
 
Join Date: Mar 2007
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
vjlaxmi is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-04-2007
Junior Member
 
Join Date: Feb 2007
Location: hyd
Posts: 18
Thanks: 0
Thanked 3 Times in 3 Posts
lata_115 is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 04-04-2007
Junior Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
vvijaysagar is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved