| Problems extending Jubula to support SWT Links [message #875872] |
Wed, 23 May 2012 09:36  |
Michael Werter Messages: 4 Registered: May 2012 |
Junior Member |
|
|
Hello,
to test an application I need Jubula to be able to map SWT links and to perform some actions on these links (e.g. clicking).
So I tried to extend Jubula to support SWT links. As a starting point I had a look at the example provided on the subshell blog. Adapting that code to refer to SWT links and installing the created client plugin caused Jubula to crash during startup.
The exceptions in the .log file complain about multiple definitions of org.eclipse.swt.widgets.Link
Quote:
Caused by: org.eclipse.jubula.tools.exception.GDConfigXmlException: multiple definition of component type org.eclipse.swt.widgets.Link
at org.eclipse.jubula.toolkit.common.xml.businessprocess.ComponentBuilder.getCompSystem(ComponentBuilder.java:197)
at org.eclipse.jubula.client.core.ClientTest.<init>(ClientTest.java:204)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.jubula.client.core.ClientTestFactory.getClientTest(ClientTestFactory.java:44)
at org.eclipse.jubula.client.ui.rcp.controllers.TestExecutionContributor.<init>(TestExecutionContributor.java:98)
at org.eclipse.jubula.client.ui.rcp.controllers.TestExecutionContributor.getInstance(TestExecutionContributor.java:783)
at org.eclipse.jubula.client.ui.rcp.Plugin.registerPermanentServices(Plugin.java:1036)
at org.eclipse.jubula.client.ui.rcp.Plugin.start(Plugin.java:1022)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 70 more
After some time I discovered, that org.eclipse.swt.widgets.Link is already defined by Jubula itself in the ComponentConfiguration.xml of org.eclipse.jubula.toolkit.provider.swt.
I tried to change the <realize> tag into an <extends> tag after a look at the corresponding xsd file. But unfortunately that did not work either.
How am I able to extend the functionality of graphical components already defined by Jubula, especially org.eclipse.swt.widgets.Link? Is there some available documentation of the meanings of the XML-tags available in ComponentConfiguration.xml?
Thanks,
Michael
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05613 seconds