Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Integrate SWTBOT test cases with Jenkins
Integrate SWTBOT test cases with Jenkins [message #1703968] Thu, 06 August 2015 09:40 Go to next message
Chetana Barhate is currently offline Chetana BarhateFriend
Messages: 18
Registered: February 2014
Junior Member
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 15:37 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1751
Registered: July 2009
Location: Firenze, Italy
Senior Member
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 07:19 Go to previous messageGo to next message
Chetana Barhate is currently offline Chetana BarhateFriend
Messages: 18
Registered: February 2014
Junior Member
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 12:24 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1751
Registered: July 2009
Location: Firenze, Italy
Senior Member
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 Sep 23 17:41:29 GMT 2018

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

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

Back to the top