Recovery Scenario Problem - 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: Recovery Scenario Problem (/Thread-Recovery-Scenario-Problem) |
Recovery Scenario Problem - DarrenPl - 11-09-2011 Hi All, I'm new to QTP and have no previous experience with coding/programming. I'm currently automating some test scripts for a Terminal Emulator. I've finally managed to run and retrieve all the data needed for the test I'm automating. However, when I'm running my scripts, occasionally a screen (always the same screen) is generated through the script. I've tried to get around this by using a Recovery Scenario but this hasn't worked. When this screen is generated, a manual user would noramally PF5 three times to get back to the expected TE screen. Does anybody know of a code to get around this? I've also tried: If TeWindow("TeWindow").TeScreen("TeScreen").Exists Then SendKey TE_PF8 Then SendKey TE_PF8 Then SendKey TE_PF8 End Hope I'm making sense! Thanks in advance, Darren RE: Recovery Scenario Problem - DarrenPl - 11-10-2011 Hi, Just in case anybody has a similar problem, I've figured out a solution to my problem, its: Code: If TeWindow("TeWindow").TeScreen("ABC").Exist then |