Skip to main content
summaryrefslogtreecommitdiffstats
blob: c9afb4884ca20921bb38668b799b358a80b79270 (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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _TpHgMNb2EeWUfPJk5tSGqQ,_3TFCQNb2EeWUfPJk5tSGqQ
Element-Name: Modelpatch application filter test
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _O-N74NTIEeWpt76DqXjygg
Runtime-Version: 2.0.2.201511100828
Save-Time: 3/7/16 10:19 AM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content

get-view "Package Explorer" | get-tree 
    | select "org.eclipse.emf.diffmerge.patch.examples.cps/demo_original.cyberphysicalsystem" | double-click
with [get-editor "demo_original.cyberphysicalsystem" | get-tree] {
    get-item "platform:\\/resource\\/org.eclipse.emf.diffmerge.patch.examples.cps\\/demo_original.cyberphysicalsystem" 
        | click
    select "platform:\\/resource\\/org.eclipse.emf.diffmerge.patch.examples.cps\\/demo_original.cyberphysicalsystem" 
        | get-menu "Apply modelpatch" | click
}
with [get-window "Modelpatch Application"] {
    get-button "Browse Workspace..." | click
    with [get-window "Patch File Selection"] {
        get-tree | select "org.eclipse.emf.diffmerge.patch.examples.cps/generated.modelpatch"
        get-button OK | click
    }
    get-button "Next >" | click
    get-button Filtering | check
    get-button Add | click
    with [get-window "Add filter"] {
        get-button REMOVE | click
        get-button OK | click
    }
    with [get-button "Next >"] {
        click
        click
    }
    get-tree | get-property "getTopItem().getText()" | equals "Cyber Physical System testModel6504822858552 (4)" | verify-true
    get-tree | select "Cyber Physical System testModel6504822858552 (4)"
    get-button "Transfer changes to the right" | click
    get-window "Merge Operation" | get-button OK | click
}
get-window "Modelpatch Application" | get-window "Merge Operation" | get-group "Required changes" | get-tree 
    | get-property itemCount | equals 3 | verify-true
with [get-window "Modelpatch Application"] {
    get-window "Merge Operation" | get-button OK | click
    get-button Finish | click
}
get-button "Save (M1+S)" | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--

Back to the top