SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Apprentice
    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Undo ExecuteFile?

    Our current framework loads all necessary function libraries at run time using ExecuteFile. In order to clear these references and prevent QTP from being a memory hog, we close and restart QTP and load the next set of libraries for the next test.

    Is there a command to clear out QTP's associated libraries that were added using ExecuteFile?

  2. #2
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Undo ExecuteFile?

    This might be related to your querry:

    http://www.sqaforums.com/showthreade...;Number=420359
    -Suchit

  3. #3
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Undo ExecuteFile?

    While I have never seen any HP/Merc document on this I think it is reasonable to assume that:

    1. Memory used for libs defined on the Test Settings Resource tab are released when a test script terminates; and

    2. Memory used for libs included using ExecuteFile are released when the Action containing the statement terminates.

    Have you any reason, behavior or evidence to think otherwise?

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Undo ExecuteFile?

    Sideshow, Have you tested your assumption that library memory increases in such a way when you load so many libraries?

    Also if you use Actions then every iteration would clear the libraries automatically

  5. #5
    Apprentice
    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Undo ExecuteFile?

    A little clarification to answer some of these questions.

    I am calling one driver script and iterating through it. However, I am not using QTP's iteration handling, so I'm never actually leaving the action.

    Secondly, I will have close to 200 function libraries by the time the project is complete. The amount of load time is extreme if these are added pre-run. We are simply adding those that are needed at run-time, based on the script. When the script completes, I'd like them cleared.

    Our current method works fine. We open and close QTP after each test case (for this very reason), but I would like to improve our test run execution times, and keeping one instance of QTP open for the entire run is ideal.

 

 

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 06:31 AM.

Copyright BetaSoft Inc.