Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3c76d903cf7f2ced6e3a7998803bb24b1a8eb8c5 (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
--- 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.3.0.201803252310
Save-Time: 3/27/18 3:04 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-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 "A Behavior Execution Specification and a Reply Message" | click
    get-button Apply | click
    get-button "Apply and Close" | 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
    }
}

// [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
}

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

Back to the top