Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How do I launch a certain project in SWTBot Plug-in test?
How do I launch a certain project in SWTBot Plug-in test? [message #1398565] Fri, 11 July 2014 08:50 Go to next message
Pavel Sadovnikov is currently offline Pavel SadovnikovFriend
Messages: 8
Registered: July 2014
Junior Member
Not every plugin can be tested without project. For example, I want to test CDT-Plug-in, therefore I need to import a C-project. But there is no such point in Run Configuration and when I'm trying to record importing actions via SWT Plug-in Test recorder SWTBot can't replay them afterwards. Google is silent on this topic. How do I do that?
Re: How do I launch a certain project in SWTBot Plug-in test? [message #1401281 is a reply to message #1398565] Tue, 15 July 2014 11:41 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/07/2014 22:18, Pavel Sadovnikov wrote:
> Not every plugin can be tested without project. For example, I want to
> test CDT-Plug-in, therefore I need to import a C-project. But there is
> no such point in Run Configuration and when I'm trying to record
> importing actions via SWT Plug-in Test recorder SWTBot can't replay them
> afterwards. Google is silent on this topic. How do I do that?

Hi

You need to import the project programmatically, using SWTBot API you
can call File -> Import -> etc.

as far as I know this is still not handled by the generator, so you need
to write the Java code yourself.

I have some SWTBot tests in my projects, e.g.,
http://xsemantics.sourceforge.net/ , where I import projects (and check
that they compile fine for instance).

hope this helps
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Previous Topic:java.lang.Exception: Could not find plugin
Next Topic:sync after AbstractSWTBot#pressShortcut() ?
Goto Forum:
  


Current Time: Thu Apr 25 15:27:30 GMT 2024

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

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

Back to the top