Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2018-04-13 12:33:41 +0000
committerNicolas FAUVERGUE2018-04-25 08:47:33 +0000
commit0338fdec3ff6b708f94af02a14b665f749e3f48d (patch)
tree5f2bf7b009922d093474c1bb58446aabec4c3e67 /tests/functional
parenteca5f7ce5c84e3df968a9e31bc1cd0366b75b9cd (diff)
downloadorg.eclipse.papyrus-0338fdec3ff6b708f94af02a14b665f749e3f48d.tar.gz
org.eclipse.papyrus-0338fdec3ff6b708f94af02a14b665f749e3f48d.tar.xz
org.eclipse.papyrus-0338fdec3ff6b708f94af02a14b665f749e3f48d.zip
Bug 533503: [Sequence Diagram] The move of messages can resize life
lines if needed Tests for Move messages over life lines. Change-Id: I18196aa0407e1f449d8a6243779ad511a2cb73db Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move002_MoveMessageSyncOverLifeLine.test209
-rw-r--r--tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move003_MoveMessageCreateOverLifeLine.test182
-rw-r--r--tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move004_MoveMessageDeleteOverLifeLine.test178
3 files changed, 569 insertions, 0 deletions
diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move002_MoveMessageSyncOverLifeLine.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move002_MoveMessageSyncOverLifeLine.test
new file mode 100644
index 00000000000..da7413e9e77
--- /dev/null
+++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move002_MoveMessageSyncOverLifeLine.test
@@ -0,0 +1,209 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg
+Element-Name: move002_MoveMessageOverLifeLine
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _5NBtwD7zEeiwV4oloEiuHA
+Runtime-Version: 2.3.0.201803252310
+Save-Time: 4/13/18 10:43 AM
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | select "SequenceDiagramTest/SequenceDiagramTest" | double-click
+with [get-view "Model Explorer" | get-tree] {
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+ select "SequenceDiagramTest/NewSequenceDiagram" | double-click
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+}
+with [get-editor "SequenceDiagramTest.di"] {
+ get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 1859 8 -height 1000 -width 1892
+ with [get-palette | get-palette-entry Lifeline] {
+ mouse-move 66 19 button1 -height 23 -width 125
+ mouse-press 66 19 button1 -height 23 -width 125
+ mouse-release 66 19 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 185 30 button1 -height 738 -width 857
+ mouse-press 185 30 button1 -height 738 -width 857
+ mouse-release 185 30 button1 524288 -height 738 -width 857
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1] {
+ mouse-move 1352 134 -height 1000 -width 1892
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | get-edit-part -name Lifeline1 | get-edit-part -name Lifeline1 | activate-direct-edit
+ mouse-move 1348 134 -height 1000 -width 1892
+ mouse-hover 1348 134 -height 1000 -width 1892
+ mouse-move 1348 133 -height 1000 -width 1892
+ mouse-hover 1348 133 -height 1000 -width 1892
+ mouse-move 1352 114 -height 1000 -width 1892
+ mouse-hover 1352 114 -height 1000 -width 1892
+ mouse-move 1352 115 -height 1000 -width 1892
+ mouse-hover 1352 115 -height 1000 -width 1892
+ mouse-move 1884 110 -height 1000 -width 1892
+ }
+ with [get-palette] {
+ get-palette-entry "Action Execution Specification" | mouse-move 101 1 -height 37 -width 125
+ with [get-palette-entry Lifeline] {
+ mouse-move 71 7 -height 23 -width 125
+ mouse-hover 71 7 -height 23 -width 125
+ mouse-move 70 1 -height 23 -width 125
+ }
+ get-palette-entry Nodes | mouse-hover 70 22 -height 507 -width 125
+ with [get-palette-entry Lifeline] {
+ mouse-move 55 15 -height 23 -width 125
+ mouse-hover 55 15 -height 23 -width 125
+ }
+ get-palette-entry "Action Execution Specification" | mouse-move 54 35 -height 37 -width 125
+ with [get-palette-entry " Behavior Execution Specification"] {
+ mouse-move 51 0 -height 52 -width 125
+ mouse-hover 51 0 -height 52 -width 125
+ }
+ }
+ with [get-diagram -index 1] {
+ get-edit-part -name Interaction1 | mouse-move 1123 833 -height 1000 -width 1892
+ commit-direct-edit
+ }
+ with [get-palette] {
+ with [get-palette-entry "Action Execution Specification"] {
+ mouse-move 78 0 -height 37 -width 125
+ mouse-hover 78 0 -height 37 -width 125
+ }
+ with [get-palette-entry Lifeline] {
+ mouse-move 66 8 -height 23 -width 125
+ mouse-hover 66 8 -height 23 -width 125
+ mouse-move 66 8 button1 -height 23 -width 125
+ mouse-press 66 8 button1 -height 23 -width 125
+ mouse-release 66 8 button1 524288 -height 23 -width 125
+ }
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] {
+ mouse-move 398 0 -height 757 -width 857
+ with [get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 534 16 button1 -height 738 -width 857
+ mouse-press 534 16 button1 -height 738 -width 857
+ mouse-release 534 16 button1 524288 -height 738 -width 857
+ }
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1] {
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 669 147 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-edit-part -name Lifeline2 | activate-direct-edit
+ mouse-hover 669 147 -height 738 -width 857
+ }
+ mouse-move 1891 691 -height 1000 -width 1892
+ }
+ with [get-palette] {
+ get-palette-entry "Message Delete" | mouse-move 9 3 -height 23 -width 125
+ get-palette-entry "Message Create" | mouse-move 38 2 -height 23 -width 125
+ get-palette-entry "Message Reply" | mouse-move 51 1 -height 23 -width 125
+ get-palette-entry "Message Async" | mouse-move 67 0 -height 23 -width 125
+ get-palette-entry "Message Sync" | mouse-move 72 14 -height 23 -width 125
+ }
+ get-diagram -index 1 | commit-direct-edit
+ with [get-palette | get-palette-entry "Message Sync"] {
+ mouse-move 72 14 button1 -height 23 -width 125
+ mouse-press 72 14 button1 -height 23 -width 125
+ mouse-release 72 14 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 305 89 -height 738 -width 857
+ with [get-edit-part -name Lifeline1] {
+ mouse-move 52 68 button1 -height 700 -width 100
+ mouse-press 52 68 button1 -height 700 -width 100
+ mouse-release 52 68 button1 524288 -height 700 -width 100
+ }
+ with [get-edit-part -name Lifeline2] {
+ mouse-move 36 65 button1 -height 700 -width 100
+ mouse-press 36 65 button1 -height 700 -width 100
+ }
+ }
+ with [get-diagram -index 1] {
+ with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ get-edit-part -name Lifeline2 | mouse-release 36 65 button1 524288 -height 700 -width 100
+ mouse-move 689 127 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-target-connection -path 0 | get-edit-part -text Message3
+ | activate-direct-edit
+ mouse-hover 689 127 -height 738 -width 857
+ mouse-move 689 127 button1 -height 738 -width 857
+ mouse-press 689 127 button1 -height 738 -width 857
+ }
+ commit-direct-edit
+ with [get-edit-part -name Interaction1] {
+ with [get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-release 689 127 button1 524288 -height 738 -width 857
+ mouse-hover 689 127 -height 738 -width 857
+ }
+ mouse-move 1043 113 -height 1000 -width 1892
+ }
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline1 | get-figure -path "0/0"] {
+ get-property x | equals 174 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 700 | verify-true
+ }
+ with [get-edit-part -name Lifeline2] {
+ with [get-figure -path "0/0"] {
+ get-property x | equals 534 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 700 | verify-true
+ }
+ with [get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,0.09428571428571429)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,0.09428571428571429)" | verify-true
+ }
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] {
+ mouse-move 880 172 -height 1000 -width 1892
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 477 93 -height 738 -width 857
+ mouse-move 382 65 -height 738 -width 857
+ with [get-edit-part -name Lifeline2 | get-target-connection -path 0] {
+ mouse-move 208 34 button1 -height 53 -width 387
+ mouse-press 208 34 button1 -height 53 -width 387
+ }
+ mouse-move 423 552 -mask 524288 -height 738 -width 857
+ }
+ mouse-drag 406 873 button1 524288 -height 1000 -width 1892
+ mouse-release 406 873 button1 524288 -height 1000 -width 1892
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | get-edit-part -name Lifeline2] {
+ mouse-move 57 190 -height 846 -width 100
+ mouse-hover 57 190 -height 846 -width 100
+ }
+ mouse-move 1264 460 -height 1000 -width 1892
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline2 | get-figure -path "0/0"] {
+ get-property x | equals 534 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 846 | verify-true
+ }
+ with [get-edit-part -name Lifeline1 | get-figure -path "0/0"] {
+ get-property x | equals 174 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 846 | verify-true
+ }
+ with [get-edit-part -name Lifeline2 | get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,1.0)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,1.0)" | verify-true
+ }
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move003_MoveMessageCreateOverLifeLine.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move003_MoveMessageCreateOverLifeLine.test
new file mode 100644
index 00000000000..a2bbe4a0a76
--- /dev/null
+++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move003_MoveMessageCreateOverLifeLine.test
@@ -0,0 +1,182 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg
+Element-Name: move003_MoveMessageCreateOverLifeLine
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _8nbQsD72EeiwV4oloEiuHA
+Runtime-Version: 2.3.0.201803252310
+Save-Time: 4/13/18 1:33 PM
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | select "SequenceDiagramTest/SequenceDiagramTest" | double-click
+get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart | mouse-move 67 724
+ -height 738 -width 857
+with [get-view "Model Explorer" | get-tree] {
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+ select "SequenceDiagramTest/NewSequenceDiagram" | double-click
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+}
+with [get-editor "SequenceDiagramTest.di"] {
+ get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 1889 181 -height 1000 -width 1892
+ with [get-palette | get-palette-entry Lifeline] {
+ mouse-move 54 6 button1 -height 23 -width 125
+ mouse-press 54 6 button1 -height 23 -width 125
+ mouse-release 54 6 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 133 27 button1 -height 738 -width 857
+ mouse-press 133 27 button1 -height 738 -width 857
+ mouse-release 133 27 button1 524288 -height 738 -width 857
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1] {
+ mouse-move 1881 79 -height 1000 -width 1892
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | get-edit-part -name Lifeline1 | get-edit-part -name Lifeline1 | activate-direct-edit
+ }
+ get-palette | get-palette-entry Lifeline | mouse-move 44 12 -height 23 -width 125
+ get-diagram -index 1 | commit-direct-edit
+ with [get-palette | get-palette-entry Lifeline] {
+ mouse-move 44 12 button1 -height 23 -width 125
+ mouse-press 44 12 button1 -height 23 -width 125
+ mouse-release 44 12 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 435 17 button1 -height 738 -width 857
+ mouse-press 435 17 button1 -height 738 -width 857
+ mouse-release 435 17 button1 524288 -height 738 -width 857
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1] {
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 586 104 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-edit-part -name Lifeline2 | activate-direct-edit
+ }
+ mouse-move 1888 610 -height 1000 -width 1892
+ }
+ with [get-palette] {
+ get-palette-entry "Message Reply" | mouse-move 41 22 -height 23 -width 125
+ get-palette-entry "Message Create" | mouse-move 51 8 -height 23 -width 125
+ }
+ get-diagram -index 1 | commit-direct-edit
+ with [get-palette | get-palette-entry "Message Create"] {
+ mouse-move 51 8 button1 -height 23 -width 125
+ mouse-press 51 8 button1 -height 23 -width 125
+ mouse-release 51 8 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 245 199 -height 738 -width 857
+ with [get-edit-part -name Lifeline1] {
+ mouse-move 53 148 button1 -height 700 -width 100
+ mouse-press 53 148 button1 -height 700 -width 100
+ mouse-release 53 148 button1 524288 -height 700 -width 100
+ }
+ with [get-edit-part -name Lifeline2] {
+ mouse-move 37 148 button1 -height 700 -width 100
+ mouse-press 37 148 button1 -height 700 -width 100
+ }
+ }
+ with [get-diagram -index 1] {
+ with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline2] {
+ mouse-release 37 148 button1 524288 -height 700 -width 100
+ mouse-hover 37 11 -height 562 -width 100
+ }
+ mouse-move 494 140 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-target-connection -path 0 | get-edit-part -text Message3
+ | activate-direct-edit
+ mouse-move 497 134 -height 738 -width 857
+ mouse-hover 497 134 -height 738 -width 857
+ mouse-move 502 127 button1 -height 738 -width 857
+ mouse-press 502 127 button1 -height 738 -width 857
+ }
+ commit-direct-edit
+ with [get-edit-part -name Interaction1] {
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | mouse-release 502 127 button1 524288 -height 738 -width 857
+ mouse-move 885 183 -height 1000 -width 1892
+ }
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline1 | get-figure -path "0/0"] {
+ get-property x | equals 134 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 700 | verify-true
+ }
+ with [get-edit-part -name Lifeline2 | get-figure -path "0/0"] {
+ get-property x | equals 434 | verify-true
+ get-property y | equals 147 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 562 | verify-true
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] {
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | mouse-move 384 165 -height 738 -width 857
+ mouse-move 1217 188 -mask ALT -height 1000 -width 1892
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part
+ -name Lifeline2 | get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,0.20857142857142857)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,0.016014234875444844)" | verify-true
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] {
+ mouse-move 871 175 -height 1000 -width 1892
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 438 157 -height 738 -width 857
+ with [get-edit-part -name Lifeline2 | get-target-connection -path 0] {
+ mouse-move 200 33 button1 -height 53 -width 277
+ mouse-press 200 33 button1 -height 53 -width 277
+ mouse-release 200 33 button1 524288 -height 53 -width 277
+ mouse-move 187 31 -height 53 -width 277
+ mouse-hover 187 31 -height 53 -width 277
+ mouse-move 187 31 button1 -height 53 -width 277
+ mouse-press 187 31 button1 -height 53 -width 277
+ mouse-move 188 31 -mask 524288 -height 53 -width 277
+ }
+ }
+ mouse-drag 322 774 button1 524288 -height 1000 -width 1892
+ mouse-release 322 774 button1 524288 -height 1000 -width 1892
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ get-edit-part -name Lifeline2 | get-target-connection -path 0 | get-edit-part -text Message3
+ | mouse-hover 32 14 -height 15 -width 53
+ mouse-move 465 625 -height 871 -width 857
+ mouse-hover 465 625 -mask ALT -height 871 -width 857
+ }
+ mouse-move 920 458 -height 1000 -width 1892
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline1 | get-figure -path "0/0"] {
+ get-property x | equals 134 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 837 | verify-true
+ }
+ with [get-edit-part -name Lifeline2] {
+ with [get-figure -path "0/0"] {
+ get-property x | equals 434 | verify-true
+ get-property y | equals 747 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 100 | verify-true
+ }
+ with [get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,0.8912783751493429)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,0.09)" | verify-true
+ }
+ }
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move004_MoveMessageDeleteOverLifeLine.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move004_MoveMessageDeleteOverLifeLine.test
new file mode 100644
index 00000000000..a5e5ab51486
--- /dev/null
+++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/move/move004_MoveMessageDeleteOverLifeLine.test
@@ -0,0 +1,178 @@
+--- RCPTT testcase ---
+Format-Version: 1.0
+Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg
+Element-Name: move004_MoveMessageDeleteOverLifeLine
+Element-Type: testcase
+Element-Version: 3.0
+External-Reference:
+Id: _qSU0wD8OEeiwV4oloEiuHA
+Runtime-Version: 2.3.0.201803252310
+Save-Time: 4/13/18 1:35 PM
+Testcase-Type: ecl
+
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
+Content-Type: text/ecl
+Entry-Name: .content
+
+get-view "Project Explorer" | get-tree | select "SequenceDiagramTest/SequenceDiagramTest" | double-click
+with [get-view "Model Explorer" | get-tree] {
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+ select "SequenceDiagramTest/NewSequenceDiagram" | double-click
+ get-item -path "SequenceDiagramTest/NewSequenceDiagram" | click
+}
+with [get-editor "SequenceDiagramTest.di"] {
+ get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 1883 287 -height 1000 -width 1892
+ with [get-palette] {
+ get-palette-entry "Interaction Operand" | mouse-move 97 5 -height 37 -width 125
+ get-palette-entry "Combined Fragment" | mouse-move 111 35 -height 37 -width 125
+ get-palette-entry " Behavior Execution Specification" | mouse-move 111 4 -height 52 -width 125
+ get-palette-entry "Action Execution Specification" | mouse-move 92 0 -height 37 -width 125
+ with [get-palette-entry Lifeline] {
+ mouse-move 68 16 button1 -height 23 -width 125
+ mouse-press 68 16 button1 -height 23 -width 125
+ mouse-release 68 16 button1 524288 -height 23 -width 125
+ }
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] {
+ mouse-move 104 9 -height 757 -width 857
+ with [get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 117 25 button1 -height 738 -width 857
+ mouse-press 117 25 button1 -height 738 -width 857
+ mouse-release 117 25 button1 524288 -height 738 -width 857
+ }
+ }
+ get-palette | get-palette-entry "Action Execution Specification" | mouse-move 118 3 -height 37 -width 125
+ get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1 | get-edit-part
+ -name Lifeline1 | activate-direct-edit
+ with [get-palette] {
+ get-palette-entry "Action Execution Specification" | mouse-move 119 1 -height 37 -width 125
+ get-palette-entry Lifeline | mouse-move 72 11 -height 23 -width 125
+ }
+ get-diagram -index 1 | commit-direct-edit
+ with [get-palette | get-palette-entry Lifeline] {
+ mouse-move 72 11 button1 -height 23 -width 125
+ mouse-press 72 11 button1 -height 23 -width 125
+ mouse-release 72 11 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 440 21 button1 -height 738 -width 857
+ mouse-press 440 21 button1 -height 738 -width 857
+ mouse-release 440 21 button1 524288 -height 738 -width 857
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1] {
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 772 188 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-edit-part -name Lifeline2 | activate-direct-edit
+ }
+ mouse-move 1858 544 -height 1000 -width 1892
+ }
+ with [get-palette] {
+ get-palette-entry "Message Sync" | mouse-move 83 21 -height 23 -width 125
+ get-palette-entry "Message Async" | mouse-move 119 21 -height 23 -width 125
+ with [get-palette-entry "Message Create"] {
+ mouse-move 103 0 -height 23 -width 125
+ mouse-move 88 22 -height 23 -width 125
+ }
+ get-palette-entry "Message Delete" | mouse-move 88 7 -height 23 -width 125
+ }
+ get-diagram -index 1 | commit-direct-edit
+ with [get-palette | get-palette-entry "Message Delete"] {
+ mouse-move 88 7 button1 -height 23 -width 125
+ mouse-press 88 7 button1 -height 23 -width 125
+ mouse-release 88 7 button1 524288 -height 23 -width 125
+ }
+ with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 221 409 -height 738 -width 857
+ with [get-edit-part -name Lifeline1] {
+ mouse-move 55 406 button1 -height 700 -width 100
+ mouse-press 55 406 button1 -height 700 -width 100
+ mouse-release 55 406 button1 524288 -height 700 -width 100
+ }
+ with [get-edit-part -name Lifeline2] {
+ mouse-move 29 413 button1 -height 700 -width 100
+ mouse-press 29 413 button1 -height 700 -width 100
+ }
+ }
+ with [get-diagram -index 1] {
+ with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part
+ -className CInteractionInteractionCompartmentEditPart] {
+ get-edit-part -name Lifeline2 | mouse-release 29 413 button1 524288 -height 700 -width 100
+ mouse-move 595 401 -height 738 -width 857
+ get-edit-part -name Lifeline2 | get-target-connection -path 0 | get-edit-part -text Message3
+ | activate-direct-edit
+ mouse-move 595 401 button1 -height 738 -width 857
+ mouse-press 595 401 button1 -height 738 -width 857
+ }
+ commit-direct-edit
+ with [get-edit-part -name Interaction1] {
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | mouse-release 595 401 button1 524288 -height 738 -width 857
+ mouse-move 917 310 -height 1000 -width 1892
+ }
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline1 | get-figure -path "0/0"] {
+ get-property x | equals 114 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 700 | verify-true
+ }
+ with [get-edit-part -name Lifeline2] {
+ with [get-figure -path "0/0"] {
+ get-property x | equals 434 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 406 | verify-true
+ }
+ with [get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,0.58)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,1.0)" | verify-true
+ }
+ }
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] {
+ mouse-move 919 271 -height 1000 -width 1892
+ with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ mouse-move 316 399 -height 738 -width 857
+ with [get-edit-part -name Lifeline2 | get-target-connection -path 0] {
+ mouse-move 182 35 button1 -height 53 -width 347
+ mouse-press 182 35 button1 -height 53 -width 347
+ mouse-release 182 35 button1 524288 -height 53 -width 347
+ mouse-move 214 35 -height 53 -width 347
+ mouse-hover 214 35 -height 53 -width 347
+ mouse-move 217 35 button1 -height 53 -width 347
+ mouse-press 217 35 button1 -height 53 -width 347
+ mouse-move 217 36 -mask 524288 -height 53 -width 347
+ }
+ }
+ mouse-drag 348 805 button1 524288 -height 1000 -width 1892
+ mouse-release 348 805 button1 524288 -height 1000 -width 1892
+ get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart
+ | mouse-hover 347 786 -height 820 -width 857
+ mouse-move 1181 109 -height 1000 -width 1892
+}
+with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part
+ -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] {
+ with [get-edit-part -name Lifeline2 | get-figure -path "0/0"] {
+ get-property x | equals 434 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 766 | verify-true
+ }
+ with [get-edit-part -name Lifeline1] {
+ get-property x | equals 114 | verify-true
+ get-property y | equals 10 | verify-true
+ get-property width | equals 100 | verify-true
+ get-property height | equals 766 | verify-true
+ }
+ with [get-edit-part -name Lifeline2 | get-target-connection -path 0] {
+ get-property "sourceAnchor.id" | equals "(0.5,1.0)" | verify-true
+ get-property "targetAnchor.id" | equals "(0.5,1.0)" | verify-true
+ }
+}
+------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

Back to the top