|
|
|
|
|
|
|
|
|
|
Re: Extend Jubula [message #759876 is a reply to message #759840] |
Wed, 30 November 2011 07:54   |
Eclipse User |
|
|
|
Finally it's running now, at least somehow.
First of all: Thanks for the hint with the (hidden) log-file, this one helped a lot.
We did not get a UnsupportedComponentException, so our class has been found. On strict search, we found a org.eclipse.swt.SWTException: Invalid thread access involving our public method in the ImplClass. So we made a syncExec on the display of the component, so it looks like this now:
package org.eclipse.jubula.rc.swt.implclasses;
import org.eclipse.jubula.rc.common.implclasses.Verifier;
public class CanvasImplClass extends ControlImplClass {
public void verifyControlData(final String key, final String expectedValue) {
final Control component = getComponent();
component.getDisplay().syncExec(new Runnable() {
@Override
public void run() {
Object data = component.getData(key);
if (data != null) {
Verifier.equals(expectedValue, data.toString());
} else {
Verifier.equals(expectedValue, "");
}
}
});
}
}
That fixed the org.eclipse.swt.SWTException: Invalid thread access.
Now we still get the Configuration error, but the log file says: org.eclipse.jubula.rc.common.exception.StepVerifyFailedException: Expected 'xyz' but was ''
Now I'd like to know, how you can make this a simple Check Error, like the checks in the unbound_xyz-libraries.
Regards.
|
|
|
|
|
|
|
|
|
Re: Extend Jubula [message #1186010 is a reply to message #756170] |
Thu, 14 November 2013 07:13  |
Eclipse User |
|
|
|
Hi Marc
Have you been successful in extending Jubula.?Can you help me with the links,code or anything in this regard.
Thanks in Advance
Alok
|
|
|
Powered by
FUDForum. Page generated in 0.06180 seconds