3 Q7-vendor: www.xored.com/q7
4 Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
5 Element-Name: ts004_tc007_group_item_double_click
9 Id: _He3N0UP1EeSR35Af5c_jlw
10 Q7-Runtime-Version: 1.3.10.201312200736
11 Save-Time: 9/24/14 5:08 PM
14 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
15 Content-Type: text/plain
16 Entry-Name: .description
18 This test must validate that a double-click on a group item in the structure merge viewer expand items under this group item.
21 1) Select the 3 ecore models and run a 3-way comparison //asserts that the 3 models are selected
22 2) The first diff is selected
23 // Asserts the first diff is selected
24 // Asserts the content merge viewers are not empty
25 // Asserts the merge (from left to right/right to left) buttons are activated
26 // Asserts the second group (Library/extlibraryLeft.Ecore) is not expanded
27 3) Select the second group (Library/extlibraryLeft.Ecore)
28 // Asserts the group is selected
29 // Asserts the content merge viewers are not empty and have the same values than before
30 // Asserts the merge (from left to right/right to left) buttons are deactivated
31 // Asserts the group (Library/extlibraryLeft.Ecore) is expanded to the second level
32 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
33 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
34 Content-Type: text/ecl
37 with [get-view "Package Explorer" | get-tree] {
38 select "Library/extlibraryLeft.ecore" "Library/extlibraryOrigin.ecore" "Library/extlibraryRight.ecore"
39 get-menu "Compare With/Each Other" | click
40 get-item "Library/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
41 get-item "Library/extlibraryOrigin.ecore" | get-property selected | equals true | verify-true
42 get-item "Library/extlibraryRight.ecore" | get-property selected | equals true | verify-true
44 with [get-window "Select Common Ancestor"] {
45 get-button "\'/Library/extlibraryOrigin.ecore\'" | click
48 get-tab-folder -index 1 | get-property activePage | contains "Compare" | verify-true
51 with [get-editor "Compare (\'Library/extlibraryRight.ecore\' - \'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] {
52 get-tree | get-item "> Conflicts/> Conflict [2 out of 2 conflicts unresolved]/length \\[name changed\\]" | get-property selected | equals true
54 get-text-viewer | get-property text | equals length | verify-true
55 get-text-viewer -after [get-label "Library/extlibraryRight.ecore"] -index 1 | get-property text | equals minutes
57 get-button "Copy Current Change From Right To Left" | get-property enablement | equals true | verify-true
58 get-button "Copy Current Change From Left To Right" | get-property enablement | equals true | verify-true
59 get-tree | get-property "getItems().TreeItem[1].getExpanded()" | equals false | verify-true
63 get-editor "Compare (\'Library/extlibraryRight.ecore\' - \'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
64 | get-tree | select "> Library\\/extlibraryLeft.ecore" | double-click
65 with [get-editor "Compare (\'Library/extlibraryRight.ecore\' - \'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] {
67 get-item "> Library\\/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
68 get-item "> Library\\/extlibraryLeft.ecore" | get-property "getExpanded()" | equals true | verify-true
69 get-item "> Library\\/extlibraryLeft.ecore" | get-property "getItems().length" | equals 1 | verify-true
70 get-item "> Library\\/extlibraryLeft.ecore" | get-property "getItems().TreeItem[0].getExpanded()" | equals true
72 get-item "> Library\\/extlibraryLeft.ecore" | get-property "getItems().TreeItem[0].getItems().length"
73 | equals 5 | verify-true
74 get-item "> Library\\/extlibraryLeft.ecore"
75 | get-property "getItems().TreeItem[0].getItems().TreeItem[0].getExpanded()" | equals false | verify-true
76 get-item "> Library\\/extlibraryLeft.ecore"
77 | get-property "getItems().TreeItem[0].getItems().TreeItem[1].getExpanded()" | equals false | verify-true
78 get-item "> Library\\/extlibraryLeft.ecore"
79 | get-property "getItems().TreeItem[0].getItems().TreeItem[2].getExpanded()" | equals false | verify-true
80 get-item "> Library\\/extlibraryLeft.ecore"
81 | get-property "getItems().TreeItem[0].getItems().TreeItem[3].getExpanded()" | equals false | verify-true
82 get-item "> Library\\/extlibraryLeft.ecore"
83 | get-property "getItems().TreeItem[0].getItems().TreeItem[4].getExpanded()" | equals false | verify-true
85 get-button "Copy Current Change From Left To Right" | get-property enablement | equals false | verify-true
86 get-button "Copy Current Change From Right To Left" | get-property enablement | equals false | verify-true
87 get-text-viewer | get-property text | equals length | verify-true
88 get-text-viewer -after [get-label "Library/extlibraryRight.ecore"] -index 1 | get-property text | equals minutes
91 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--