Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Extending the RCP-Toolkit
Extending the RCP-Toolkit [message #1651933] Thu, 05 March 2015 15:55 Go to next message
Janine Kayser is currently offline Janine KayserFriend
Messages: 14
Registered: November 2012
Junior Member
Hi,

I'm currently evaluating Jubula and have a look at how much of our product we can test with it. A major part of out product consists of a nebula grid widget. Since this is not included in Jubula's default toolkits I'm currently looking into making our own toolkit plugin for this purpose.

I m currently having the problem that I can see the components and actions added by my plug-in but I'm not able to start my RCP-Application anymore via Jubula. How can I extend the RCP toolkit without loosing the functionality for starting and automatically generating names

Since I'm still kind of new to the usage of Jubula can you please tell me where my problem is?
It might be because my ToolkitProvider extends SWTToolkitProvider since ToolkitProvider from toolkit.rcp.provider is not exported by its plug-in.

Current Situation

My project/AUT configutation uses both use "Extended RCP Toolkit" as toolkit.

ExtendedRCPToolkitProvider
package org.example.jubulaplugin.nebula.grid.toolkit;

import java.net.URL;
import java.util.ResourceBundle;

import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
import org.eclipse.jubula.toolkit.swt.provider.SWTToolkitProvider;

public class ExtendedRCPToolkitProvider extends SWTToolkitProvider
{
    public static final String L18NBUNDLE = "org.example.jubulaplugin.nebula.grid.toolkit.i18n.i18n";

    @Override
    public URL getComponentConfigurationFileURL()
    {
        return ToolkitUtils.getURL(Activator.getDefault().getBundle(), "resources/xml/ComponentConfiguration.xml");
    }

    @Override
    public ResourceBundle getResourceBundle()
    {
        return ResourceBundle.getBundle(L18NBUNDLE);
    }

}



ComponentConfiguration.xml
<compSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../org.eclipse.jubula.toolkit.common/resources/xml/ToolkitComponentConfiguration.xsd">
	<configVersion>
		<majorVersion>1</majorVersion>
		<minorVersion>0</minorVersion>
	</configVersion>

	<toolkitComponent type="org.eclipse.nebula.widgets.grid.Grid" visible="true">
		<testerClass>org.eclipse.jubula.ext.ExtendedRCPTester</testerClass>
		<realizes>org.eclipse.swt.widgets.Tree</realizes>
		<componentClass name="org.eclipse.nebula.widgets.grid.Grid" /> 
		<action name="CompSystem.Less" changed="1.11">
			<method>rcVerifyText</method>
			<param name="CompSystem.Text">
				<type>java.lang.String</type>
			</param>
			<param name="CompSystem.Operator">
				<type>java.lang.String</type>
				<defaultValue>equals</defaultValue>
				<valueSet>
					<element name="CompSystem.Equals" value="equals" />
					<element name="CompSystem.NotEquals" value="not equals" />
					<element name="CompSystem.MatchesRegExp" value="matches" />
					<element name="CompSystem.SimpleMatch" value="simple match" />
				</valueSet>
			</param>
		</action>
	</toolkitComponent>
</compSystem>

Please don't mind the defined action. I only chose a name that i could identify quickly for testing purposes.


plugin.xml
<plugin>
   <extension
         point="org.eclipse.jubula.toolkit.common.toolkitsupport">
      <toolkit
            IToolkitProvider="org.example.jubulaplugin.nebula.grid.toolkit.ExtendedRCPToolkitProvider"
            includes="com.bredexsw.guidancer.RcpToolkitPlugin"
            isUserToolkit="true"
            level="toolkit"
            name="Extended RCP Toolkit"
            order="11"
            toolkitID="org.example.jubulaplugin.nebula.grid.toolkit">
      </toolkit>
   </extension>
</plugin>


I m not using the feature and update site mechanics. For easy testability I'm just exporting the plug-in, putting it into Jubula's plugin folder and reffering to it in the osgi.bundles of the config.ini.

[Updated on: Fri, 06 March 2015 09:54]

Report message to a moderator

Re: Extending the RCP-Toolkit [message #1659608 is a reply to message #1651933] Sun, 08 March 2015 22:38 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Thanks for putting this in. I can't answer it, but I'll forward it on and get back to you.

Best regards,
Alex
Re: Extending the RCP-Toolkit [message #1664121 is a reply to message #1659608] Tue, 10 March 2015 18:56 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Janine,

I spoke to a developer on the team and here's the feedback:

The best thing to do would be to open a bug in the Eclipse Jubula Bugzilla:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jubula

Please add the following information:
- Attach as a zip the whole extension (both the toolkit and rc parts)
- Describe what modifications you've made to the AUT, since it should be reasonably difficult to achieve the non-starting of an RCP AUT - we're interested to see how this happened.

We'll take a look at this when the ticket is opened - but if you want us to put it at the top of our priority list then you might want to check out the options for professional support (1) which let the team concentrate on individual specific problems like this in a short time frame and with more detailed assistance.

Best regards,
Alex

(1) http://testing.bredex.de/overview-products-services.html and http://testing.bredex.de/support.html
Re: Extending the RCP-Toolkit [message #1682103 is a reply to message #1664121] Tue, 17 March 2015 15:47 Go to previous messageGo to next message
Janine Kayser is currently offline Janine KayserFriend
Messages: 14
Registered: November 2012
Junior Member
I figured out that the problems I was facing were due to wrong usage of the extension point. Intendend to extend the rcp-toolkit and not write an new toolkit including features from RCP which is what to configuration shown above actually does.

If you want to extend an existing toolkit fill in the depends field with the toolkit you want to extend and leave the include field blank.


Re: Extending the RCP-Toolkit [message #1684120 is a reply to message #1682103] Wed, 18 March 2015 09:42 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Janine,

Thanks for getting back to us and providing the solution! I'm glad you could solve your problem.

Best regards,
Alex
Previous Topic:QEMU Emulator launch fails with Jubula on Linux host
Next Topic:Click on Text
Goto Forum:
  


Current Time: Sun Mar 03 07:07:59 GMT 2024

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

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

Back to the top