Hello,
I have a JUnit test that was generated by the WindowTester Pro tool. When I run this test in Eclipse or by invoking ant command, it PASSES. However, the test does not seem to terminate although my swing app successfully closes. From Eclipse I have to manually click on the Terminate button to kill the Java process. If I run this test by invoking the ant command from a Windows command prompt, I have to go to the Windows Task Manager and carefully select the Java process then click on End Process button to kill it once the test completes.
The following code fragment is a part of the JUnit test that the tool generated:
public void testAddRemoveSignal() throws Exception {
IUIContext ui = getUI();
ui.click(new JMenuItemLocator("Tools/Signals…"));
ui.wait(new WindowShowingCondition("Signals"));
ui.click(new JButtonLocator("Add"));
ui.click(new JButtonLocator("Remove"));
ui.click(new JButtonLocator("Close"));
ui.wait(TimeElapsedCondition.milliseconds(2000));
}
Does anyone know the cause of this issue and how to resolve it?
Thank you very much for your support!
-keico