Execution Error: "java.lang.NullPointerException [message #1747967] |
Thu, 17 November 2016 05:58  |
Eclipse User |
|
|
|
the error occures sometimes when i am executing my javafx test with drag and drop on shapes (Jubula Version: 8.3.1.125).
sometimes the test seems to be successful, because no error occurs, but the drag and drop in the AUT was not succesful. i am not sure why the error does not occur sometimes.
when i click in "Test Result" on the child were the Action Error occures then the following is shown in "Properties" tab in Error Details/Error Description:
-------------------------------
Execution Error: "java.lang.NullPointerException
at org.eclipse.jubula.rc.javafx.util.NodeBounds.getAbsoluteBounds(NodeBounds.java:81)
at org.eclipse.jubula.rc.javafx.driver.RobotJavaFXImpl$2.call(RobotJavaFXImpl.java:651)
at org.eclipse.jubula.rc.javafx.driver.RobotJavaFXImpl$2.call(RobotJavaFXImpl.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
"
-------------------------------
i executed the test again and this time i get an "Component Not Found Error" for the component of the same test step.
when i search for that component name in Component Name Browser or Object Mapping Editor it is there and "Highlight in AUT" is functioning also.
[Updated on: Thu, 17 November 2016 06:19] by Moderator
|
|
|
|
|
|
Re: Execution Error: "java.lang.NullPointerException [message #1748225 is a reply to message #1748219] |
Mon, 21 November 2016 06:42  |
Eclipse User |
|
|
|
Yes and Yes. However, we mainly use the name for the heuristic lookup and if the name for the component is unique we should reliably find that component. Could you check if that is the case? Or if the name of the component was generated by jubula, i.e. "ComponentType"_1,2.... In that case please check if providing a unique name for that component fixes the problem.
Have you already tried using a static wait, i.e. application_wait, before the drag and drop?
|
|
|
Powered by
FUDForum. Page generated in 0.04747 seconds