SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Creating Functions to Call

    Where can I get information on how to write functions to call in a test script. I was on the phone with Mercury support and he took me through some steps but I haven't a clue on how I could possibliy do it without their help. Thanks.

  2. #2
    Apprentice
    Join Date
    Aug 2001
    Location
    Alphen a/d Rijn, The Netherlands
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Creating Functions to Call

    Hi StanG,
    When you know how to write functions in VBScript, you can put these functions into a text file and save this file with the extention .vbs
    Save it somewhere where you will remember the file, most easy I think is to put it in a directory called VBScripts in the directory where you save all your test scripts.
    Then when you need a function, what is in this vbs file, in one of your scripts, you need to link that vbs file with your test script.
    To do this, click, when your test script is open, in menu "Test" on "Settings". In the windows that opens, choose tab "Resources" and add your vbs file in the list of "Associated Library Files"
    Now you just can call any function what you created in your function library file (the vbs file), from your test script.

    More information about writing functions you can find in the help files of QTP.... Start --> Programs --> Quick Test professional --> Documentation --> Books online.
    There search for "functions" and "User-defined functions".

    Olav

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:32 AM.

Copyright BetaSoft Inc.