[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