SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Apr 2005
    Location
    india
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    calling a udf function from outside of that function test

    hii pals

    ive defined my own functions, i am able to call those functions from that defined test only. i want to call it from any outside test.please pass me information for this

    regards
    rakesh

  2. #2
    Member
    Join Date
    Jul 2004
    Location
    UK
    Posts
    201
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: calling a udf function from outside of that function test

    Hi

    U can't call functions from one test to another test.

    for this u need write those fuctions and save them as .vbs file.

    use

    executefile "<vb script file path>"

    now u can access all funtions with it.

    u also can add your vbs file to test resources under test settings and choose it as default.

    so this can be accesses with all tests u create from then.
    Malleswari.

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Location
    india
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: calling a udf function from outside of that function test

    thanks malleswari, but the this over here is, am unable to save the qtptest as .vbs file.is there any way to save this file as .vbs file.please tell me

    rakesh

  4. #4
    Member
    Join Date
    Jul 2004
    Location
    UK
    Posts
    201
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: calling a udf function from outside of that function test

    Why u want to save test as .vbs.

    if u want to make functions in script reusable,

    u just copy those functions into any vb editor /text file and save with .vbs extention
    Malleswari.

  5. #5
    Junior Member
    Join Date
    Apr 2005
    Location
    india
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: calling a udf function from outside of that function test

    thanks malleswari, am very new to qtp,still comparing with WRunner. hope u will extend assistance for me on qtp

 

 

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 12:21 PM.

Copyright BetaSoft Inc.