Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8512685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:21:00+00:00 2026-06-11T04:21:00+00:00

I´m running UI tests for an RCP application using SWTBot, which works fine while

  • 0

I´m running UI tests for an RCP application using SWTBot, which works fine while launching the tests in the eclipse IDE. Now I want to run the tests in maven, which also works so far. Unfortunately, through the dependency chain org.eclipse.swtbot.eclipse.finder --> org.eclipse.ui.editors --> org.eclipse.ui.ide the org.eclipse.ui.ide is also present in the application that runs the tests. With this bundle some unexpected menu items are present and the bundle should be excluded in the test runtime. How could this be achieved?

While running the tests in eclipse I simply exclude the org.eclipse.ui.ide bundle in the SWTBot Test launch configuration and everything works as expected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:21:01+00:00Added an answer on June 11, 2026 at 4:21 am

    The dependency chain org.eclipse.swtbot.eclipse.finder --> org.eclipse.ui.editors --> org.eclipse.ui.ide contains an optional link: the first bundle only requires the second bundle via an optional import of the package org.eclipse.ui.texteditor. This is why you can remove the o.e.ui.ide bundle from the test runtime launched from Eclipse, and o.e.swtbot.eclipse.finder will still work.

    Under normal circumstances, you could achieve the same in Tycho’s test runtime by making sure that the optional dependency is not in the target platform:

    <plugin>
       <groupId>org.eclipse.tycho</groupId>
       <artifactId>target-platform-configuration</artifactId>
       <version>${tycho-version}</version>
       <configuration>
          <filters>
             <filter>
                <type>eclipse-plugin</type>
                <id>org.eclipse.ui.ide</id>
                <removeAll />
             </filter>
          </filters>
       </configuration>
    </plugin>
    

    But here is why this doesn’t work in your particular case: When you use the UI test harness (useUIHarness=true), Tycho unconditionally adds the bundle org.eclipse.ui.ide.application as extra requirement to your test runtime. That bundle has a non-optional requirement to org.eclipse.ui.ide, so with the target platform configuration above, you’ll get a “cannot resolve dependency” error complaining about an unsatisfied constraint of org.eclipse.ui.ide.application.

    So, I don’t think that there is a solution in your case – but I consider this a bug in Tycho. The SWT bot tests run in Eclipse, so they should also run in Tycho. Obviously, Eclipse doesn’t need the org.eclipse.ui.ide.application bundle (or otherwise it would have stopped working when you de-selected the org.eclipse.ui.ide bundle), so Tycho shouldn’t need it either. Please file a bug report for Tycho and attach a minimal sample project that reproduces the problem, so that I can fix this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following Warnings while running tests using cc.net c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets (,): warning
I have a rails application on RubyMine. While running tests on terminal(Mac OS X
When running some tests I came across the following issue. When using: private String
I'm running Selenium tests from within Eclipse, but I can't load a custom Firefox
We have some unit tests running against a SQL server 2000 database using the
I'm working on a project using Scala running Selenium tests as part of a
I am runninig test's with Python Unittest. I am running tests but I want
Apparently, while running tests in Rails, the hostname is www.example.com. If I run root_url
I have a class which has some unit tests, but when I am running
we're running tests and updating results to a Sonar server (using Mave by the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.