Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » How to extend jubula for Pshelf widget (nebula)?
How to extend jubula for Pshelf widget (nebula)? [message #1257358] Wed, 26 February 2014 10:36 Go to next message
Rajesh Dash is currently offline Rajesh Dash
Messages: 32
Registered: January 2013
Member
Hi all;
I tried to extend pshelf widget (nebula component)But Jubula is not showing green border around it.I just want to check whether the pshelf widget is enabled or not..I deployed my features of my toolkit using upadte site.

Below code is the implementation of my tester class.

public class PshelfTester extends ButtonTester {
/**
* @return the casted Group instance
*/
protected PShelf getPshelf() {

return (PShelf) getRealComponent();
}

public void rcVerifyText(Boolean selected, String operator)
throws StepExecutionException {
final PShelf pshelfselected = getPshelf();
PShelf pshelf =(PShelf) getEventThreadQueuer()
.invokeAndWait("getSelection", new IRunnable() { //$NON-NLS-1$
public Object run() {
return pshelfselected.getSelection();
}
});
Verifier.equals(selected, pshelf.isEnabled());

}

My 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>38</minorVersion>
</configVersion>

<toolkitComponent type="org.eclipse.swt.widgets.Canvas" visible="true">
<realizes>guidancer.abstract.Widgets.Canvas</realizes>
<testerClass>org.eclipse.jubula.rc.swt.tester.PshelfTester</testerClass>
<componentClass name="org.eclipse.swt.widgets.Canvas" />
<action name="CompSystem.VerifyText" changed="1.11">
<method>rcVerifyText</method>
<param name="CompSystem.selected">
<type>java.lang.String</type>
</param>
<param name="CompSystem.Operator">
<type>java.lang.Boolean</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>

i18n.properties File

org.eclipse.swt.widgets.=(SWT) Canvas

But after doing all those I added to update site and installed it in jubula. But jubula could not detect this widget.Any feedback on this will be appreciated .




Re: How to extend jubula for Pshelf widget (nebula)? [message #1259270 is a reply to message #1257358] Fri, 28 February 2014 07:35 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1155
Registered: July 2009
Senior Member
Hi Rajesh,

The best place to look for help on this would be in the jubula rc-dev archives or even the jubula-dev archives. There have been a lot of threads there where we've helped out with extensions. If you don't find any answer in the threads, start a new one in the jubula rc-dev mailing list.

Bear in mind as well that you can also have the team implement it for you if you want to do it that way [1].

Best regards,
Alex

[1] http://testing.bredex.de/sponsored-development.html
Previous Topic:Store title of tab
Next Topic:Jubula 7.2 - missing Toolbar
Goto Forum:
  


Current Time: Sun Oct 26 00:20:57 GMT 2014

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

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