Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: efff844218a8062c94a6d7c7bf3b0ab32e7a5f7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _NHXLMAf_EeiHkPkpSqDhSg,_KWhwYAgBEeiHkPkpSqDhSg
Element-Name: add006_AddOneMessageCreate
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _qbdN4DMhEei_49Y9iBceHC
Runtime-Version: 2.3.0.201803252310
Save-Time: 4/6/18 3:07 PM
Testcase-Type: ecl

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description

Add a MessageCreate when some messages are always on the lifelines. The available messages don't have to move.
------=_.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
get-preferences-menu | click
with [get-window Preferences] {
    get-tree | select "Papyrus/Diagrams/PapyrusUMLSequenceDiagram Diagram"
    get-group "Automatic creations" | get-button Nothing | click
    get-button Apply | click
    get-button "Apply and Close" | click
}
with [get-editor "SequenceDiagramTest.di"] {
    with [get-diagram -index 1 | get-edit-part -name Interaction1] {
        mouse-move 750 792 -height 1000 -width 1892
        mouse-move 1888 177 -height 1000 -width 1892
    }
    with [get-palette] {
        get-palette-entry " Behavior Execution Specification" | mouse-move 74 3 -height 52 -width 125
        get-palette-entry "Action Execution Specification" | mouse-move 91 2 -height 37 -width 125
        with [get-palette-entry Lifeline] {
            mouse-move 62 12 button1 -height 23 -width 125
            mouse-press 62 12 button1 -height 23 -width 125
            mouse-release 62 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 83 39 button1 -height 738 -width 857
        mouse-press 83 39 button1 -height 738 -width 857
        mouse-release 83 39 button1 524288 -height 738 -width 857
    }
    get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 1535 66 -height 1000 -width 1892
    get-palette | get-palette-entry Lifeline | mouse-move 65 18 -height 23 -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
    get-palette | get-palette-entry Lifeline | mouse-move 59 12 -height 23 -width 125
    get-diagram -index 1 | commit-direct-edit
    with [get-palette | get-palette-entry Lifeline] {
        mouse-move 59 12 button1 -height 23 -width 125
        mouse-press 59 12 button1 -height 23 -width 125
        mouse-release 59 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 447 22 button1 -height 738 -width 857
        mouse-press 447 22 button1 -height 738 -width 857
        mouse-release 447 22 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] {
            mouse-move 7 17 -height 700 -width 100
            get-edit-part -name Lifeline2 | activate-direct-edit
        }
        mouse-move 1891 540 -height 1000 -width 1892
    }
    with [get-palette] {
        get-palette-entry "Message Sync" | mouse-move 59 15 -height 23 -width 125
    }
    get-diagram -index 1 | commit-direct-edit
    with [get-palette | get-palette-entry "Message Sync"] {
        mouse-move 59 15 button1 -height 23 -width 125
        mouse-press 59 15 button1 -height 23 -width 125
        mouse-release 59 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 181 166 -height 738 -width 857
        with [get-edit-part -name Lifeline1] {
            mouse-move 51 142 button1 -height 700 -width 100
            mouse-press 51 142 button1 -height 700 -width 100
            mouse-release 51 142 button1 524288 -height 700 -width 100
        }
        with [get-edit-part -name Lifeline2] {
            mouse-move 41 148 -height 700 -width 100
            mouse-hover 41 148 -height 700 -width 100
            mouse-move 41 148 button1 -height 700 -width 100
            mouse-press 41 148 button1 -height 700 -width 100
        }
    }
    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] {
            mouse-release 41 148 button1 524288 -height 700 -width 100
            mouse-move 60 163 -height 700 -width 100
        }
        mouse-move 1079 347 -height 1000 -width 1892
        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 
            | activate-direct-edit
        mouse-move 1887 539 -height 1000 -width 1892
    }
    with [get-palette | get-palette-entry "Message Sync"] {
        mouse-move 58 22 -height 23 -width 125
        mouse-move 86 10 -height 23 -width 125
    }
    get-diagram -index 1 | commit-direct-edit
    with [get-palette | get-palette-entry "Message Sync"] {
        mouse-move 86 10 button1 -height 23 -width 125
        mouse-press 86 10 button1 -height 23 -width 125
        mouse-release 86 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] {
        with [get-edit-part -name Lifeline1] {
            mouse-move 50 202 button1 -height 700 -width 100
            mouse-press 50 202 button1 -height 700 -width 100
            mouse-release 50 202 button1 524288 -height 700 -width 100
        }
        with [get-edit-part -name Lifeline2] {
            mouse-move 45 208 button1 -height 700 -width 100
            mouse-press 45 208 button1 -height 700 -width 100
        }
    }
    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] {
            mouse-release 45 208 button1 524288 -height 700 -width 100
            get-target-connection -path 1 | get-edit-part -text Message6 | activate-direct-edit
        }
        mouse-move 1860 567 -height 1000 -width 1892
    }
    with [get-palette] {
        get-palette-entry "Message Sync" | mouse-move 58 12 -height 23 -width 125
        get-palette-entry "Message Async" | mouse-move 115 6 -height 23 -width 125
        get-palette-entry "Message Sync" | mouse-move 57 16 -height 23 -width 125
    }
    get-diagram -index 1 | commit-direct-edit
    with [get-palette | get-palette-entry "Message Sync"] {
        mouse-move 57 16 button1 -height 23 -width 125
        mouse-press 57 16 button1 -height 23 -width 125
        mouse-release 57 16 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] {
        with [get-edit-part -name Lifeline1] {
            mouse-move 50 272 button1 -height 700 -width 100
            mouse-press 50 272 button1 -height 700 -width 100
            mouse-release 50 272 button1 524288 -height 700 -width 100
        }
        with [get-edit-part -name Lifeline2] {
            mouse-move 43 272 button1 -height 700 -width 100
            mouse-press 43 272 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 43 272 button1 524288 -height 700 -width 100
                get-target-connection -path 2 | get-edit-part -text Message9 | activate-direct-edit
            }
            mouse-move 742 440 button1 -height 738 -width 857
            mouse-press 742 440 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 742 440 button1 524288 -height 738 -width 857
            mouse-move 1889 744 -height 1000 -width 1892
        }
    }
    with [get-palette] {
        get-palette-entry "General Ordering" | mouse-move 69 0 -height 37 -width 125
        get-palette-entry "Message Found" | mouse-move 71 0 -height 23 -width 125
        get-palette-entry "Message Lost" | mouse-move 77 1 -height 23 -width 125
        get-palette-entry "Message Delete" | mouse-move 82 0 -height 23 -width 125
        with [get-palette-entry "Message Create"] {
            mouse-move 84 15 -height 23 -width 125
            mouse-hover 84 15 -height 23 -width 125
            mouse-move 84 15 button1 -height 23 -width 125
            mouse-press 84 15 button1 -height 23 -width 125
            mouse-release 84 15 button1 524288 -height 23 -width 125
            mouse-move 67 8 -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 428 169 -height 738 -width 857
        with [get-edit-part -name Lifeline1] {
            mouse-move 52 82 button1 -height 700 -width 100
            mouse-press 52 82 button1 -height 700 -width 100
            mouse-release 52 82 button1 524288 -height 700 -width 100
        }
        with [get-edit-part -name Lifeline2] {
            mouse-move 45 81 button1 -height 700 -width 100
            mouse-press 45 81 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 45 81 button1 524288 -height 700 -width 100
            mouse-move 47 5 -height 622 -width 100
            get-target-connection -path 3 | get-edit-part -text Message12 | activate-direct-edit
        }
        mouse-move 487 90 -height 738 -width 857
        mouse-move 493 75 -height 738 -width 857
        mouse-hover 493 75 -height 738 -width 857
    }
    get-editbox | key-type "M1+s"
    with [get-diagram -index 1] {
        commit-direct-edit
        get-edit-part -name Interaction1 | mouse-move 909 153 -height 1000 -width 1892
    }
}
get-editor "SequenceDiagramTest.di" | get-diagram -index 1 | get-edit-part -name Interaction1 | mouse-move 1255 110 
    -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-figure -path "0/0"] {
    get-property x | equals 434 | verify-true
    get-property y | equals 87 | verify-true
    get-property width | equals 100 | verify-true
    get-property height | equals 622 | 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 | 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.11093247588424439)" | 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 | get-edit-part 
    -name Lifeline2 | get-target-connection -path 1] {
    get-property "sourceAnchor.id" | equals "(0.5,0.29428571428571426)" | verify-true
    get-property "targetAnchor.id" | equals "(0.5,0.20739549839228294)" | 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 | get-edit-part 
    -name Lifeline2 | get-target-connection -path 2] {
    get-property "sourceAnchor.id" | equals "(0.5,0.38)" | verify-true
    get-property "targetAnchor.id" | equals "(0.5,0.30385852090032156)" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

Back to the top