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.

Function

This is a discussion on Function within the QTP forums, part of the Software Testing category; Hi, please can any one tell me how to write a function and use of a function in this Mercury Tour application and send a example script. Browser("Welcome: Mercury Tours").Page("Welcome: ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-15-2008
Junior Member
 
Join Date: Aug 2008
Location: LA
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
geeta90210 is on a distinguished road
Function

Hi, please can any one tell me how to write a function and use of a function in this Mercury Tour application and send a example script.

Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "mercury"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure "48a5c19214055a35daf86b08a09226be71b0300e"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 45,2
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("passCount").Select "2"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromPort").Select "New York"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").Sync
Browser("Welcome: Mercury Tours").Close

Cheers: Geeta
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-18-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Re: Function

http://www.geekinterview.com/talk/11...ction-qtp.html (how to return value from a function in QTP?)


Regards,
Nawab
Reply With Quote
  #3 (permalink)  
Old 08-18-2008
Expert Member
 
Join Date: Jan 2007
Location: Chennai
Posts: 139
Thanks: 1
Thanked 58 Times in 31 Posts
Sridevichitthu will become famous soon enough
Re: Function

Hi Friend,

You can also use User defined functions in QTP

http://www.geekinterview.com/talk/19...p-library.html (User defined function in QTP library)

Cheers,
Sridevichitthu
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
@function anil.curse Data Warehousing 0 07-28-2008 10:03 AM
What is the use of abs function Geek_Guest QTP 1 07-23-2007 07:29 AM
throwexception from function to function JobHelper VB.NET 1 06-25-2007 07:24 AM
pl/sql function gujjar Oracle Certification 3 02-22-2007 10:47 AM
TSL Function sutnarcha WinRunner 1 12-20-2006 05:40 AM


All times are GMT -4. The time now is 02:48 PM.


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