blob: fc8206bbe8fb7be781b526415eec8f2cc772045a [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
Element-Name: ts003_tc001_filter_identical_elements_cmv
Element-Type: testcase
Element-Version: 3.0
External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=411493
Id: _cIy3INzOEeKf2cO4w_2o0w
Q7-Runtime-Version: 1.3.14.201410230950
Save-Time: 1/7/15 11:58 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate that the filter "Identical differences" is also working in the Content Merge Viewer both sides.
TEST STEPS
1) Select the 2 ecore models and run a 2-way comparison (select extlibraryLeft.ecore and extLibrary.ecore)
//asserts that the 2 models are selected
// verify that the extLibrary element in both sides of the content merge viewer contains 10 elements.
2) Click on the menu Filters and unselect "Identical elements"
// verify that the extLibrary element in both sides of the content merge viewer contains 18 elements.
------=_.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-tab-folder -index 1 | get-property activePage | contains "Compare" | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| select "> extlibrary/> Book -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]" | double-click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
-after [get-label "(Local: /)?Library/extlibraryRight.ecore"] | get-item extlibrary | get-property childCount | equals 18
| verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
-after [get-label "(Local: /)?Library/extlibraryRight.ecore"] -index 1 | get-item extlibrary | get-property childCount
| equals 18 | verify-true
//disable filter identical elements
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-button Filters
| click -arrow
get-menu "Identical elements" | click
get-window "Filters preference" | get-button No | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
-after [get-label "(Local: /)?Library/extlibraryRight.ecore"] | get-item extlibrary | get-property childCount | equals 18
| verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
-after [get-label "(Local: /)?Library/extlibraryRight.ecore"] -index 1 | get-item extlibrary | get-property childCount
| equals 18 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--