How to extend jubula for Pshelf widget (nebula)? [message #1257358] |
Wed, 26 February 2014 10:36 |
|
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 .
|
|
|
|
Powered by
FUDForum. Page generated in 0.02870 seconds