Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Problems with Tree behaviour and some dialogs
Problems with Tree behaviour and some dialogs [message #535210] Fri, 21 May 2010 11:10
Urtzi Odriozola is currently offline Urtzi Odriozola
Messages: 27
Registered: March 2010
Junior Member
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,
Previous Topic:Drop SWTBot support for eclipse 3.4 ?
Next Topic:wrong menu on eclipse-rcp applicaton
Goto Forum:
  


Current Time: Sat Aug 23 16:03:29 EDT 2014

Powered by FUDForum. Page generated in 0.01657 seconds