Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] SWTBot + Tycho

Your test bundle should have a dependency to the plugin where the product is defined, is it the case

Jeff


On Fri, Sep 5, 2014 at 4:12 PM, BERNARD, Alain <alain.bernard@xxxxxxxxxx> wrote:

Hello,

 

We have a problem while setting up our Tycho configuration to include some SWTBot tests on our application. The tests run properly when launched through "Run As > SWTBot Test" but not when included in the Tycho build.

 

We have a product with ID "fooProduct" which runs the application "org.eclipse.ui.ide.workbench". The product is feature-based and relies on "org.eclipse.platform" feature (v4.4.0, Luna). We have also included in the pom.xml of the test plugin the following instructions:

 

<build>

    <plugins>

        <plugin>

            <groupId>org.eclipse.tycho</groupId>

            <artifactId>tycho-surefire-plugin</artifactId>

            <version>${tycho-version}</version> < !-- we are using Tycho 0.21.0 -->

            <configuration>

                <useUIHarness>true</useUIHarness>

                <useUIThread>false</useUIThread>

                <!-- use our product and application to launch the tests -->

                <product>fooProduct</product>

                <dependency-resolution>

                    <extraRequirements>

                         <!-- product IU under test -->

                        <requirement>

                            <type>p2-installable-unit</type>

                            <id>fooProduct</id>

                            <versionRange>[1.0.0,2.0.0)</versionRange>

                        </requirement>

                    </extraRequirements>

                </dependency-resolution>

            </configuration>

        </plugin>

    </plugins>

</build>

 

 

When running the Tycho build (with goals ‘clean install’), the test fails with the message “Could not find a menu within the shell 'Shell with text {Shell {}}' matching 'with mnemonic 'File''” and in the logs we can see that Eclipse failed to load our product:

!ENTRY org.eclipse.equinox.app 0 0 2014-09-05 15:40:44.128

!MESSAGE Product fooProduct could not be found.

 

We looked at the list of bundles that are present in the “configuration” directory

 

It seems that we are doing something wrong in our configuration but we cannot figure out what is the problem. Can someone help us?

 

Thank you a lot in advance!

 

Alain

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top