Accessing custom widgets from Java API [message #1684781] |
Wed, 18 March 2015 15:22 |
Janine Kayser Messages: 14 Registered: November 2012 |
Junior Member |
|
|
Hi
I'm working on a Jubula Extension for Nebula Grid. Current state is that the extension works just fine using Jubula IDE or testexec.exe in combination with embedded AUT Agent and standalone AUT Agent.
The problem is that when using the Java API in combination with either embedded AUT Agent oder standalone AUT Agent the test steps testing the Nebula Grid widget fail with a "component not found" message. Test steps using standard widgets work just fine.
I have found instructions for using the Java API as well as on how to extend existing toolkits and managed both so far but now I m failing at the combination of both which seems not documented at all.
Can the Java API be used in combination with plugins supporting custom controls at all?
If that's the case what are the requirements?
Currently I manually create the CAPs and execute them.
final MessageCap messageCap = new MessageCap();
messageCap.setMethod("rcSelect"); //$NON-NLS-1$
messageCap.sethasDefaultMapping(false);
messageCap.setCi((IComponentIdentifier) OM.Editor);
Validate.notNull(SearchType.absolute, "Argument 'pathType' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(SearchType.absolute.rcValue(), "java.lang.String")); //$NON-NLS-1$
Validate.notNull(0, "Argument 'preAscend' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(String.valueOf(0), "java.lang.Integer")); //$NON-NLS-1$
Validate.notNull("Document/Name", "Argument 'textpath' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(String.valueOf("Quantitative Response Assay/Name"), "java.lang.String")); //$NON-NLS-1$
Validate.notNull(Operator.equals, "Argument 'operator' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(Operator.equals.rcValue(), "java.lang.String")); //$NON-NLS-1$
Validate.notNull(1, "Argument 'numberOfClicks' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(String.valueOf(1), "java.lang.Integer")); //$NON-NLS-1$
Validate.notNull(InteractionMode.primary, "Argument 'mouseButton' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(InteractionMode.primary.rcValue(), "java.lang.Integer")); //$NON-NLS-1$
Validate.notNull(BinaryChoice.no, "Argument 'extendSelection' must not be null"); //$NON-NLS-1$
messageCap.addMessageParam(new MessageParam(BinaryChoice.no.rcValue(), "java.lang.String")); //$NON-NLS-1$
m_Aut.execute(messageCap, new Date());
Regards Janine
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03393 seconds