SPONSORS:






User Tag List

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

    Programming the Print Log

    I know that the Print Log cannot be programmed to save as a file (at least not that I know of) in QTP. But can it be done in UFT? UFT's PL has more features than QTP is asking.
    I would want to program this because when QTP crashes and then closes during a run, the print log closes too. So I would periodically have it save.

  2. #2
    Advanced Member venu.adhikesevan's Avatar
    Join Date
    Jun 2010
    Posts
    517
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0
    I use to have a seperate log file so that QTP crashes still we can track down to the issue. On UFT perspective sorry i wat not upgraded still using QTP 11
    Venu
    Today is always better than Tomorrow
    My Blog
    My LinkedIn

  3. #3
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,798
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I think most people only use the Print log for debugging and if you are going to write code to periodically save the print log you may as well spend that effor in writing to an external log IMHO.

    Mark Smith.

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    131
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Why is that?
    Quote Originally Posted by mwsrosso View Post
    I think most people only use the Print log for debugging and if you are going to write code to periodically save the print log you may as well spend that effor in writing to an external log IMHO.

    Mark Smith.

  5. #5
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,798
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    The function to write info to an external log which can be called from anywhere in your QTP script and func libs will be a similar number of lines of code to the code to extract & save data from the print log. Depending on the format of your log (txt, xml, html) it will be more flexible and manageable than scaping the print log.

    A few questions I'm asking myself while I thought about real log v print log:

    Can you extract info from the print log from an function lib (I know you can do it from QTP but can you you from qfl or assoc func lib)
    How do you ensure you do not get duplicate info when scraping the print log (the only way I know with out researching it is to open & close the print log which is poor)
    Why reinvent the wheel and create a print log extraction suite when there are so many examples of logging that I could cop[y and use.

    I'm sure the other forum members can chip in here.

    Mark Smith.

  6. #6
    SQA Knight
    Join Date
    Jun 2008
    Posts
    2,562
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    My question is why are you seeing QTP crashes so often that this is an issue? I would be reinstalling qtp and such trying to resolve that rather than go down this road.

 

 

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 © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.68%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:16 AM.

Copyright BetaSoft Inc.