Community
Participate
Working Groups
Precondition: Import attached project and open ub_syn_tre_assertNodeAvailability(ABSOLUTE_TEXT_PATH_MATCHES) Select the event handler. The attached error will occur. The event handler cannot be removed. Creating an identical test case leads to the same error. 1. Therefore you have to save the new test case. 2. close and reopen project 3. The arguments of the event handler have been moved up (PATH TYPE is now 0, PRE_ASCEND is textpath, TEXTPATH is matching and OPERATOR is empty) 4. Put in the correct values again 5. Save and you get the error again This error has been found using Jubula in the IDE with the last nightly build (#168)
When selecting the properties view of the event handler after the error occured PATH TYPE and PRE_ASCEND are correct, TEXTPATH is empty and OPERATOR is missing. While trying to enter TEXPATH the error occured again.
There is currently no attachment to reproduce this issue.
Created attachment 196307 [details] Project to reproduce bug Sorry I forget to add attachment. So here it is. To reproduce the bug you need to look for the test case "REMOVE(...)"
I was unable to reproduce the problem directly, as the attached Project did not contain the mentioned Event Handler. I believe this is an additional side-effect of the error (that Event Handlers that cannot be successfully modified also cannot be exported). However, I was able to provoke a similar error by opening a Test Case using the keyboard shortcut (Ctrl+Shift+T), adding an Event Handler, closing the editor, re-opening the editor using the keyboard shortcut, and finally deleting the Event Handler. This caused a NullPointerException due to inability to correctly calculate the parent node of the Event Handler. http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=ccef22fabcfb5459fdbfcaf0223c99229e43375d should resolve the issue.
Verified manually.