| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A |
| Element-Name: ts016_tc012_groups_preference_page_set_defaut_group |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _B_vH8L_5EeO668you7X_bw |
| Q7-Runtime-Version: 1.3.10.201312200736 |
| Save-Time: 5/23/14 9:54 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test must validate that defining the default group in "Groups" preference page works (for 2-way and 3-way comparison tab). |
| |
| 1. Sets a new default group (in this test "By Kind") for 2-way and 3-way comparison |
| 2. Starts a 2-way comparison and checks that the default group is "By kind" |
| 2. Starts a 3 way comparison and checks that the default groups is "By kind" |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "EMF Compare/Groups" |
| //Sets "By Kind" group as default group (2-way) |
| with [get-window Preferences] { |
| get-list | select "By Kind" |
| get-button |
| -after [get-label "Rank each group by priority (Highest ranked enabled element will be use as default):"] |
| | click |
| } |
| //Checks the order in the viewer (2-way) |
| with [get-window Preferences | get-list] { |
| get-property "getItems().String[0]" | equals "By Kind" | verify-true |
| get-property "getItems().String[1]" | equals Default | verify-true |
| get-property "getItems().String[2]" | equals "By Resource" | verify-true |
| } |
| //Sets "By Kind" group as default group (3-way) |
| with [get-window Preferences] { |
| get-tab-folder | get-tab-item "3 way comparison" | click |
| get-list | select "By Kind" |
| with [get-button |
| -after [get-label "Rank each group by priority (Highest ranked enabled element will be use as default):"]] { |
| click |
| click |
| } |
| } |
| |
| //Checks the order in the viewer (3-way) |
| with [get-window Preferences | get-list] { |
| get-property "getItems().String[0]" | equals "By Kind" | verify-true |
| get-property "getItems().String[1]" | equals "By Side" | verify-true |
| get-property "getItems().String[2]" | equals Default | verify-true |
| get-property "getItems().String[3]" | equals "By Resource" | verify-true |
| } |
| get-window Preferences | get-button OK | click |
| with [get-view "Package Explorer" | get-tree] { |
| select "Library/extlibraryLeft.ecore" "Library/extlibraryRight.ecore" |
| get-menu "Compare With/Each Other" | click |
| } |
| with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] { |
| get-button Groups | click -arrow |
| } |
| |
| //Checks that the group "Default" is activated in 2-way comparison |
| get-menu "By Kind" | get-property enablement | equals true | verify-true |
| |
| get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | close |
| |
| with [get-view "Package Explorer" | get-tree] { |
| select "Library/extlibraryLeft.ecore" "Library/extlibraryOrigin.ecore" "Library/extlibraryRight.ecore" |
| get-menu "Compare With/Each Other" | click |
| } |
| with [get-window "Select Common Ancestor"] { |
| get-button "\'/Library/extlibraryOrigin.ecore\'" | click |
| get-button OK | click |
| } |
| get-editor "Compare (\'Library/extlibraryRight.ecore\' - \'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" |
| | get-button Groups | click -arrow |
| |
| //Checks that the group "Default" is activated in 3-way comparison |
| get-menu "By Kind" | get-property enablement | equals true | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |