This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ts001_tc004_2-way_next_difference.test
75 lines (65 loc) · 4.09 KB
/
ts001_tc004_2-way_next_difference.test
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
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
Element-Name: ts001_tc004_2-way_next_difference
Element-Type: testcase
Element-Version: 3.0
External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400424
Id: _FRPBMHQuEeKuJN51-cCI4Q
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 5/23/14 8:41 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate that, on a the 2-way comparison, the next difference button reach the next difference and don't omit differences.
TEST STEPS
1) Select the 2 ecore models and run a 2-way comparison (select extlibraryLeft.ecore and extLibraryRight.ecore)
//asserts that the 2 models are selected and the last one (extLibraryOrigin.ecore) is not.
2) Select the library package.
3) Click on Next Difference button several times
//asserts that after each click, the next difference is selected.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Package Explorer" | get-tree | select "Library/extlibraryLeft.ecore" "Library/extlibraryRight.ecore"
with [get-view "Package Explorer" | get-tree] {
get-item "Library/extlibraryRight.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryOrigin.ecore" | get-property selected | equals false | verify-true
get-menu "Compare With/Each Other" | click
}
get-tab-folder -index 1 | get-property activePage | contains "Compare" | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Filters
| click -arrow
get-menu "Cascading differences" | click
get-window "Filters preference" | get-button No | click
with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] {
get-tree | select "> extlibrary/> BookCategory/Manhwa = 5 \\[eLiterals delete\\]" | double-click
get-button "Next Difference" -index 1 | click
}
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/> length : EInt/length [name changed]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/TitledItem \\[eSuperTypes delete\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]/EString \\[java.lang.String\\] \\[eType set\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--