blob: 278f453f26da39031e63c0e60b1232411ffdf8ed [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
Element-Name: ts016_tc016_groups_popup_always_synchronize
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _DalLgcCMEeO4Kq0OGaiB6A
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 4/10/14 3:35 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate the synchronization between the selected group in ui and the preference. The user as used "Do not ask me again" in the popup and selected "Yes"
1. Set the synchronization from the popup
2. Starts a a 2-way comparison
3. Change the group to "By Kind"
4. Check in the preferences (Default group and synchronization behavior)
5. Restart the comparison
6. Checks that the group is "By Kind"
7. Change the group to "By Resource"
8. Check in the preferences (Default group and synchronization behavior)
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Package Explorer" | get-tree] {
select "Library/extlibraryLeft.ecore" "Library/extlibraryRight.ecore"
get-menu "Compare With/Each Other" | click
}
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Groups | click
-arrow
get-menu "By Kind" | click
with [get-window "Group preference"] {
get-button "Do not ask me again." | check
get-button Yes | click
}
//Checks the preferences
get-preferences-menu | click
get-window Preferences | get-list | get-property "getItems().String[0]" | equals "By Kind" | verify-true
get-window Preferences | get-group "Automatic behavior" | get-combo
-after [get-label "Synchronize current group selection:"] | get-property selection | equals always | verify-true
get-window Preferences | get-tab-folder | get-tab-item "3 way comparison" | click
get-window Preferences | get-list | get-property "getItems().String[0]" | equals "By Side" | verify-true
get-window Preferences | get-group "Automatic behavior" | get-combo
-after [get-label "Synchronize current group selection:"] | get-property selection | equals prompt | verify-true
get-window Preferences | get-button OK | click
//Restarts the comparison
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | close
with [get-view "Package Explorer" | get-tree] {
select "Library/extlibraryLeft.ecore" "Library/extlibraryRight.ecore"
get-menu "Compare With/Each Other" | click
}
//checks that the default group is "By default"
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Groups | click
-arrow
get-menu "By Kind" | get-property enablement | equals true | verify-true
//Activates "By Resource" group
get-menu "By Resource" | click
get-preferences-menu | click
//Cheks the preferences
get-window Preferences | get-list | get-property "getItems().String[0]" | equals "By Resource" | verify-true
get-window Preferences | get-group "Automatic behavior" | get-combo
-after [get-label "Synchronize current group selection:"] | get-property selection | equals always | verify-true
get-window Preferences | get-tab-folder | get-tab-item "3 way comparison" | click
get-window Preferences | get-list | get-property "getItems().String[0]" | equals "By Side" | verify-true
get-window Preferences | get-group "Automatic behavior" | get-combo
-after [get-label "Synchronize current group selection:"] | get-property selection | equals prompt | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--