Hi everybody,
I've got some little problems during the execution of some test in SWTBot. I'm trying to test a project import using SVN. So, everything goes OK until starts to find a node from my repository tree and gives me a timeout error...
This is my SWTBOT code:
@Test
public void canImportSource() throws Exception {
bot.viewByTitle("Welcome").close();
bot.menu("File").menu("Import...").click();
bot.tree().expandNode("SVN").select("Checkout Projects from SVN");
bot.button("Next >").click();
bot.button("Next >").click();
bot.comboBoxInGroup("Location").setText(
"https://my_repository_path");
bot.button("Next >").click();
bot.tree().expandNode("repository_node");
bot.tree().select("sub_node");
bot.button("Next >").click();
bot.radio("Check out as a project in the workspace").click();
bot.button("Next >").click();
bot.button("Finish").click();
}
I tried to put bot.sleep() but, doesn't work... In the other hand, when I try to import source from the file system, SWTBot doesn't find the "Browse For Folder" dialog... The last activated shell is the "import" shell.
Here is the example code:
@Test
public void canImportSource() throws Exception {
bot.viewByTitle("Welcome").close();
bot.menu("File").menu("Import...").click();
bot.tree().expandNode("General").select(
"Existing Projects into Workspace");
bot.button("Next >").click();
bot.button("Browse...").click();
bot.tree().select(0);
bot.button("OK").click();
bot.button("Finish").click();
}
Can someone help me, please!!!
Thank you in advance!!
Cheers,