|
|
|
|
|
|
|
|
|
|
| Re: Extend Jubula [message #759876 is a reply to message #759840] |
Wed, 30 November 2011 07:54   |
Tommy R Messages: 19 Registered: October 2011 Location: Hamburg |
Junior Member |
|
|
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 #759904 is a reply to message #759891] |
Wed, 30 November 2011 09:13   |
Tommy R Messages: 19 Registered: October 2011 Location: Hamburg |
Junior Member |
|
|
Ok, the problem was, that the verification (Verifier.equals(...)) was handled inside of the runnable, which did not work. We now use the getEventThreadQueuer().invokeAndWait to get the control data and after that we use the Verifier (outside of the runnable) like it was done in the LabelImplClass for example.
Thanks at all for the help.
Regards,
Tommy
[Updated on: Wed, 30 November 2011 09:13] Report message to a moderator
|
|
|
|
|
| Re: Extend Jubula [message #1036320 is a reply to message #1034456] |
Mon, 08 April 2013 04:23  |
Tommy R Messages: 19 Registered: October 2011 Location: Hamburg |
Junior Member |
|
|
Sascha Neuhausen wrote on Fri, 05 April 2013 08:56Is there a new version for 2.0 available?
Hi Sascha,
sorry to disappoint you, but we are not doing our gui tests with Jubula anymore (management decision). Therefore we are not going to update the guide to Jubula 2.0 in the near future.
Greetings
Tommy
|
|
|
Powered by
FUDForum. Page generated in 0.02145 seconds