Testing for a NPE dialog being thrown

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Testing for a NPE dialog being thrown

Postby seanshark » Tue Nov 16, 2010 2:29 am

The Nullpointer dialogs are displayed during record of the test but when the test is run the exception is not displayed on the GUI but is displayed only in the eclipse console so I can't check for it. Any ideas on why this is? I need to do negative testing where I need to verify the NPE dialog is thrown.
seanshark
 
Posts: 1
Joined: Tue Nov 16, 2010 2:19 am

Re: Testing for a NPE dialog being thrown

Postby keertip » Thu Nov 18, 2010 9:31 am

We are looking into this and will post an update soon.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Testing for a NPE dialog being thrown

Postby keertip » Thu Dec 02, 2010 11:11 am

It looks like WindowTester catches the exception and logs it, which is probably why the NPE dialog does not get thrown. We are looking to see if there is a graceful solution to this issue.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron