Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Integrate SWTBOT test cases with Jenkins
Integrate SWTBOT test cases with Jenkins [message #1703968] Thu, 06 August 2015 05:40 Go to next message
Eclipse UserFriend
Hello,

I am trying to integrate SWTBOT test cases with Jenkins. For that I have added anew Job of my RCP project with SWTBOT test cases in Jenkins. We are using the Maven to build the project. But the SWTBOT test cases are not invoking. I want any example or the detailed procedure how to integrate it with Jenkins.

Please help me for the above problem.
Thanks in advance.
Re: Integrate SWTBOT test cases with Jenkins [message #1704009 is a reply to message #1703968] Thu, 06 August 2015 11:37 Go to previous messageGo to next message
Eclipse UserFriend
On 06/08/2015 11:40, Chetana Barhate wrote:
> Hello,
>
> I am trying to integrate SWTBOT test cases with Jenkins. For that I have
> added anew Job of my RCP project with SWTBOT test cases in Jenkins. We
> are using the Maven to build the project. But the SWTBOT test cases are
> not invoking. I want any example or the detailed procedure how to
> integrate it with Jenkins.
>
> Please help me for the above problem. Thanks in advance.

Hi

in the SWTBot Wiki there's a section about that.

cheers
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
Re: Integrate SWTBOT test cases with Jenkins [message #1704964 is a reply to message #1704009] Tue, 11 August 2015 03:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I have added below code to pom.xml:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>com.cmp.proj.client.gui.ui</id>
<versionRange>6.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<application>com.cmp.proj.client.gui.ui.application</application>-->
<dependencies>
<dependency>
<type>eclipse-plugin</type>
<artifactId>com.cmp.proj.client.gui.ui</artifactId>
<version>6.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>

after running the pom.xml in Jenkins the below error is showing:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test (default-test) on project com.cmp.pro.client.gui.swtbot.test: Could not find application "com.cmp.proj.client.gui.ui.application" in the test runtime. Make sure that the test runtime includes the bundle which defines this application.

Here I am not able to understand the meaning of "test runtime includes the bundle which defines this application". What more need to include in the pom.xml so that the my application will lunch and test cases will executed.

Please help.
Re: Integrate SWTBOT test cases with Jenkins [message #1706094 is a reply to message #1704964] Sat, 22 August 2015 08:24 Go to previous message
Eclipse UserFriend
On 11/08/2015 09:19, Chetana Barhate wrote:
> Hello,
>
> I have added below code to pom.xml:
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>target-platform-configuration</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <dependency-resolution>
> <extraRequirements>
> <requirement>
> <type>eclipse-plugin</type>
> <id>com.cmp.proj.client.gui.ui</id>
> <versionRange>6.0.0</versionRange>
> </requirement>
> </extraRequirements>
> </dependency-resolution>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-surefire-plugin</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <useUIHarness>true</useUIHarness>
> <useUIThread>false</useUIThread>
> <application>com.cmp.proj.client.gui.ui.application</application>-->
> <dependencies>
> <dependency>
> <type>eclipse-plugin</type>
> <artifactId>com.cmp.proj.client.gui.ui</artifactId>
> <version>6.0.0</version>
> </dependency> </dependencies>
> </configuration>
> </plugin>
>
> after running the pom.xml in Jenkins the below error is showing:
> [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test (default-test) on
> project com.cmp.pro.client.gui.swtbot.test: Could not find application
> "com.cmp.proj.client.gui.ui.application" in the test runtime. Make sure
> that the test runtime includes the bundle which defines this application.
>
> Here I am not able to understand the meaning of "test runtime includes
> the bundle which defines this application". What more need to include in
> the pom.xml so that the my application will lunch and test cases will
> executed.
>
> Please help.

Hi

I think that you should only specify the dependency in the
target-platform-configuration not in the tycho-surefire-plugin

--
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:NPE in HandledContributionItem when testing application on eclipse 4.5
Next Topic:auto compile plugin
Goto Forum:
  


Current Time: Sun May 18 19:33:10 EDT 2025

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

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

Back to the top