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 libraries???

This is a discussion on Function libraries??? within the QTP forums, part of the Software Testing category; hi friends.. I have to automate web based application and prepare script for entire site will you please let me know how to script and add in to QTP???? I ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 10-09-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Function libraries???

hi friends..

I have to automate web based application and prepare script for entire site will you please let me know how to script and add in to QTP???? I have QTP 9.0 with me

Waiting for your reply

Thanks
Deepasree
Reply With Quote
The Following User Says Thank You to deepasree For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 10-10-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 libraries???

EO: go for function libraries only when there are multiple instances of a control.



1. Create test validation functions, utility test functions, regular exp mapping functions , exception handling functions..... And save them in a vbs. 2. Upload the vbs for all ur scripts via the resource setting. Regards, nawab

Last edited by NawabShaikh; 10-10-2008 at 06:01 AM. Reason: Format
Reply With Quote
  #3 (permalink)  
Old 10-10-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Function libraries???

Hi nawab,

Really i can't get this "Create test validation functions" u mean assigning validation to the particular field???
2. what is the use of utility test function??? why it should be called???
3. regular expression mapping function???
4.exception handling functions??? u mean recovery screnario???

Do you have any sample codes for all these functions specified above if it is so then please post it in the forum.. I am waiting for your reply????

Thanks
Deepasree
Reply With Quote
  #4 (permalink)  
Old 10-10-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 libraries???

Create Validation Function: What Testing U want to do on that GUI Control(as stated in ur Requirement Specification)

Utility test function: there might be some xls , DB or complex Search pattern that are very lenghty to be copied in every script..they can be associated in the VBS

regular expression mapping function: Instead of If Else u might require to have a RegEx Function say for date validation ...Date format might be same across the application.

exception handling: can be recovery scenarios else explicit functions with detailed Reports in case of anomaly.

Sample Code ..Sorry these are architecture level details and hence I can't get Sample code..well its scatterd in the forum..


Regards,
Nawab
Reply With Quote
  #5 (permalink)  
Old 10-10-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Function libraries???

hi nawab,

"Create Validation Function: What Testing U want to do on that GUI Control(as stated in ur Requirement Specification)"

I need clarification ????Already we test the application manually and then we conduct regression with QTP that's do we need negative validation here(while preparing script)

Thanks
Deepasree
Reply With Quote
  #6 (permalink)  
Old 10-10-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
Arrow Re: Function libraries???

(Requirement Specification is the bottom line)


1. In case if u have priorities defined in ur testing u have to design scripts accordingly

1.1 Failures might result reporting
1.2 aborting action
1.3 aborting test
1.4 aborting run

hence u need to handle these situations...they have to be embeded in ur Function/Script so that u have a graceful exit. hence I have specified Exception Handling as it might serve 1.1 purpose.

These are Strategic issues..please refer to Test Strategy Doc of ur Project and also consult Test Lead as they might have a workaround




Regards,
Nawab

Last edited by NawabShaikh; 10-10-2008 at 09:18 AM. Reason: Addition
Reply With Quote
  #7 (permalink)  
Old 10-13-2008
Junior Member
 
Join Date: Oct 2008
Location: Dublin
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mosesarnold is on a distinguished road
Re: Function libraries???

Quote:
Originally Posted by deepasree View Post
hi friends..

I have to automate web based application and prepare script for entire site will you please let me know how to script and add in to QTP???? I have QTP 9.0 with me

Waiting for your reply

Thanks
Deepasree
Hi Deepasree,
when you have written the functional library file store it as .VBs file and Write the code manually execute file ""give the path of the file. or you need to load the modefied vbs file every time you when you updated. When u write the stetement Execute File "" Each time you execute the Script, New VBS file will be upladed.

Thank you,
Moses Arnold
281-844-5533
Reply With Quote
  #8 (permalink)  
Old 10-16-2008
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
Re: Function libraries???

What is the different between filename.vbs and filename.qfl?

I have bunch of functions (not visual basic, instead they are repeatable actions such as to fill customer information or to verify create user messaged etc.) in a file which extension is "qfl". I beleive this file was created by function generator (not so sure).
Reply With Quote
  #9 (permalink)  
Old 04-02-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,465
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Function libraries???

hi friend,

Their extension is the only difference

Thanks
Deepasree
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
AJAX Made Easy - Google Hosting Ajax Libraries Lokesh M AJAX & XML 0 06-28-2008 05:22 PM
Project functional libraries kishchilukuri QTP 1 04-29-2008 06:32 PM
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 03:32 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