regarding jfcunit
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   brunette_12
Posted On:   Tuesday, May 6, 2003 03:00 AM

			
i am not able to find the components in the window ..have been using TestHelper.findNamedComponent("Cancel",loginScreen,0)where Cancel is a JButton

the test case goes this way
public void testEnterNull()
{
Set windows;
awtSleep();
windows = helper.getWindows();
JButton exitButton = null;
exitButton = (JButton) helper.findNamedComponent("CancelButton",loginScreen, 0);
assertNotNull("Exit button not found", exitButton);
}



About | Sitemap | Contact