Test stoex editing functionality
Description
Environment
New stoex xtext implementation
Test Case Description
Test Step | Expected Result | |
---|---|---|
1 | Create an element that contains a RandomVariable | The element is created but if there is no standard value available, its value is null. An error marker is then shown besides it. |
2 | Open the StoEx xtext editor: Either press F2 or do a slow double-click. | The inline xtext editor is opened, content assist is available |
3 | Edit StoEx: Enter an invalid expression | When pressing "Enter", the editor does not close but forces focus. The background of the editor is red, errors are displayed through hovering over the "info" label at the left of the editor. |
4 | Edit StoEx: Stop editing through pressing "Esc" | The editor is closed and the value of the RandomVariable is the same as before. |
5 | Edit StoEx: Enter a valid expression | When pressing "Enter", the editor closes and the value of the RandomVariable is updated. The error marker is not shown anymore. |
Attachments
Activity
The problem with the error markers could be caused by the broken OCL validation; link test case to OCL ticket
check if test case description needs to be updated regarding OCL validation delegate settings
No matter what I enter the error mark does not go away, however when opening another editor (for example editing another Seff) then the marks disappear on the previously opened step. Its kind of an unpredictable behavior.
Step 1: not only an error marker besides it, an error mark on all other elements
result testing day 11-11-2020: test failed
Test hat nicht so gut funktioniert:
Rotfärbung bei falschen StoExen war eher zufällig da. Eine Regel nach der rot gefärbt wurde, gab es nicht zu erkennen.
Links war kein Info Label zu erkennen
Es gibt keine Option im Sirius Editor aus dem Inline Modus heraus die Bearbeitung im StoEx Dialog zu machen. Das ist problematisch, da der Platz inline sehr klein sein kann und die Schrift ebenso
This test checks the functionality of the stoex xtext editor.