|
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  |
|
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
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Powered by
FUDForum. Page generated in 0.02110 seconds