Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » RCPTT has long timeout and fails replaying recorded scrtip
RCPTT has long timeout and fails replaying recorded scrtip [message #1789979] Fri, 01 June 2018 12:59 Go to next message
Niklaus Giger is currently offline Niklaus GigerFriend
Messages: 16
Registered: August 2011
Junior Member
I experimented using RCPTT for running GUI-Tests for our open source Eclipse RCP application Elexis.

I was quite impressed and it looks like having all the needed functionality to create efficiently GUI tests.

I am however stuck with the following error:

* When replaying the lines

Quote:

log "GetAllViews: Started 3"
get-menu -path "Fenster/Ansicht/Other..." | click
log "GetAllViews: Got Menu"
with [get-window "Show View"] {
log "GetAllViews: 2"
get-tree | select "Other/Fixmedikation"
log "GetAllViews: 3"
get-button Open | click
log "GetAllViews: 4"
}

I only see in the aut-ws-0/.metadata/.log

Quote:

!ENTRY org.eclipse.rcptt.runner 1 0 2018-06-01 14:35:38.994
!MESSAGE [AUT-0] Starting: GetAllViews.test (0 from 1)

!ENTRY org.eclipse.rcptt.runner 1 0 2018-06-01 14:38:34.619
!MESSAGE [AUT-0] Finished: GetAllViews.test in 175290, Execution timed out after 90 seconds (0 from 1)

Under https://github.com/ngiger/elexis-3-core/tree/rcptt you find the commit https://github.com/ngigerhttps://github.com/ngiger/elexis-3-core/commit/42e8492d2022a30e1e52e487fb795311b3f72cb8 which contains all the changes made to run a simple GUI test.

The steps to reproduce were (using maven 3.3.9) and java8:
* git clone https://github.com/ngiger/elexis-3-core.git
* cd elexis-3-core
* git checkout rcptt
* mvn clean verify -Pall-archs -Dmaven.test.skip=true
* cd GUI-tests/

Attached are:
* target/runner-workspace/.metadata/.log
* target/aut-ws-0/.metadata/.log
* log of maven run in GUI-tests
* HTML result: target/results/elexisBasicTests.html

It remarked, that when starting I get errors about the following missing bundles:
org.apache.ant, org.eclipse.jdt.core, org.eclipse.emf.common,org.eclipse.emf.common.ui.org.eclipse.emf.databinding,org.eclipse.emf.ecore

Does anybody have a hint? Is it our application that blocks an interaction? How must/can I add the missing bundles?

Thanks in advance for your feedback.
  • Attachment: .log
    (Size: 20.14KB, Downloaded 12 times)
  • Attachment: .log
    (Size: 67.45KB, Downloaded 8 times)
  • Attachment: maven.log
    (Size: 29.17KB, Downloaded 9 times)
  • Attachment: elexisBasicTests.html
    (Size: 60.27KB, Downloaded 7 times)
Re: RCPTT has long timeout and fails replaying recorded scrtip [message #1791374 is a reply to message #1789979] Thu, 28 June 2018 12:28 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
Registered: March 2017
Senior Member
Hi Niklaus,

I've got an error when I tried to reproduce the issue. Seems download.elexis.info is unavailable:

[INFO] Computing target platform for MavenProject: ch.elexis.core:ch.elexis.core.l10n:3.6.0-SNAPSHOT @ /home/viktoria/elexis-3-core/bundles/ch.elexis.core.l10n/.polyglot.build.properties
[INFO] Adding repository http://download.elexis.info/elexis-server/1.5/p2/elexis-server
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'elexis.3.server' from location http://download.elexis.info/elexis-server/1.5/p2/elexis-server/: Unable to read repository at http://download.elexis.info/elexis-server/1.5/p2/elexis-server/content.xml. Connect to download.elexis.info:80 timed out -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'elexis.3.server' from location http://download.elexis.info/elexis-server/1.5/p2/elexis-server/
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 'elexis.3.server' from location http://download.elexis.info/elexis-server/1.5/p2/elexis-server/
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:302)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits(TargetPlatformFactoryImpl.java:270)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:176)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:128)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform(ReactorRepositoryManagerImpl.java:84)
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform(P2DependencyResolver.java:223)
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:109)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:95)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at http://download.elexis.info/elexis-server/1.5/p2/elexis-server/content.xml.
at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:243)
at org.eclipse.tycho.p2.remote.RemoteRepositoryCacheManager.createCache(RemoteRepositoryCacheManager.java:67)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:61)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:53)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:298)
... 22 more
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to download.elexis.info:80 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: RCPTT has long timeout and fails replaying recorded scrtip [message #1791383 is a reply to message #1791374] Thu, 28 June 2018 13:50 Go to previous messageGo to next message
Niklaus Giger is currently offline Niklaus GigerFriend
Messages: 16
Registered: August 2011
Junior Member
Hi Viktoria

Thanks for looking at my problem. As we branched of a release branch 3.6, building the rcptt-branch got messed up. I rebased it on the 3.6 branch, which should be stable.

Please pull in my changes from https://github.com/ngiger/elexis-3-core/commits/rcptt. last commit is "Second try with RCPTT. Why does it hang?"


Best regards
Re: RCPTT has long timeout and fails replaying recorded scrtip [message #1791441 is a reply to message #1791383] Fri, 29 June 2018 12:09 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
Registered: March 2017
Senior Member
For some reason test execution tooks about 4 min (it is needed to profile your app to find a root cause).
Try to set execution timeout to 300 sec.
Re: RCPTT has long timeout and fails replaying recorded scrtip [message #1792251 is a reply to message #1791441] Fri, 13 July 2018 09:20 Go to previous message
Niklaus Giger is currently offline Niklaus GigerFriend
Messages: 16
Registered: August 2011
Junior Member
This seems to be a Linux specific problem, running the same tests under Windows works fine.
But what is weird, is that running the test under MacOSX 10.9 never starts the AUT but just reports that there are no tests errors.
Previous Topic:Adding an application via .product file
Next Topic:RCPTT working with Eclipse Photon?
Goto Forum:
  


Current Time: Wed Aug 15 10:48:34 GMT 2018

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

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

Back to the top