blob: d7feb84fb9abb8255083e0a14a576cf758c7645d [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_tc025_filters_popup_never_synchronize
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _utAJYMCwEeO8eNTYV1NAnA
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 4/10/14 4:44 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate the filters popup. It test that if the user click on "No" and has checked "Do not ask again" the window do not appear anymore and the filters are not synchronized.
1. Starts a comparison
2. Deactivates "Identical elements" filters
3. Checks "Do not ask again" and "No"
4. Check preferences
5. Close editor
6. Restarts the comparison
7. Checks that "Identical elements" is activated
8. Deactivates "Empty resource mappings"
9. Checks preferences
------=_.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
}
//Deactivates "Identical elements" filter
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Filters
| click -arrow
get-menu "Identical elements" | click
with [get-window "Filters preference"] {
get-button "Do not ask me again." | check
get-button No | click
}
get-preferences-menu | click
//checks preferences
get-window Preferences | get-tree | select "EMF Compare/Filters"
with [get-window Preferences] {
get-table | get-item "Identical elements" | get-property checked | equals true | verify-true
get-group "Automatic behavior" | get-combo -after [get-label "Synchronize current filter selection:"]
| get-property selection | equals never | verify-true
}
get-window Preferences | get-button OK | click
//Restarts 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 "Identical elements" filter is activated
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Filters
| click -arrow
get-menu "Identical elements" | get-property selection | equals true | verify-true
//Deactivates "Empty resource mappings" filter
get-menu "Empty resource mappings" | click
get-preferences-menu | click
get-window Preferences | get-table | get-item "Empty resource mappings" | get-property checked | equals true
| verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--