Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Skipping Oomph setup
Skipping Oomph setup [message #1612863] Thu, 12 February 2015 08:54 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

We have some automated test that unzip some IDE package in a new directory and that perform some installation steps on top of it. Those use SWTBot to mimic installation scenario as we expect users to perform it.
The Oomph setup dialog pops-up early and messes up our SWTBot tests. Is there a way to skip this setup page?

Cheers,
Re: Skipping Oomph setup [message #1613775 is a reply to message #1612863] Thu, 12 February 2015 22:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Mickael,

These options give you control:

public static final String PROP_SETUP_SKIP = "oomph.setup.skip";

public static final String PROP_SETUP_QUESTIONNAIRE_SKIP =
"oomph.setup.questionnaire.skip";


On 12.02.2015 09:54, Mickael Istria wrote:
> Hi,
>
> We have some automated test that unzip some IDE package in a new
> directory and that perform some installation steps on top of it. Those
> use SWTBot to mimic installation scenario as we expect users to perform it.
> The Oomph setup dialog pops-up early and messes up our SWTBot tests. Is
> there a way to skip this setup page?
>
> Cheers,


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Skipping Oomph setup [message #1700449 is a reply to message #1613775] Thu, 02 July 2015 16:03 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Thansks Ed.
This has worked for some weeks, but with the latest Mars release, I now get an error in my automated tests: "java.lang.IllegalStateException: There is no eclipse.launcher property defined", which opens a pop-up and prevent my SWTBot tests to run. I tried to add a "-Dorg.eclipse.oomph.setup.skip=true" but that didn't work.
What would you advse to prevent this message from popping-up in automated tests?
Re: Skipping Oomph setup [message #1700459 is a reply to message #1700449] Thu, 02 July 2015 17:02 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 02.07.2015 um 18:03 schrieb Mickael Istria:
> Thansks Ed.
> This has worked for some weeks, but with the latest Mars release, I now get an error in my automated tests:
> "java.lang.IllegalStateException: There is no eclipse.launcher property defined", which opens a pop-up and prevent my
> SWTBot tests to run. I tried to add a "-Dorg.eclipse.oomph.setup.skip=true" but that didn't work.
> What would you advse to prevent this message from popping-up in automated tests?
Please open a bugzilla and attach the complete stack trace so that we can see how you arrived at this point.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Skipping Oomph setup [message #1700460 is a reply to message #1700459] Thu, 02 July 2015 17:27 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Thanks, I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=471731
Re: Skipping Oomph setup [message #1700462 is a reply to message #1700460] Thu, 02 July 2015 17:37 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 02.07.2015 um 19:27 schrieb Mickael Istria:
> Thanks, I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=471731
Sorry, I didn't see that earlier because you didn't show a stack trace here. The system property is just
-Doomph.setup.skip=true (not prefixed with "org.eclipse"). With that it should work.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Skipping Oomph setup [message #1700465 is a reply to message #1700462] Thu, 02 July 2015 17:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
BTW., most of our system properties start with "oomph...":

public interface SetupProperties
{
public static final String PROP_SETUP_SKIP = "oomph.setup.skip";

public static final String PROP_SETUP_QUESTIONNAIRE_SKIP = "oomph.setup.questionnaire.skip";

public static final String PROP_SETUP_OFFLINE_STARTUP = "oomph.setup.offline.startup";

public static final String PROP_SETUP_MIRRORS_STARTUP = "oomph.setup.mirrors.startup";

public static final String PROP_SETUP_OFFLINE = "oomph.setup.offline";

public static final String PROP_SETUP_MIRRORS = "eclipse.p2.mirrors";

public static final String PROP_SETUP_UNSIGNED_POLICY = "eclipse.p2.unsignedPolicy";

public static final String PROP_SETUP_REMOTE_DEBUG = "oomph.setup.remote.debug";

public static final String PROP_REDIRECTION_BASE = "oomph.redirection.";

public static final String PROP_UPDATE_URL = "oomph.update.url";

public static final String PROP_SETUP_PRODUCT_CATALOG_FILTER = "oomph.setup.product.catalog.filter";

public static final String PROP_SETUP_PRODUCT_FILTER = "oomph.setup.product.filter";

public static final String PROP_SETUP_PRODUCT_VERSION_FILTER = "oomph.setup.product.version.filter";

public static final String PROP_SETUP_JRE_CHOICE = "oomph.setup.jre.choice";
}

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Skipping Oomph setup [message #1700473 is a reply to message #1700465] Thu, 02 July 2015 18:41 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Ok, I looked at the wrong class apparently http://git.eclipse.org/c/cdo/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup/src/org/eclipse/oomph/internal/setup/SetupProperties.java
Re: Skipping Oomph setup [message #1700476 is a reply to message #1700473] Thu, 02 July 2015 18:48 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 02.07.2015 um 20:41 schrieb Mickael Istria:
> Ok, I looked at the wrong class apparently
> http://git.eclipse.org/c/cdo/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup/src/org/eclipse/oomph/internal/setup/SetupProperties.java
Yep, that whole repo is stone age :P

I guess I should remove it soon...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:component.def dependencies cached?
Next Topic:Targlet cannot be resolved
Goto Forum:
  


Current Time: Thu Dec 26 09:52:15 GMT 2024

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

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

Back to the top