Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How Import Projects with Swtbot
How Import Projects with Swtbot [message #869912] Fri, 04 May 2012 18:49 Go to next message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Hi guys.
I need to now how to import projects to workspace using a SWTBot?

bot.tree().expandNode("General").select("Existing Projects into Workspace");
	    bot.button("Next >").click();


After this, what i have to do?
How navigated in windows folders? Its possible?
Thanks for helping.


Re: How Import Projects with Swtbot [message #870473 is a reply to message #869912] Tue, 08 May 2012 11:30 Go to previous messageGo to next message
Sandeep Mor is currently offline Sandeep MorFriend
Messages: 4
Registered: May 2012
Junior Member
Import projects is a eclipse dialog. you can select the radio button and do the setText into the textbox.
bot.tree().expandNode("General").select("Existing Projects into Workspace");
bot.button("Next >").click();
bot.radio("Select root directory:").click();
bot.text(0).setText("directory path"); //you have to specify your project folder path here

If you want to handle native OS dialogs. you have to use presShortcut and keystrokes for that.


Re: How Import Projects with Swtbot [message #871256 is a reply to message #870473] Fri, 11 May 2012 16:32 Go to previous messageGo to next message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Hello Sandeep Mor, thanks for help me in this problem.
Its works!

You tell me if it is possible to run several tests swtbot one after the other before I send it perform?
How is this done?
Re: How Import Projects with Swtbot [message #871265 is a reply to message #871256] Fri, 11 May 2012 17:14 Go to previous messageGo to next message
Sandeep Mor is currently offline Sandeep MorFriend
Messages: 4
Registered: May 2012
Junior Member
Hi,

Do you want to run multiple tests of swtbot? You can create Junit tests and can use single instance of swtworkbenchbot. Please provide me more details about your requirements.
Re: How Import Projects with Swtbot [message #871273 is a reply to message #871265] Fri, 11 May 2012 17:39 Go to previous messageGo to next message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Yes, i want to run multiple tests of swtbot in the same time, one after one.
Please see attached image.

I need to create a code to perform all the files one by one in an automated manner, without going on the run -> swtbot test;

It is possible to do this?
Sorry to ask so many questions, but I am new to swtbot.
  • Attachment: img.jpg
    (Size: 21.61KB, Downloaded 1179 times)
Re: How Import Projects with Swtbot [message #871275 is a reply to message #871273] Fri, 11 May 2012 17:49 Go to previous messageGo to next message
Sandeep Mor is currently offline Sandeep MorFriend
Messages: 4
Registered: May 2012
Junior Member
Hi Miguel,

You can group your multiple test classes into test suite. That is basically a group of tests. You can create test suite following below link and you can add your test classes into this suite.

help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2FgettingStarted%2Fqs-junit.htm

Re: How Import Projects with Swtbot [message #871277 is a reply to message #871275] Fri, 11 May 2012 17:53 Go to previous messageGo to next message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Thanks again for your help.
I'll try to do as the link above.
thank you very much!!!
Re: How Import Projects with Swtbot [message #872308 is a reply to message #871277] Tue, 15 May 2012 21:51 Go to previous messageGo to next message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Hello, I'm not able to perform several consecutive tests.
Using this code:
package pacote;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;


@RunWith(Suite.class)

@SuiteClasses({
	Hello_World.class, 
	CopyOfHello_World.class})

public class Testes {

}


Only one of the tests are executed, the next run and not reach out ...
What am I doing wrong?
see the attached image

  • Attachment: barra.jpg
    (Size: 49.65KB, Downloaded 256 times)

[Updated on: Tue, 15 May 2012 21:52]

Report message to a moderator

Re: How Import Projects with Swtbot [message #872310 is a reply to message #872308] Tue, 15 May 2012 21:53 Go to previous message
Miguel Pessoa is currently offline Miguel PessoaFriend
Messages: 22
Registered: May 2012
Location: Brazil
Junior Member
Using the Junit Test Suite case, not work.
Previous Topic:Generate Test Report
Next Topic:Workspace issue in SWTBot test
Goto Forum:
  


Current Time: Thu Apr 25 00:26:09 GMT 2024

Powered by FUDForum. Page generated in 0.04596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top