Running QTP 9.1 with the Terminal Emulator against Attachmate Enterprise 2000 enabled, I make a call to TeTextScreen WaitString() with a timeout value of 5000000 milliseconds. During the call, roughly about 10-20 minutes during the wait, my QTP session completely dies.
The crash is intermittent, but when it happens, all QTP processes disappear. Has anyone on this forum also experienced a crash of QTP 9.1 when the Terminal Emulator is waiting for a specific string? Do you know whether Mercury has addressed this issue?
Re: QTP 9.1 Crashes during TeTextScreen WaitString()
Wow, 5000000 is a long time. 83 minutes. Did you really want your script to wait up to 83 minutes for this?
I don't have any suggestions as I have never used QTP against a TE of any kind, but I'm wondering about those 83 minutes and curious if a shorter wait time would eliminate the crash? Maybe QTP is just not handling that long wait properly?
"The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"
Re: QTP 9.1 Crashes during TeTextScreen WaitString
It looks like the a while loop to call the TeTextScreen waitString does help. Also, setting the boundaries of the top and bottom, column/row settings appropriate to the terminal emulator's boundaries will make a difference. If the boundaries are out-of-bounds, no exceptions are thrown from QTP, instead, it looks like QTP will just crash.