SWTBot UI Test [message #826824] |
Thu, 22 March 2012 10:52  |
Eclipse User |
|
|
|
Hello!
I use SWTBot to test my UI.
In my test i start the UI and close the welcome window:
SWTBotView eclipseView = bot.activeView();
if (eclipseView != null && view.getTitle().equals("Welcome")) {
eclipseView.close();
}
After that i set the perspective:
bot.perspectiveByLabel(perspective).activate();
And after that i will do this:
bot.menu("File").menu("New").menu("Java Project").click();
I will open a new java project and at this point i get an error like this:
Error in --> AbstractSWTBot.class:
public AbstractSWTBot(T w, SelfDescribing description) throws
WidgetNotFoundException {
if (w == null)
throw new WidgetNotFoundException("The widget was null.");
...
}
Error Trace:
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: The widget was null.
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.<init>(AbstractSWTBot.java:97)
at org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu.<init>(SWTBotMenu.java:42)
at org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu.menu(SWTBotMenu.java:96)
at com.dfe.esom.freezer.ui.graphic.UITest.createNewJavaProject(UITest.java:62)
Any ideas or hints what may be the cause of this?
Thanks!
[Updated on: Fri, 23 March 2012 09:33] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04518 seconds