Archi Forum

Archi => Archi Development => Topic started by: Hervé on August 13, 2018, 14:25:56 PM

Title: RCPTT
Post by: Hervé on August 13, 2018, 14:25:56 PM
Dear all,

I'm trying to create automated tests using RCPTT (Rich Client Platform Testing Tool).

This tool is failing because of unresolved dependencies in Archi. Therefore, I need to re-generate an archi.target file.

Would it be possible to share the TPD file that is used to create the archi.target file ?

Thanks and regards
Hervé
Title: Re: RCPTT
Post by: Phil Beauvoir on August 13, 2018, 14:28:54 PM
Hi Hervé,

what are the unresolved dependencies?

What is a TPD file? The archi.target file was created manually.

Phil
Title: Re: RCPTT
Post by: Hervé on August 13, 2018, 15:00:07 PM
Hi Phil,

Thanks for your quick answer ... The Eclipse documentation describes TPD files as sources for target files, listing all the project dependencies.

If you haven't got such a file, I'll check if I can find some missing information in target file directly ...

For information, here are the error messages I've got using RCPTT. May be you've got some clues that would help me  :)

!SESSION 2018-08-13 15:43:47.663 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product com.archimatetool.editor.product -eclipse.keyring C:\Users\LRTW9499\rcpttWorkspace\.metadata\.plugins\org.eclipse.pde.core\com.archimatetool.editor.product/secure_storage
Command-line arguments:  -product com.archimatetool.editor.product -data C:\Users\user\rcpttWorkspace/../aut-com.archimatetool.editor.product-4 -dev file:C:/Users/LRTW9499/rcpttWorkspace/.metadata/.plugins/org.eclipse.pde.core/com.archimatetool.editor.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -eclipse.keyring C:\Users\LRTW9499\rcpttWorkspace\.metadata\.plugins\org.eclipse.pde.core\com.archimatetool.editor.product/secure_storage

!ENTRY org.eclipse.emf.ant 4 0 2018-08-13 15:43:51.011
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.ant [88]
  Unresolved requirement: Require-Bundle: org.apache.ant; bundle-version="[1.7.0,2.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.codegen 4 0 2018-08-13 15:43:51.014
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.codegen [89]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.codegen.ecore 4 0 2018-08-13 15:43:51.015
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.codegen.ecore [90]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.codegen.ecore.ui 4 0 2018-08-13 15:43:51.017
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.codegen.ecore.ui [91]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.codegen.ui 4 0 2018-08-13 15:43:51.019
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.codegen.ui [92]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"
  Unresolved requirement: Require-Bundle: org.eclipse.emf.codegen; bundle-version="[2.9.0,3.0.0)"
    -> Bundle-SymbolicName: org.eclipse.emf.codegen; bundle-version="2.9.0.v20140203-1126"; singleton:="true"
       org.eclipse.emf.codegen [89]
         Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.common 4 0 2018-08-13 15:43:51.020
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.common [94]
  Another singleton bundle selected: osgi.identity; osgi.identity="org.eclipse.emf.common"; type="osgi.bundle"; version:Version="2.13.0.v20170609-0707"; singleton:="true"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.converter 4 0 2018-08-13 15:43:51.022
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.converter [96]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Require-Bundle: org.eclipse.emf.codegen.ecore; bundle-version="[2.9.0,3.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.emf.codegen.ecore; bundle-version="2.9.1.v20140203-1126"; singleton:="true"
       org.eclipse.emf.codegen.ecore [90]
         Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"
  Unresolved requirement: Require-Bundle: org.eclipse.emf.codegen.ecore.ui; bundle-version="[2.9.0,3.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.emf.codegen.ecore.ui; bundle-version="2.9.1.v20140203-1126"; singleton:="true"
       org.eclipse.emf.codegen.ecore.ui [91]
         Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.ecore 4 0 2018-08-13 15:43:51.024
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.ecore [100]
  Another singleton bundle selected: osgi.identity; osgi.identity="org.eclipse.emf.ecore"; type="osgi.bundle"; version:Version="2.13.0.v20170609-0707"; singleton:="true"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.ecore.change 4 0 2018-08-13 15:43:51.025
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.ecore.change [102]
  Another singleton bundle selected: osgi.identity; osgi.identity="org.eclipse.emf.ecore.change"; type="osgi.bundle"; version:Version="2.11.0.v20170609-0707"; singleton:="true"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.ecore.editor 4 0 2018-08-13 15:43:51.027
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.ecore.editor [105]
  Unresolved requirement: Require-Bundle: org.eclipse.core.resources; bundle-version="[3.5.0,4.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

