diff options
author | Yupanqui Munoz | 2018-02-23 13:46:06 +0000 |
---|---|---|
committer | Quentin Le Menez | 2018-02-23 15:07:35 +0000 |
commit | d27674e978cc0c09ef7daa43eed253b1faddb039 (patch) | |
tree | 85f64e8e4638c598ff53c38e5e9fec2e5cbf2378 /tests/functional | |
parent | 50512e9ee28873453de392dd2ba04adaccb67659 (diff) | |
download | org.eclipse.papyrus-d27674e978cc0c09ef7daa43eed253b1faddb039.tar.gz org.eclipse.papyrus-d27674e978cc0c09ef7daa43eed253b1faddb039.tar.xz org.eclipse.papyrus-d27674e978cc0c09ef7daa43eed253b1faddb039.zip |
Bug 531539 - [SequenceDiagram] Functional Tests for sequence diagram
using RCPTT
Change-Id: Ic0750150969e83c693a5175ba3d695db4656cdcc
Signed-off-by: Yupanqui Munoz <yupanqui.munozjulho@cea.fr>
Diffstat (limited to 'tests/functional')
15 files changed, 908 insertions, 0 deletions
diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/.project b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/.project new file mode 100644 index 00000000000..bceb1dfe35b --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.papyrus.uml.diagram.sequence.functional.tests</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.rcptt.core.builder.q7Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.rcptt.core.rcpttnature</nature> + </natures> +</projectDescription> diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/about.html b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p> + +</body> +</html> diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workbenchs/PapyrusWorkbench.ctx b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workbenchs/PapyrusWorkbench.ctx new file mode 100644 index 00000000000..ce9f8d54ca6 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workbenchs/PapyrusWorkbench.ctx @@ -0,0 +1,22 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.workbench +Element-Name: PapyrusWorkbench +Element-Type: context +Element-Version: 2.0 +Id: _NHXLMAf_EeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/2/18 10:55 AM + +------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf +Content-Type: q7/binary +Entry-Name: .q7.content + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAAB1kMtqwzAQRfeF/IOY +fUZNV8FEDaUpJNCEQBbNLrjy2Ba2HpWU2P37yi022XQrnXPvZVbrXrfsRj4oawQs8BEYGWkLZSoB11jO +l7B+nj2srK+QZKtcIPTSxYhBksm9stmH9c1nkupXayL1kfVaZVPk0xCZSkzI0ruAOkaXcd51HVpdYcrl +5/1uRP6vmczxezB/Ea5tQS0fweRbT8BMrknAMXff/hqmjcBUIeBy2J7f9y/l5Y3Utjk27vS1qU8VMJdm +O5JR3WiXuPs57i8JlSl9jkMH3tHA05V+AFBLBwjr1FRe2gAAAE4BAABQSwECFAAUAAgICAAAACEA69RU +XtoAAABOAQAACAAJAAAAAAAAAAAAAAAAAAAALmNvbnRlbnRVVAUAAQAAAABQSwUGAAAAAAEAAQA/AAAA +GQEAAAAA +------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workspaces/EmptyPapyrusModel_SeqDiagCreated.ctx b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workspaces/EmptyPapyrusModel_SeqDiagCreated.ctx new file mode 100644 index 00000000000..58f17161b45 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/contexts/workspaces/EmptyPapyrusModel_SeqDiagCreated.ctx @@ -0,0 +1,74 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.workspace +Element-Name: EmptyPapyrusModel_SeqDiagCreated +Element-Type: context +Element-Version: 2.0 +Id: _KWhwYAgBEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/2/18 12:44 PM + +------=_contents/SequenceDiagramTest/.project-bd993e17-b4d3-3df7-bc2c-63e155621a11 +Content-Type: q7/binary +Entry-Name: contents/SequenceDiagramTest/.project + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAABVjksOwiAQhteaeIeG +vaI7F5RuGi/QegCkkwZTBoTBeHxprRp28/2vjGhedqqeEKJxWLPT4cgqQO0Gg2PNrv1lf2aN3G2FD+4O +mlqIOhhPOZ3VjUBlQXbwSLkErVFjULaHSIIvzhzRzlpAkoJ/r1ld9+ICvKBbMtPQedAfr0RUlAKstT/8 +JsoH31BLBwhhBzleiQAAAN8AAABQSwECFAAUAAgICAAAACEAYQc5XokAAADfAAAACAAJAAAAAAAAAAAA +AAAAAAAALmNvbnRlbnRVVAUAAQAAAABQSwUGAAAAAAEAAQA/AAAAyAAAAAAA +------=_contents/SequenceDiagramTest/.project-bd993e17-b4d3-3df7-bc2c-63e155621a11-- +------=_contents/SequenceDiagramTest/SequenceDiagramTest.notation-5061f09f-c419-35c8-b57b-48dcb0dbb522 +Content-Type: q7/binary +Entry-Name: contents/SequenceDiagramTest/SequenceDiagramTest.notation + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAAC1VFtv2jAUfp+0/xB5 +z4s7qkpVBK26UiRoQVRAxZ6QSQ6JNcfObGeBf9+T61iAgibtLbHP+S4+l+79NhbOb9CGK9kj39wr4oD0 +VcBl2COL+eDrLbm/+/ypK5VlFmO8PmehZrGzjbnX5HXyPESSxsPzHomsTTxKsyxzVRy6Sod0OR7WITXW +X3HgC54YKGLDeEN1Ki2PgaIkt0PrlBrC2J2Ak/kJS3Y6NZTLjWY5WoCiaZFTA6SxOJmOdx16g7xXdDF+ +IYVVHvTIKhikw/Ah7D8Bn69Hm9kPPRpNM+LYXYJipiUrpszgV4qvCNVbEUeyGAMmkB3cxMBMqiEGaReS +W0ThWxAEn9xxun7ERaBBFgpKkqYOs4gl0Nb2ekrbUFrQzM8zV2VmwXCGow++0sXnRAUHZOElZBN0/sLW +aIlewvidGe4/qjhh2uZv0ubMLjKYrrHuYZ6/D1XxowLBdirFO2msZlzao0pUKgPT4o8Oi9/YorWv+gBE +UdY9cGwsb08ocSINmx5pNcUcjHUx9MvKv1GT1w8o/93HYaOUoC0X3WJmzNH+sxp3xBsTKczqwdpnONId +5RQEpcuVn5fG8jUX3O5W1SohjvmDm++ja9ws9JyW6uGO6jjsmFNwxYFXTfEHkPzIBqhMPXMZDDEOt0iz +UapllFfUrcJcU1W8mUKVSdCtThnjzImzPTL4OedPD+EjKoqeb6dLdu2LZdiUs3RZ/vzXhuzSdjnw8B1Q +SwcIscAGNCgCAABfBgAAUEsBAhQAFAAICAgAAAAhALHABjQoAgAAXwYAAAgACQAAAAAAAAAAAAAAAAAA +AC5jb250ZW50VVQFAAEAAAAAUEsFBgAAAAABAAEAPwAAAGcCAAAAAA== +------=_contents/SequenceDiagramTest/SequenceDiagramTest.notation-5061f09f-c419-35c8-b57b-48dcb0dbb522-- +------=_contents/SequenceDiagramTest/SequenceDiagramTest.uml-104aebc9-0799-3bf7-ae07-9ba9e32dde28 +Content-Type: q7/binary +Entry-Name: contents/SequenceDiagramTest/SequenceDiagramTest.uml + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAABlkdFugjAUhu+X7B1I +dz0KGhNDYMZNTHC6MMXEXZlajqWxBVaq6Ntb2WbQXban33/Od+oPjlJYB1AVL/IAubaDLMhpkfKcBWiZ +jJ/7aPDy+ODvpfBmRQrCOkruXYGO43Zdx3GRuRZ55ZligDKtSw/juq7tQjK7UAxXJVC8mkX4HjC5NwBQ +wcsKGsjUOrhnO7aDl7MpajrzNEDr8S7h4ZC9hcCz9368Il0qVgxZOZEQoAV8740DjDhhisgEKo2MgmX5 +JaE7wiCSZaF0E6dPpSEucnG71u5VE0X/92oCTSRv3kP6i9+FNhtDVqZgG6CS6EySi6ixWU+j1/lwHoWL +yylWXHLND5AYtLIF3yiiTraJeFo7CP9Mj2/GvzFKQwES8nunKNegCNXmq1pGtFd8fA7ZyBglm8l28aUm +k7j+216LcZvOPr6amNMZUEsHCH6AMEJIAQAAMQIAAFBLAQIUABQACAgIAAAAIQB+gDBCSAEAADECAAAI +AAkAAAAAAAAAAAAAAAAAAAAuY29udGVudFVUBQABAAAAAFBLBQYAAAAAAQABAD8AAACHAQAAAAA= +------=_contents/SequenceDiagramTest/SequenceDiagramTest.uml-104aebc9-0799-3bf7-ae07-9ba9e32dde28-- +------=_contents/SequenceDiagramTest/SequenceDiagramTest.di-2b2fade7-8a80-3011-8ed1-78cda1f4db2d +Content-Type: q7/binary +Entry-Name: contents/SequenceDiagramTest/SequenceDiagramTest.di + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAABVj80KwjAQBu+C71By +N1FPUlqLKEIP3ip4LenaLrRJ2KR/b2+sWupxP2YGNkqGpg46IItaxWzHtywAJXWBqozZPbtuDiw5rldR +TrJCB9K1BOFpcVzASkLjvB8MDYZza/9u+bqyod9jVjlnQiH6vue6KbmmUjxu6Q9Z9v9YkDUaCxNvcjNS +awWqJ+VCagKx9FggtXIwuLSImedn9+vxyeMWqEMJlkOBjmejgfNHY8J/+gJQSwcIwaJN67EAAAASAQAA +UEsBAhQAFAAICAgAAAAhAMGiTeuxAAAAEgEAAAgACQAAAAAAAAAAAAAAAAAAAC5jb250ZW50VVQFAAEA +AAAAUEsFBgAAAAABAAEAPwAAAPAAAAAAAA== +------=_contents/SequenceDiagramTest/SequenceDiagramTest.di-2b2fade7-8a80-3011-8ed1-78cda1f4db2d-- +------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf +Content-Type: q7/binary +Entry-Name: .q7.content + +UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAkALmNvbnRlbnRVVAUAAQAAAACVkl9LwzAUxd8Fv0PI +u4n6JKV16DZQZDCoMH0aIb3r4po/S25t9+1NZ1tfBtK33OR3zuFcks5aXZFv8EFZk9E7dksJGGkLZcqM +1ri7eaCzx+ur1PqSgayUC8C8dIhMYssa6w/BCQnJZjjNrUFokbRaJaPvfecbk0xI4n1G94gu4bxpGmZ1 +yaI5/1i9Dsg/WaN8YDr5meOR4yNHiRE60kvt8LQW7uTrsLIFVNscjgslyrkHgVBQooqMbt82++bzqXxe +gno5rA8uPy72eUljeUJS2bUyeB7i6Lz9AomhT4h+ddwadKZe6HcISHs0wjtVwUCyXkn55fcLTqxQU2hj +UWBc+hRNrasRT/lQ7rc5/6ue8qm/IIp+AFBLBwhQP74FFgEAAGICAABQSwECFAAUAAgICAAAACEAUD++ +BRYBAABiAgAACAAJAAAAAAAAAAAAAAAAAAAALmNvbnRlbnRVVAUAAQAAAABQSwUGAAAAAAEAAQA/AAAA +VQEAAAAA +------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/rcptt.properties b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/rcptt.properties new file mode 100644 index 00000000000..ba86f0fb1d7 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/rcptt.properties @@ -0,0 +1,9 @@ +--- RCPTT project settings --- +Format-Version: 1.0 +Element-Name: Project Settings +Element-Type: projectMetadata +Element-Version: 2.0 +Id: _Qqw18Af-EeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/5/18 1:35 PM + diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add000_InitTest.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add000_InitTest.test new file mode 100644 index 00000000000..001c14f6923 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add000_InitTest.test @@ -0,0 +1,22 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add000_InitTest +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _CM2lcApwEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 9:17 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 +get-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click + + + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add001_AddOneLifeline.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add001_AddOneLifeline.test new file mode 100644 index 00000000000..8ab6f380299 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add001_AddOneLifeline.test @@ -0,0 +1,47 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: add001_AddOneLifeline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _-wzVUApvEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/5/18 1:36 PM +Testcase-Type: ecl + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +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 811 16 -height 738 -width 857 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 35 6 button1 -height 23 -width 125 + mouse-press 35 6 button1 -height 23 -width 125 + mouse-release 35 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 163 56 button1 -height 738 -width 857 + mouse-press 163 56 button1 -height 738 -width 857 + mouse-release 163 56 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] { + with [get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1] { + mouse-hover 4 41 -height 700 -width 100 + get-edit-part -name Lifeline1 | activate-direct-edit + } + mouse-move 3 53 -height 757 -width 857 + } +} +get-button "Save (Ctrl+S)" | click + +// [ASSERT] Verify position of the new lifeline. +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 Lifeline1 | get-figure -path "0/0"] { + get-property x | equals 154 | verify-true + get-property y | equals 10 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add002_AddSecondLifeline.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add002_AddSecondLifeline.test new file mode 100644 index 00000000000..1c85659936a --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add002_AddSecondLifeline.test @@ -0,0 +1,61 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: add002_AddSecondLifeline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _-xJTkApvEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/5/18 1:35 PM +Testcase-Type: ecl + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +with [get-editor "SequenceDiagramTest.di"] { + with [get-palette | get-palette-entry Lifeline] { + mouse-move 48 10 button1 -height 23 -width 125 + mouse-press 48 10 button1 -height 23 -width 125 + mouse-release 48 10 button1 524288 -height 23 -width 125 + mouse-hover 48 10 -height 23 -width 125 + mouse-move 13 11 -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 497 30 button1 -height 738 -width 857 + mouse-press 497 30 button1 -height 738 -width 857 + mouse-release 497 30 button1 524288 -height 738 -width 857 + } + 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 | get-edit-part -name Lifeline2 | activate-direct-edit + mouse-hover 497 30 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 11 12 button1 -height 700 -width 100 + mouse-press 11 12 button1 -height 700 -width 100 + } + } + commit-direct-edit + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline2] { + mouse-release 11 12 button1 524288 -height 700 -width 100 + mouse-move 8 15 button1 -height 700 -width 100 + mouse-press 8 15 button1 -height 700 -width 100 + mouse-release 8 15 button1 524288 -height 700 -width 100 + mouse-move 10 17 -height 700 -width 100 + get-edit-part -name Lifeline2 | activate-direct-edit + } + } +} + +// [ASSERT] Verify position of the second created lifeline. +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-figure -path "0/0"] { + get-property x | equals 494 | verify-true + get-property y | equals 10 | verify-true +} +get-button "Save (Ctrl+S)" | click +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add003_AddOneMessageSync.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add003_AddOneMessageSync.test new file mode 100644 index 00000000000..1f0a28d51bc --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/add003_AddOneMessageSync.test @@ -0,0 +1,84 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: add003_AddOneMessageSync +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _-xdcoApvEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/5/18 1:35 PM +Testcase-Type: ecl + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +with [get-editor "SequenceDiagramTest.di"] { + get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | mouse-move 856 462 + -height 757 -width 857 + with [get-palette] { + get-palette-entry "Message Reply" | mouse-move 31 2 -height 23 -width 125 + get-palette-entry "Message Async" | mouse-move 47 2 -height 23 -width 125 + with [get-palette-entry "Message Sync"] { + mouse-move 52 17 button1 -height 23 -width 125 + mouse-press 52 17 button1 -height 23 -width 125 + mouse-release 52 17 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 629 299 -height 738 -width 857 + with [get-edit-part -name Lifeline1] { + mouse-move 48 213 button1 -height 700 -width 100 + mouse-press 48 213 button1 -height 700 -width 100 + mouse-release 48 213 button1 524288 -height 700 -width 100 + mouse-hover 48 213 -height 700 -width 100 + } + mouse-move 391 227 -height 738 -width 857 + mouse-hover 391 227 -height 738 -width 857 + mouse-move 497 226 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 46 210 -height 700 -width 100 + mouse-hover 46 210 -height 700 -width 100 + mouse-move 46 210 button1 -height 700 -width 100 + mouse-press 46 210 button1 -height 700 -width 100 + } + } + with [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] { + mouse-release 46 210 button1 524288 -height 700 -width 100 + get-edit-part -name BehaviorExecutionSpecification1 | mouse-hover 6 4 -height 100 -width 20 + get-target-connection -path 0 | get-edit-part -text Message1 | activate-direct-edit + } + mouse-move 822 152 -height 738 -width 857 + } + with [get-palette] { + get-palette-entry " Behavior Execution Specification" | mouse-move 16 8 -height 52 -width 125 + get-palette-entry "Action Execution Specification" | mouse-move 118 26 -height 37 -width 125 + } + get-diagram -index 1 | commit-direct-edit +} + +// [ASSERT] Verify position of the eletments of Message Sync. +with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] { + get-property x | equals 0 | verify-true + get-property y | equals 0 | verify-true + with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] { + with [get-edit-part -name Lifeline2] { + with [get-target-connection -path 0] { + get-property x | equals 197 | verify-true + get-property y | equals 207 | verify-true + } + with [get-edit-part -name BehaviorExecutionSpecification1] { + get-property x | equals 534 | verify-true + get-property y | equals 216 | verify-true + } + } + with [get-edit-part -name Lifeline1 | get-target-connection -path 0] { + get-property x | equals 197 | verify-true + get-property y | equals 321 | verify-true + } + } +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/addElements.suite b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/addElements.suite new file mode 100644 index 00000000000..081b2b23061 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/suites/add/addElements.suite @@ -0,0 +1,20 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: addElements +Element-Type: testsuite +Element-Version: 2.0 +Id: _813SoApvEeiHkPkpSqDhSg +Manually-Ordered: true +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/5/18 1:32 PM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_CM2lcApwEeiHkPkpSqDhSg // kind: 'test' name: 'add000_InitTest' path: 'add000_InitTest.test' +_-wzVUApvEeiHkPkpSqDhSg // kind: 'test' name: 'add001_AddOneLifeline' path: 'add001_AddOneLifeline.test' +_-xJTkApvEeiHkPkpSqDhSg // kind: 'test' name: 'add002_AddSecondLifeline' path: 'add002_AddSecondLifeline.test' +_-xdcoApvEeiHkPkpSqDhSg // kind: 'test' name: 'add003_AddOneMessageSync' path: 'add003_AddOneMessageSync.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add001_AddOneLifeline.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add001_AddOneLifeline.test new file mode 100644 index 00000000000..73b6573355d --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add001_AddOneLifeline.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add001_AddOneLifeline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _fnea8AgAEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 9:17 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 +get-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click +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 811 16 -height 738 -width 857 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 35 6 button1 -height 23 -width 125 + mouse-press 35 6 button1 -height 23 -width 125 + mouse-release 35 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 163 56 button1 -height 738 -width 857 + mouse-press 163 56 button1 -height 738 -width 857 + mouse-release 163 56 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] { + with [get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1] { + mouse-hover 4 41 -height 700 -width 100 + get-edit-part -name Lifeline1 | activate-direct-edit + } + mouse-move 3 53 -height 757 -width 857 + } +} +get-button "Save (Ctrl+S)" | click + +// [ASSERT] Verify position of the new lifeline. +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 Lifeline1 | get-figure -path "0/0"] { + get-property x | equals 154 | verify-true + get-property y | equals 10 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add002_AddSecondLifeline.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add002_AddSecondLifeline.test new file mode 100644 index 00000000000..f0e44b26564 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add002_AddSecondLifeline.test @@ -0,0 +1,96 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add002_AddSecondLifeline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _V0U8gAgZEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 9:17 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 +get-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click +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 811 16 -height 738 -width 857 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 35 6 button1 -height 23 -width 125 + mouse-press 35 6 button1 -height 23 -width 125 + mouse-release 35 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 163 56 button1 -height 738 -width 857 + mouse-press 163 56 button1 -height 738 -width 857 + mouse-release 163 56 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] { + with [get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1] { + mouse-hover 4 41 -height 700 -width 100 + get-edit-part -name Lifeline1 | activate-direct-edit + } + mouse-move 3 53 -height 757 -width 857 + } +} +get-button "Save (Ctrl+S)" | click + +// [ASSERT] Verify position of the first created lifeline. +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 Lifeline1 | get-figure -path "0/0"] { + get-property x | equals 154 | verify-true + get-property y | equals 10 | verify-true +} + +with [get-editor "SequenceDiagramTest.di"] { + with [get-palette | get-palette-entry Lifeline] { + mouse-move 48 10 button1 -height 23 -width 125 + mouse-press 48 10 button1 -height 23 -width 125 + mouse-release 48 10 button1 524288 -height 23 -width 125 + mouse-hover 48 10 -height 23 -width 125 + mouse-move 13 11 -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 497 30 button1 -height 738 -width 857 + mouse-press 497 30 button1 -height 738 -width 857 + mouse-release 497 30 button1 524288 -height 738 -width 857 + } + 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 | get-edit-part -name Lifeline2 | activate-direct-edit + mouse-hover 497 30 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 11 12 button1 -height 700 -width 100 + mouse-press 11 12 button1 -height 700 -width 100 + } + } + commit-direct-edit + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline2] { + mouse-release 11 12 button1 524288 -height 700 -width 100 + mouse-move 8 15 button1 -height 700 -width 100 + mouse-press 8 15 button1 -height 700 -width 100 + mouse-release 8 15 button1 524288 -height 700 -width 100 + mouse-move 10 17 -height 700 -width 100 + get-edit-part -name Lifeline2 | activate-direct-edit + } + } +} + +// [ASSERT] Verify position of the second created lifeline. +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-figure -path "0/0"] { + get-property x | equals 494 | verify-true + get-property y | equals 10 | verify-true +} +get-button "Save (Ctrl+S)" | click +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add003_AddOneMessageSync.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add003_AddOneMessageSync.test new file mode 100644 index 00000000000..6494b7555e0 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add003_AddOneMessageSync.test @@ -0,0 +1,164 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add003_AddOneMessageSync +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _tyrqsAgnEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 9:17 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 +get-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click +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 811 16 -height 738 -width 857 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 35 6 button1 -height 23 -width 125 + mouse-press 35 6 button1 -height 23 -width 125 + mouse-release 35 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 163 56 button1 -height 738 -width 857 + mouse-press 163 56 button1 -height 738 -width 857 + mouse-release 163 56 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] { + with [get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1] { + mouse-hover 4 41 -height 700 -width 100 + get-edit-part -name Lifeline1 | activate-direct-edit + } + mouse-move 3 53 -height 757 -width 857 + } +} +get-button "Save (Ctrl+S)" | click + +// [ASSERT] Verify position of the first created lifeline. +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 Lifeline1 | get-figure -path "0/0"] { + get-property x | equals 154 | verify-true + get-property y | equals 10 | verify-true +} + +with [get-editor "SequenceDiagramTest.di"] { + with [get-palette | get-palette-entry Lifeline] { + mouse-move 48 10 button1 -height 23 -width 125 + mouse-press 48 10 button1 -height 23 -width 125 + mouse-release 48 10 button1 524288 -height 23 -width 125 + mouse-hover 48 10 -height 23 -width 125 + mouse-move 13 11 -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 497 30 button1 -height 738 -width 857 + mouse-press 497 30 button1 -height 738 -width 857 + mouse-release 497 30 button1 524288 -height 738 -width 857 + } + 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 | get-edit-part -name Lifeline2 | activate-direct-edit + mouse-hover 497 30 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 11 12 button1 -height 700 -width 100 + mouse-press 11 12 button1 -height 700 -width 100 + } + } + commit-direct-edit + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline2] { + mouse-release 11 12 button1 524288 -height 700 -width 100 + mouse-move 8 15 button1 -height 700 -width 100 + mouse-press 8 15 button1 -height 700 -width 100 + mouse-release 8 15 button1 524288 -height 700 -width 100 + mouse-move 10 17 -height 700 -width 100 + get-edit-part -name Lifeline2 | activate-direct-edit + } + } +} + +// [ASSERT] Verify position of the second created lifeline. +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-figure -path "0/0"] { + get-property x | equals 494 | verify-true + get-property y | equals 10 | verify-true +} +get-button "Save (Ctrl+S)" | click +with [get-editor "SequenceDiagramTest.di"] { + get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | mouse-move 856 462 + -height 757 -width 857 + with [get-palette] { + get-palette-entry "Message Reply" | mouse-move 31 2 -height 23 -width 125 + get-palette-entry "Message Async" | mouse-move 47 2 -height 23 -width 125 + with [get-palette-entry "Message Sync"] { + mouse-move 52 17 button1 -height 23 -width 125 + mouse-press 52 17 button1 -height 23 -width 125 + mouse-release 52 17 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 629 299 -height 738 -width 857 + with [get-edit-part -name Lifeline1] { + mouse-move 48 213 button1 -height 700 -width 100 + mouse-press 48 213 button1 -height 700 -width 100 + mouse-release 48 213 button1 524288 -height 700 -width 100 + mouse-hover 48 213 -height 700 -width 100 + } + mouse-move 391 227 -height 738 -width 857 + mouse-hover 391 227 -height 738 -width 857 + mouse-move 497 226 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 46 210 -height 700 -width 100 + mouse-hover 46 210 -height 700 -width 100 + mouse-move 46 210 button1 -height 700 -width 100 + mouse-press 46 210 button1 -height 700 -width 100 + } + } + with [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] { + mouse-release 46 210 button1 524288 -height 700 -width 100 + get-edit-part -name BehaviorExecutionSpecification1 | mouse-hover 6 4 -height 100 -width 20 + get-target-connection -path 0 | get-edit-part -text Message1 | activate-direct-edit + } + mouse-move 822 152 -height 738 -width 857 + } + with [get-palette] { + get-palette-entry " Behavior Execution Specification" | mouse-move 16 8 -height 52 -width 125 + get-palette-entry "Action Execution Specification" | mouse-move 118 26 -height 37 -width 125 + } + get-diagram -index 1 | commit-direct-edit +} + +// [ASSERT] Verify position of the eletments of Message Sync. +with [get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1] { + get-property x | equals 0 | verify-true + get-property y | equals 0 | verify-true + with [get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart] { + with [get-edit-part -name Lifeline2] { + with [get-target-connection -path 0] { + get-property x | equals 197 | verify-true + get-property y | equals 207 | verify-true + } + with [get-edit-part -name BehaviorExecutionSpecification1] { + get-property x | equals 534 | verify-true + get-property y | equals 216 | verify-true + } + } + with [get-edit-part -name Lifeline1 | get-target-connection -path 0] { + get-property x | equals 197 | verify-true + get-property y | equals 321 | verify-true + } + } +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add004_AddOneMessageAsync.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add004_AddOneMessageAsync.test new file mode 100644 index 00000000000..fdb8cd786a5 --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add004_AddOneMessageAsync.test @@ -0,0 +1,96 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add004_AddOneMessageAsync +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _NepbQAgqEeiHkPkpSqDhSg +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 9:12 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 +get-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click +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 811 16 -height 738 -width 857 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 35 6 button1 -height 23 -width 125 + mouse-press 35 6 button1 -height 23 -width 125 + mouse-release 35 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 163 56 button1 -height 738 -width 857 + mouse-press 163 56 button1 -height 738 -width 857 + mouse-release 163 56 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1 | get-edit-part -text Interaction1] { + with [get-edit-part -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline1] { + mouse-hover 4 41 -height 700 -width 100 + get-edit-part -name Lifeline1 | activate-direct-edit + } + mouse-move 3 53 -height 757 -width 857 + } +} +get-button "Save (Ctrl+S)" | click + +// [ASSERT] Verify position of the first created lifeline. +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 Lifeline1 | get-figure -path "0/0"] { + get-property x | equals 154 | verify-true + get-property y | equals 10 | verify-true +} + +with [get-editor "SequenceDiagramTest.di"] { + with [get-palette | get-palette-entry Lifeline] { + mouse-move 48 10 button1 -height 23 -width 125 + mouse-press 48 10 button1 -height 23 -width 125 + mouse-release 48 10 button1 524288 -height 23 -width 125 + mouse-hover 48 10 -height 23 -width 125 + mouse-move 13 11 -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 497 30 button1 -height 738 -width 857 + mouse-press 497 30 button1 -height 738 -width 857 + mouse-release 497 30 button1 524288 -height 738 -width 857 + } + 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 | get-edit-part -name Lifeline2 | activate-direct-edit + mouse-hover 497 30 -height 738 -width 857 + with [get-edit-part -name Lifeline2] { + mouse-move 11 12 button1 -height 700 -width 100 + mouse-press 11 12 button1 -height 700 -width 100 + } + } + commit-direct-edit + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline2] { + mouse-release 11 12 button1 524288 -height 700 -width 100 + mouse-move 8 15 button1 -height 700 -width 100 + mouse-press 8 15 button1 -height 700 -width 100 + mouse-release 8 15 button1 524288 -height 700 -width 100 + mouse-move 10 17 -height 700 -width 100 + get-edit-part -name Lifeline2 | activate-direct-edit + } + } +} + +// [ASSERT] Verify position of the second created lifeline. +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-figure -path "0/0"] { + get-property x | equals 494 | verify-true + get-property y | equals 10 | verify-true +} +get-button "Save (Ctrl+S)" | click +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add005_AddOneCombinedFragment.test b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add005_AddOneCombinedFragment.test new file mode 100644 index 00000000000..ce2a44ff71f --- /dev/null +++ b/tests/functional/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.functional.tests/testcases/add/add005_AddOneCombinedFragment.test @@ -0,0 +1,118 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg +Element-Name: add005_AddOneCombinedFragment +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _WPB6kBh3Eeilv_R0H7e8aA +Runtime-Version: 2.2.0.201706152316 +Save-Time: 2/23/18 2:45 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +Add combined fragment element +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.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-view "Model Explorer" | get-tree | select "SequenceDiagramTest/NewSequenceDiagram" | double-click +with [get-editor "SequenceDiagramTest.di"] { + get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 909 120 -height 1000 -width 915 + with [get-palette | get-palette-entry Lifeline] { + mouse-move 33 15 button1 -height 23 -width 125 + mouse-press 33 15 button1 -height 23 -width 125 + mouse-release 33 15 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 68 67 button1 -height 738 -width 857 + mouse-press 68 67 button1 -height 738 -width 857 + mouse-release 68 67 button1 524288 -height 738 -width 857 + } + with [get-diagram -index 1 | get-edit-part -name Interaction1] { + get-edit-part -text Interaction1 | get-edit-part -className CInteractionInteractionCompartmentEditPart + | get-edit-part -name Lifeline1 | mouse-hover 9 52 -height 700 -width 100 + mouse-move 873 99 -height 1000 -width 915 + 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 38 10 -height 23 -width 125 + get-diagram -index 1 | commit-direct-edit + with [get-palette | get-palette-entry Lifeline] { + mouse-move 38 10 button1 -height 23 -width 125 + mouse-press 38 10 button1 -height 23 -width 125 + mouse-release 38 10 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 421 31 button1 -height 738 -width 857 + mouse-press 421 31 button1 -height 738 -width 857 + mouse-release 421 31 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 + | get-edit-part -name Lifeline2] { + get-edit-part -name Lifeline2 | activate-direct-edit + mouse-hover 2 16 -height 700 -width 100 + } + mouse-move 913 214 -height 1000 -width 915 + } + with [get-palette] { + get-palette-entry InteractionUse | mouse-move 36 22 -height 23 -width 125 + get-palette-entry "Combined Fragment" | mouse-move 64 18 -height 37 -width 125 + } + get-diagram -index 1 | commit-direct-edit +} + +with [get-editor "SequenceDiagramTest.di"] { + with [get-palette] { + get-palette-entry "Interaction Operand" | mouse-move 55 0 -height 23 -width 146 + with [get-palette-entry "Combined Fragment"] { + mouse-move 53 14 button1 -height 23 -width 146 + mouse-press 53 14 button1 -height 23 -width 146 + mouse-release 53 14 button1 524288 -height 23 -width 146 + mouse-move 9 5 -height 23 -width 146 + } + } + with [get-diagram -index 1] { + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart] { + mouse-move 40 159 button1 -height 738 -width 857 + mouse-press 40 159 button1 -height 738 -width 857 + mouse-move 40 160 -mask 524288 -height 738 -width 857 + } + mouse-drag 47 164 -mask 524288 -height 1000 -width 915 + with [get-edit-part -name Interaction1 | get-edit-part -text Interaction1 | get-edit-part + -className CInteractionInteractionCompartmentEditPart | get-edit-part -name Lifeline2] { + mouse-drag 98 370 button1 524288 -height 700 -width 100 + mouse-release 98 370 button1 524288 -height 700 -width 100 + } + } + with [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] { + mouse-press 98 370 button1 -height 700 -width 100 + mouse-move 98 371 -mask 524288 -height 700 -width 100 + mouse-drag 97 371 button1 524288 -height 700 -width 100 + mouse-release 97 371 button1 524288 -height 700 -width 100 + } + } + get-diagram -index 1 | commit-direct-edit +} +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 CombinedFragment1] { + get-property x | equals 34 | verify-true + get-property y | equals 156 | verify-true + get-property width | equals 481 | verify-true + get-property height | equals 221 | verify-true +} +get-view "Model Explorer" | get-tree | get-item -path "SequenceDiagramTest/Interaction1/CombinedFragment1" + | get-property selection | equals false | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |