Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Jenkins Integration Question(Running test fails to run in Jenkins: Cannot open Window)
Jenkins Integration Question [message #1700236] Wed, 01 July 2015 05:27 Go to next message
Oscar Slotosch is currently offline Oscar SlotoschFriend
Messages: 14
Registered: April 2012
Junior Member
Hello,
I am testing an RCP (EMF) application. The first step is just to create a new model by opening the new menu:
get-menu "File/New Model/Tool Chain Analyzer Model" | click
with [get-window New] {
get-editbox -after [get-label File] | set-text "MyModel.tca"
get-button Finish | click
}
Test is running as expected, however in Jenkins it reports an error: "Window "New" could not be found."
I attached my pom, in case this helps to analyze it

Any ideas?

[Updated on: Thu, 02 July 2015 13:23]

Report message to a moderator

Re: Jenkins Integration Question [message #1700252 is a reply to message #1700236] Wed, 01 July 2015 09:16 Go to previous messageGo to next message
Oscar Slotosch is currently offline Oscar SlotoschFriend
Messages: 14
Registered: April 2012
Junior Member
The same problem occurs without maven, if we just call from command line (in Jenkins):

java -jar C:\tca\rcptt.runner-incubation-1.5.6-N201504271107\eclipse\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar ^
-application org.eclipse.rcptt.runner.headless ^
-data workspace ^
-aut %WORKSPACE%\product\TCA ^
-import de.validas.tca.tests.rcptt ^
-junitReport rcptt_tests.xml ^
-autArgs -nosplash ^
-noSecurityOverride

The log file of the AUT complains on missing bundles:

java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments: -product ToolChainAnalyzer.product -noSecurityOverride -eclipse.keyring C:\jenkins\workspace\RCPTT_Test\workspace\.metadata\.plugins\org.eclipse.pde.core\AUT_0/secure_storage
Command-line arguments: -product ToolChainAnalyzer.product -data C:\jenkins\workspace\RCPTT_Test\aut-TCA-0 -dev file:C:/jenkins/workspace/RCPTT_Test/workspace/.metadata/.plugins/org.eclipse.pde.core/AUT_0/dev.properties -ws win32 -noSecurityOverride -os win32 -arch x86_64 -consoleLog -eclipse.keyring C:\jenkins\workspace\RCPTT_Test\workspace\.metadata\.plugins\org.eclipse.pde.core\AUT_0/secure_storage

!ENTRY org.eclipse.rcptt.ctx.workbench.aspect 4 0 2015-06-30 16:32:01.656
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.rcptt.ctx.workbench.aspect [10]
Unresolved requirement: Require-Bundle: org.eclipse.ui.views.log

at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Re: Jenkins Integration Question [message #1700351 is a reply to message #1700252] Thu, 02 July 2015 06:48 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Oscar,

Could you please attach:

1) Full console log;
2) Maven Log;
3) Test Case.

Regarding the attached log - it looks like you are trying to execute 1.5.6 Runner. Could you please download 2.0.0 released RCPTT Runner and try again?
Please note that a launcher name differs from 1.5.6 Runner's (https://www.eclipse.org/rcptt/documentation/userguide/runner/arguments/)

Kind regards,
Ulyana.
Re: Jenkins Integration Question [message #1700418 is a reply to message #1700351] Thu, 02 July 2015 13:16 Go to previous messageGo to next message
Oscar Slotosch is currently offline Oscar SlotoschFriend
Messages: 14
Registered: April 2012
Junior Member
Hello Ulyyana,
thank you very much for supporting me.
I think we solved the missing bundles (by adding them to our product:-( but it still does not work
and the error message "Window "New" could not be found."

I attached you our test case with the output from Jenkins
Re: Jenkins Integration Question [message #1710761 is a reply to message #1700418] Fri, 09 October 2015 05:02 Go to previous message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Oscar,

Are you still experiencing the issue with Jenkins? Did you try RCPTT 2.0.1 release?
Could you please attach a runner and aut log file (you can find it inside target directory in aut-ws-../.metadata/.log and runner-workspace/.metadata/.log).

Kind regards,
Ulyana.
Previous Topic:[SOLVED WITH WORKAROUND] How get value of first item from table?
Next Topic:Rerun failed tests with Runner
Goto Forum:
  


Current Time: Fri Apr 26 09:17:10 GMT 2024

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

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

Back to the top