blob: dd0997619fdcdbeb01c19cea245d812d8ec8223b [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _hhG3gN-5EeWCq4DNYCV1CA,__OMy4DeOEeWhvfUs26xJZQ
Element-Name: TC-ME-Property
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _wkc48JNcEeWdrOtbW826CQ
Runtime-Version: 2.2.0.201706062317
Save-Time: 7/10/17 10:37 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
The user has to create a new papyrus SysML 1.4 project.
It switch to the perspective papyrus
It create an IBD with the block1
We create two additional block 2 and 3, they are referenced as parts of block1.
we add a basic flowpart to block2
and we create an additional property in block3 that we typed with Block1
We check the tree explorer of block1,2,3 with and without the model explorer customisation.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
//creation of a basic model
//with one IBD diagram
//with Block1, Block2 and Block3
get-menu "File/New/Project..." | click
with [get-window "New Project"] {
get-tree | select "Papyrus/Papyrus Project"
get-button "Next >" | click
}
with [get-window "New Papyrus Project"] {
with [get-tree] {
select "Systems Engineering"
get-item -path "Systems Engineering" | check
select "Systems Engineering"
}
get-button "Next >" | click
get-editbox -after [get-label "Project name:"] | set-text AAA
get-button "Next >" | click
}
with [get-window "New Papyrus Project" | get-group "Select a Representation Kind:" | get-table] {
select "SysML 1.4 Internal Block Diagram" -column "Representation name" | activate-cell-edit -column 3
-type MouseClickSelection
get-editbox | set-text 1
apply-cell-edit -deactivate
}
get-window "New Papyrus Project" | get-button Finish | click
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 308 305 -height 318 -width 595
mouse-move 188 "-87" -height 318 -width 595
}
get-menu "Window/Perspective/Open Perspective/Other..." | click
get-window "Open Perspective" | get-table | select "Papyrus \\(default\\)" | double-click
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart
| mouse-release 157 0 button1 524288 -height 215 -width 500
mouse-move 0 254 -height 342 -width 656
}
get-view "Model Explorer" | get-tree | get-item AAA | click
with [get-editor "AAA.di"] {
with [get-palette] {
get-palette-entry ActorPart | mouse-move 45 2 -height 24 -width 125
}
get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 506 "-3" -height 321 -width 598
}
get-menu "Window/Perspective/Open Perspective/Other..." | click
get-window "Open Perspective" | get-table | select "Papyrus \\(default\\)" | double-click
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart
| mouse-release 166 10 button1 524288 -height 215 -width 500
mouse-move 13 257 -height 345 -width 659
}
with [get-view "Model Explorer" | get-tree] {
get-item AAA | click
select AAA | get-menu "SysML 1.4 Child/Block" | click
}
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 8 312 -height 345 -width 659
with [get-view "Model Explorer" | get-tree] {
get-item AAA | click
select AAA | get-menu "SysML 1.4 Child/Block" | click
}
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 3 294 -height 345 -width 659
with [get-view "Model Explorer" | get-tree] {
get-item "AAA/«Block» Block2" | click
select "AAA/«Block» Block2" | get-menu "SysML 1.4 Child/FullPort" | click
get-item "AAA/«Block» Block3" | click
select "AAA/«Block» Block3" | get-menu "New Child/Property" | click
get-item "AAA/«Block» Block2" | click
get-item "AAA/«Block» Block2" | drag-start 27 19
get-item "AAA/«Block» Block2" | drag-enter 58 10 -detail move
get-item "AAA/«Block» Block2" | drag-over 94 1 -detail move
get-item "AAA/«Block» Block1" | drag-over 113 16 -detail move
get-item "AAA/«Block» Block2" | drag-exit
}
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
drag-enter 9 287 -detail move
with [get-edit-part -name Block1] {
drag-over 7 226
get-edit-part -className ClassCompositeCompartmentEditPart | get-figure "1/0" | drag-over 166 79 -detail copy
}
drag-exit
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | get-figure "1/0"
| drag-accept 166 79 -detail copy
}
get-view "Model Explorer" | get-tree | drag-set-data
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | get-edit-part -name Block1 | get-edit-part
-className ClassCompositeCompartmentEditPart | get-figure "1/0" | drop 166 79 -detail copy
get-view "Model Explorer" | get-tree | drag-end -detail copy
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
with [get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart] {
mouse-move 143 98 -height 215 -width 500
mouse-hover 143 98 -height 215 -width 500
}
mouse-move 0 297 -height 345 -width 659
}
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 200 32 -height 342 -width 656
mouse-move 114 302 -height 342 -width 656
}
with [get-view "Model Explorer" | get-tree] {
get-item "AAA/«Block» Block3" | click
get-item "AAA/«Block» Block3" | drag-start 31 11
get-item "AAA/«Block» Block3" | drag-enter 98 17 -detail move
get-item "AAA/«Block» Block3" | drag-over 117 15 -detail move
get-item "AAA/«Block» Block3" | drag-exit
}
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
drag-enter 8 286 -detail move
drag-over 37 281
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | get-figure "1/0"
| drag-over 369 61 -detail copy
drag-exit
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | get-figure "1/0"
| drag-accept 369 61 -detail copy
}
get-view "Model Explorer" | get-tree | drag-set-data
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | get-edit-part -name Block1 | get-edit-part
-className ClassCompositeCompartmentEditPart | get-figure "1/0" | drop 369 61 -detail copy
get-view "Model Explorer" | get-tree | drag-end -detail copy
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 8 284 -height 342 -width 656
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block3/Attribute1" | click
get-view Properties | get-button "Edit the reference value" | click
with [get-window Type] {
get-editbox | set-focus
get-tree | select "AAA/«Block» Block1"
get-button OK | click
}
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 0 305 -height 342 -width 656
get-view "Model Explorer" | get-tree | get-item AAA | click
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
with [get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart] {
mouse-move 233 135 -height 215 -width 500
mouse-move 351 95 -height 215 -width 500
}
mouse-move 648 112 -height 342 -width 656
}
get-palette | get-palette-entry ActorPart | mouse-move 107 1 -height 24 -width 234
}
//tsting with 4 elements, 3 blocks and the diagram
get-view "Model Explorer" | get-tree | get-item AAA | get-property childCount | equals 6 | verify-true
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 583 29 -height 342 -width 656
mouse-move 646 84 -height 342 -width 656
}
get-palette | get-palette-entry "Intersection Selection" | mouse-move 10 17 -height 19 -width 19
}
//testing the block1 is composed only with 2 children
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1" | get-property childCount | equals 2
| verify-true
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 566 37 -height 342 -width 656
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | mouse-move 343 82
-height 215 -width 500
mouse-move 644 65 -height 342 -width 656
}
get-palette | get-palette-entry "Zoom Out" | mouse-move 5 8 -height 19 -width 19
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block2 : Block2" | get-property childCount
| equals 0 | verify-true
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block2" | get-property childCount | equals 1
| verify-true
with [get-editor "AAA.di"] {
get-palette | get-palette-entry Conform | mouse-move 41 19 -height 24 -width 125
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 256 302 -height 342 -width 656
mouse-move 616 156 -height 342 -width 656
}
get-palette | get-palette-entry ActorPart | mouse-move 66 4 -height 24 -width 234
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block3" | get-property childCount | equals 1
| verify-true
with [get-editor "AAA.di"] {
with [get-palette] {
get-palette-entry "Zoom In" | mouse-move 8 3 -height 19 -width 19
get-palette-entry Select | mouse-move 1 10 -height 19 -width 19
}
get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 0 199 -height 342 -width 656
}
//Loading OperationalSysML
get-view "Model Explorer" | get-button "Customize Model Explorer" | click
with [get-window "Load Customizations"] {
get-tree | select OperationalSysML
get-button ">" | click
get-button OK | click
}
//Testing in the ui we could see parts displayed as tree, so with children
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 0 341 -height 342 -width 656
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1" | click
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | mouse-move 288 129
-height 215 -width 500
mouse-move 640 111 -height 342 -width 656
}
get-palette | get-palette-entry ActorPart | mouse-move 51 6 -height 24 -width 234
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1" | get-property childCount | equals 2
| verify-true
with [get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 566 155 -height 342 -width 656
mouse-move 16 319 -height 342 -width 656
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block2 : Block2" | click
with [get-editor "AAA.di"] {
get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 633 129 -height 342 -width 656
with [get-palette] {
get-palette-entry ActorPart | mouse-move 121 11 -height 24 -width 234
}
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block2 : Block2" | get-property childCount
| equals 1 | verify-true
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 547 236 -height 342 -width 656
mouse-move 367 340 -height 342 -width 656
}
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block3 : Block3" | click
get-editor "AAA.di" | get-palette | get-palette-entry BoundReference | mouse-move 98 11 -height 24 -width 234
with [get-editor "AAA.di"] {
get-palette | get-palette-entry BoundReference | mouse-move 14 3 -height 24 -width 234
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 572 169 -height 342 -width 656
mouse-move 5 280 -height 342 -width 656
}
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block3 : Block3" | click
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
get-edit-part -name Block1 | get-edit-part -className ClassCompositeCompartmentEditPart | mouse-move 198 127
-height 215 -width 500
mouse-move 644 69 -height 342 -width 656
}
with [get-palette] {
get-palette-entry "Zoom Out" | mouse-move 12 13 -height 19 -width 19
get-palette-entry "Standard Marquee Selection" | mouse-move 12 2 -height 19 -width 19
}
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block3 : Block3" | get-property childCount
| equals 1 | verify-true
get-editor "AAA.di" | get-diagram -index 1 | get-edit-part -name Block1 | mouse-move 390 340 -height 342 -width 656
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block3 : Block3/Attribute1 : Block1" | click
with [get-editor "AAA.di"] {
with [get-diagram -index 1 | get-edit-part -name Block1] {
mouse-move 67 295 -height 342 -width 656
mouse-move 653 133 -height 342 -width 656
}
}
get-view "Model Explorer" | get-tree | get-item "AAA/«Block» Block1/block3 : Block3/Attribute1 : Block1"
| get-property childCount | equals 2 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--