Bonjour,
Je voudrais tester la creation d'un fichier.
J'ai problème avec le sous menu: c'est-à-dire aprés avoir créer le projet . Quand je clique dessus et je fais new> File
La fenêtre de création de file s'ouvre mais il ne le trouve.
Est ce que quelqu'un pourrait m'aider svp.

Voici mon programme:
/********************************************************/
public static void beforeClass() throws Exception {

bot = new SWTWorkbenchBot();

// Closed Welcome page
bot.viewByTitle("Welcome").close();

bot.perspectiveByLabel("...").activate();
// Create a project
bot.menu("File").menu("Other...").click();
SWTBotShell shell = bot.shell("New");
shell.activate();
bot.sleep(1000);
shell.bot().tree().expandNode("...").expandNode("...")Editor Project").select();
bot.button("Next >").click();

bot.textWithLabel("Project name:").setText("ProjectEssai");
bot.button("Finish").click();
System.out.println("projet ok");

bot.sleep(2000);
bot.activeView().show();
boolean menu = true;
menu = bot.tree().expandNode("ProjectEssai").select().contextMenu("New").isVisible();
System.out.println("click droit "+ menu);


UIThreadRunnable.asyncExec(new VoidResult() {

public void run() {


bot.tree().expandNode("ProjectEssai").select().contextMenu("New").menu("New model").click();

SWTBotShell newShell = new SWTBotShell(null);
newShell = bot.shell("New Fichier");
newShell.activate();


bot.text("EmptyEngineFlowchart.s").selectAll();
bot.button("Next").click();
bot.textWithLabel("Enter or select the parent folder").setText("ProjectEssai");
bot.textWithLabel("File name:").setText("fileEssai.s");
bot.button("Finish").click();
System.out.println("fin run");
}

});




}

@Test
public void testCreateProjetFlowchart(){

bot.viewByTitle("F... Editor Explorer View").setFocus();
bot.sleep(2000);
bot.activeView().show();
bot.tree().expandNode("ProjectEssai").expandNode("fileEssai.s").select().isChecked();

}
}
/********************************************************/
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: The widget was null.)
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at fr.actia.eclipsejaas.JaasApplication.start(JaasApplication.java:141)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITestApplication.java:54)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: 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.AbstractSWTBotControl.<init>(AbstractSWTBotControl.java:47)
at org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.<init>(SWTBotShell.java:49)
at org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.<init>(SWTBotShell.java:38)
at Testcreateproject$1.run(Testcreateproject.java:63)
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$5.doRun(UIThreadRunnable.java:221)
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$1.run(UIThreadRunnable.java:89)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
... 24 more


/***********************/
Il ne trouve pas la fenêtre du nouveau fichier?Est ce que ceci est du au fait que je fais toutes les actions dans le même thread ou du à un autre problème.
Merci d'avance