Corrects labels after enhancement on conflicts label.
[EMFCompare2.git] / plugins / org.eclipse.emf.compare.q7.tests / tests / groups / ts004_tc005_by_side_conflicts.test
blob5aff297c5151b0802151ed2402194d12d98e612f
1 --- Q7 testcase ---
2 Format-Version: 1.0
3 Q7-vendor: www.xored.com/q7
4 Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
5 Element-Name: ts004_tc005_by_side_conflicts
6 Element-Type: testcase
7 Element-Version: 3.0
8 External-Reference: 
9 Id: __z4R4ZxUEeK1qPdYnWkCpA
10 Q7-Runtime-Version: 1.3.10.201312200736
11 Save-Time: 4/3/14 4:02 PM
12 Testcase-Type: ecl
14 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
15 Content-Type: text/plain
16 Entry-Name: .description
18 This test must validate that the group conflicts displays each conflict in a separate group.
20 TEST STEPS
21         1) Select the 3 ecore models and run a 3-way comparison (select extlibraryOrigin.ecore as ancestor).
22         //asserts that the 3 models are selected
23         2) Click on the menu Group and select "By Side".
24         3) Click on the group Conflicts and expand it.
25         //asserts that the group contains the appropriate elements.
26         4) Removes the filters Pseudo conflicts differences, & Sub diff elements
27         //asserts that the group contains the appropriate elements.
28 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
29 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
30 Content-Type: text/ecl
31 Entry-Name: .content
33 with [get-view "Package Explorer" | get-tree] {
34     select "Library/extlibraryLeft.ecore" "Library/extlibraryOrigin.ecore" "Library/extlibraryRight.ecore"
35     get-menu "Compare With/Each Other" | click
36     get-item "Library/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
37     get-item "Library/extlibraryOrigin.ecore" | get-property selected | equals true | verify-true
38     get-item "Library/extlibraryRight.ecore" | get-property selected | equals true | verify-true
41 with [get-window "Select Common Ancestor"] {
42     get-button "\'/Library/extlibraryOrigin.ecore\'" | click
43     get-button OK | click
46 get-editor "Compare .*" 
47     | get-button Groups | click -arrow
48 get-menu "By Side" | click
50 get-window "Group preference" | get-button No | click
52 get-editor "Compare .*" 
53     | get-tree | select "> Conflicts" | expand-all
54 with [get-editor "Compare .*" 
55     | get-tree] {
56     get-item "> Conflicts" | get-property caption 
57         | equals "> Conflicts" | verify-true
58     get-item "> Conflicts" | get-property "getItems().length" 
59         | equals 3 | verify-true
60     get-item "> Conflicts" 
61         | get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 | verify-true
62     get-item "> Conflicts" 
63         | get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
64     get-item "> Conflicts" 
65         | get-property "getItems().TreeItem[0].getText()" | equals "> Conflict [2 out of 2 conflicts unresolved]" | verify-true
66     get-item "> Conflicts" 
67         | get-property "getItems().TreeItem[0].getItemCount()" | equals 2 | verify-true
68     get-item "> Conflicts" 
69         | get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItems().length" 
70         | equals 0 | verify-true
71     get-item "> Conflicts" 
72         | get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 
73         | verify-true
74     get-item "> Conflicts" 
75         | get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
76     get-item "> Conflicts" 
77         | get-property "getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
78     get-item "> Conflicts" 
79         | get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
80     get-item "> Conflicts" 
81         | get-property "getItems().TreeItem[2].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
82     get-item "> Conflicts" 
83         | get-property "getItems().TreeItem[2].getText()" | equals "> Conflict [3 out of 3 conflicts unresolved]" | verify-true
84     get-item "> Conflicts" 
85         | get-property "getItems().TreeItem[2].getItemCount()" | equals 2 | verify-true
87 get-editor "Compare .*" 
88     | get-button Filters | click -arrow
89 get-menu "Pseudo conflicts differences" | click
91 get-window "Filters preference" | get-button No | click
93 get-editor "Compare .*" 
94     | get-button Filters | click -arrow
95 get-menu "Cascading differences" | click
97 get-window "Filters preference" | get-button No | click
99 get-editor "Compare .*" 
100     | get-tree | select "> Conflicts" | expand-all
101 with [get-editor "Compare .*" 
102     | get-tree] {
103     get-item "> Conflicts" 
104         | get-property "getItems().TreeItem[1].getText()" | equals "> Pseudo Conflict [4 out of 4 conflicts unresolved]" | verify-true
105     get-item "> Conflicts" 
106         | get-property "getItems().TreeItem[1].getItemCount()" | equals 2 | verify-true
107     get-item "> Conflicts" 
108         | get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 
109         | verify-true
110     get-item "> Conflicts" 
111         | get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
112     get-item "> Conflicts" 
113         | get-property "getItems().TreeItem[1].getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 0 
114         | verify-true
115     get-item "> Conflicts" 
116         | get-property "getItems().TreeItem[1].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
117     get-item "> Conflicts" 
118         | get-property "getItems().TreeItem[0].getText()" | equals "> Conflict [2 out of 2 conflicts unresolved]" | verify-true
119     get-item "> Conflicts" 
120         | get-property "getItems().TreeItem[0].getItemCount()" | equals 2 | verify-true
121     get-item "> Conflicts" 
122         | get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 | verify-true
123     get-item "> Conflicts" 
124         | get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
125     get-item "> Conflicts" 
126         | get-property "getItems().TreeItem[2].getText()" | equals "> Conflict [2 out of 2 conflicts unresolved]" | verify-true
127     get-item "> Conflicts" 
128         | get-property "getItems().TreeItem[2].getItemCount()" | equals 1 | verify-true
129     get-item "> Conflicts" 
130         | get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 
131         | verify-true
132     get-item "> Conflicts" 
133         | get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
134     get-item "> Conflicts" 
135         | get-property "getItems().TreeItem[4].getText()" | equals "> Conflict [3 out of 3 conflicts unresolved]" | verify-true
136     get-item "> Conflicts" | get-property "getItemCount()" | equals 5  | verify-true
137     get-item "> Conflicts" 
138         | get-property "getItems().TreeItem[4].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 
139         | verify-true
140     get-item "> Conflicts" 
141         | get-property "getItems().TreeItem[4].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
142     get-item "> Conflicts" 
143         | get-property "getItems().TreeItem[4].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
144     
146 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--