Skip to main content
summaryrefslogtreecommitdiffstats
blob: dd78c68c5cfa5fe8f71a8102a09e7cfa4528b7ce (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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _TpHgMNb2EeWUfPJk5tSGqQ,_3TFCQNb2EeWUfPJk5tSGqQ
Element-Name: Modelpatch application test
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _QsyGkNS0EeWpt76DqXjygg
Runtime-Version: 2.2.0.201706152316
Save-Time: 9/2/18 1:59 PM
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
    }
    with [get-button "Next >"] {
        click
        click
        click
    }
    get-tree | select "Cyber Physical System testModel6504822858552 (10)"
    get-button "Copy to the right" | click
    get-window "Merge Operation" | get-button OK | click
    get-button Finish | click
}
get-button "Save (M1+S)" | click
with [get-view "Package Explorer" | get-tree] {
    select "org.eclipse.emf.diffmerge.patch.examples.cps/demo_modified.cyberphysicalsystem" "org.eclipse.emf.diffmerge.patch.examples.cps/demo_original.cyberphysicalsystem"
    get-menu "Compare With/Each Other as models" | click
}
exec-with-options -disableJobWaiting -command {
	get-window "EMF Diff/Merge" | get-button Finish | click
	get-window Compare | get-label "There are no differences between the selected inputs." | get-property caption 
	    | equals "There are no differences between the selected inputs." | verify-true
	get-window Compare | get-button OK | click
}

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

Back to the top