PC hangs after win_check_gui
I hope someone has an answer for this.
I'm using 7.01 and PeopleSoft add-in.
I'm creating a simple script to check all the objects in a window. Before closing WR, I rerun the script and it runs fine. However, when I close and re-open WR to run the script again, my PC hangs after at the first win_check_gui.
No errors are produced. I have to physically turn my PC off and on to get to my applications.
It's odd that the script works fine until I get out of WR. Note, I started over with a new script and the same problem occurs.
Here's the script. It fails at the first checkpoint. The same occurs in the other checkpoints that follow. Any thoughts would be appreciated.
# Load the apropriate gui files for the script
# See if starting screen Syr_intro is present
if(win_exists("Syr Intro",10)!= E_OK)
tl_step("Verify start screen",FAIL,"Starting screen is not present");
texit("Not at Syr_intro");
tl_step("Verify start screen",PASS,"Starting screen is present");
# Resize the application to ensure proper text checks
win_move ("Syr Intro", -1, -1);
win_resize ("Syr Intro", 565, 574);
win_move ("Syr Intro", 0, -1);
# Syr Intro
set_window ("Syr Intro", 19);
menu_select_item ("Go;Compensate Employees;Administer Base Benefits");
menu_select_item ("Use;Benefit Program Participation;Update/Display");
# Update/Display -- Benefit Program Participation
set_window ("Update/Display -- Benefit Program Participation", 4);
win_check_gui("Update/Display -- Benefit Program Participation", "list1.ckl", "gui1", 1);
Re: PC hangs after win_check_gui
One possibility: WR usually seems to work better, particularly in regard to recognizing objects, if you open the application under test after you start WR. So you might want to use an invoke_application (or web_browser_invoke as appropriate) in your script to launch the AUT, then win_close it at the end of the script.
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)