Micro Focus QTP (UFT) Forums
Sync in terminal emulators - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Sync in terminal emulators (/Thread-Sync-in-terminal-emulators)



Sync in terminal emulators - Robert L - 02-29-2008

I'm using QTP to access a mainframe to do order processing. As I go through my script I have noticed a big problem. I thought it was just that the sync wasn't long enough so I increased the time and that seemed to work. But, When our system goes from an inquiry to an order it does an xref which unfourtanly releases the xwait that the sync is looking for but it hasn't come back. I could just put a long wait in but I have to loop through this logic because it is possible that it will not return an order number, but stay on the same screen. Like I said, there are times that it will go to an order, but the xref takes so long to come back (10 to 15 sec) the system handles it as another message it needs to process, so it starts back through the logic. Sometimes the xref takes so long it makes it through this and hits the process key again which on the next screen takes you out of the program and it errors because it is lost. Does anyone have a fix that might help. I really don't want to have to place a 30 sec wait in, that would make the process a lot longer than it would take me to manually put them in.