Getting text from console window

Author Message
talih

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 8/7/2010
  • Status: offline
Getting text from console window Monday, March 07, 2011 3:04 AM (permalink)
0
[class="post"]Hello,

I'm facing the following problem:

I've writen a script that performs and automatic test using QTP on a medical application.
When the application is running, it outputs to a console window all the information about the flow of the application. When the application crashes, the information in that console is critical for debugging. The problem is that the text writen in the console is not saved when the application quits and all the data is lost.
I want to try and save all the text thatĀ appears in the console into a text file, during the time the application is alive.
I have the handle of the console window but I don't know how to continue from there.
[class="post"]
I heard there is a way to get the content of a console window using AttachConsole command defined in "Kernel32.dll".
Has anyone tried it before?Can anyone help?
Of course I am using vbscript only (in QTP)
Thank you.
Tali
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9