Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a2bbe4a0a7675195752f3d1aa4fe352fd8d0a365 (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
--- 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--

Back to the top