Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recovery Scenario Problem
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
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
    TeWindow("TeWindow").TeScreen("ABC").SendKey TE_PF8
End if
If TeWindow("TeWindow").TeScreen("XYZ").Exist Then
    TeWindow("TeWindow").TeScreen("XYZ").SendKey TE_PF8
End if
If TeWindow("TeWindow").TeScreen("ABCXYZ").Exist Then
    TeWindow("TeWindow").TeScreen("ABCXYZ").SendKey TE_PF8
End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Video of a scenario shivangshah 0 1,237 01-30-2017, 07:45 PM
Last Post: shivangshah
  Default recovery scenario TurtleRock 1 2,926 05-30-2014, 02:17 PM
Last Post: Tarik Sheth
  Edit Recovery Scenario skegler 0 3,286 03-05-2014, 10:40 PM
Last Post: skegler
  recovery scenario for closing a message box itself ashima 0 2,241 12-26-2013, 11:10 AM
Last Post: ashima
  Object State - Recovery Scenario vIns 1 4,232 01-21-2013, 03:15 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)