!ENTRY org.eclipse.emf.ecore.xmi 4 0 2018-08-13 15:43:51.028
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.emf.ecore.xmi [107]
  Another singleton bundle selected: osgi.identity; osgi.identity="org.eclipse.emf.ecore.xmi"; type="osgi.bundle"; version:Version="2.13.0.v20170609-0707"; singleton:="true"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
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)

(truncated)


thanks and regards
Hervé

Title: Re: RCPTT
Post by: Phil Beauvoir on August 13, 2018, 15:02:09 PM
You could try setting the target to the Eclipse SDK itself in Preferences.
Title: Re: RCPTT
Post by: Hervé on August 13, 2018, 15:04:37 PM
I tried, but without success   :(
Title: Re: RCPTT
Post by: Phil Beauvoir on August 13, 2018, 15:39:29 PM
How have you set things up? How have you installed RCPTT and how are you running it?
Title: Re: RCPTT
Post by: Hervé on August 13, 2018, 15:41:48 PM
I tried both the standalone software and the Eclipse plugin and it fails in both cases.
Title: Re: RCPTT
Post by: Phil Beauvoir on August 13, 2018, 15:48:23 PM
Fails when? On installation? When running? Need more.....info... 8)
Title: Re: RCPTT
Post by: Hervé on August 13, 2018, 16:11:15 PM
They fail on running, with the error messages provided earlier.

I'll provide you with more information and screenshots tonight.

Thanks and regards
Hervé
Title: Re: RCPTT
Post by: Hervé on August 14, 2018, 10:43:29 AM
My apologies, I haven't had time yesterday night to do the screenshots. I'll sent it to you asap ...

Best regards
Hervé
Title: Re: RCPTT
Post by: Hervé on August 16, 2018, 09:10:40 AM
Here are the screenshots.

I installed RCPTT from the Eclipse Marketplace:
(https://forum.archimatetool.com/index.php?action=dlattach;topic=550.0;attach=476)
(https://forum.archimatetool.com/index.php?action=dlattach;topic=550.0;attach=478)

Then I defined the archi.product as application under test:
(https://forum.archimatetool.com/index.php?action=dlattach;topic=550.0;attach=480)

and run it ...

Which generates errors:
(https://forum.archimatetool.com/index.php?action=dlattach;topic=550.0;attach=482)
(https://forum.archimatetool.com/index.php?action=dlattach;topic=550.0;attach=484)

I also tested with the standalone version of RCPTT downloaded from https://www.eclipse.org/rcptt (https://www.eclipse.org/rcptt) with same result.

Best regards
Hervé
Title: Re: RCPTT
Post by: Phil Beauvoir on August 16, 2018, 09:53:25 AM
I haven't used RCPTT, so I can only guess about this.

Clearly some dependencies are missing. The product file should be OK - assuming you have the org.opengroup.archimate.xmlexchange.feature added as well, or you can remove that from the product file. So you need to add a new target. I would keep adding things to the target until it worked. I would start with the EMF SDK and the Eclipse SDK.
Title: Re: RCPTT
Post by: Hervé on August 16, 2018, 09:56:14 AM
Yes, with a fellow developer, we're working on the target file ... I'll let you know if we succeed  :)
Title: Re: RCPTT
Post by: Phil Beauvoir on August 16, 2018, 12:19:47 PM
I installed RCPTT.

I then manually added missing dependencies to the archi.target and also the archi.product file, and also manually added required plugins to the archi.product launch configuration tab. I think I installed EMF Transaction and EMF Validation plugins. After a lot of trial and error I still got error messages about missing dependencies.

TBH, it was not a good experience and I uninstalled it.  :o