blob: 4e5a160b3df952927ab4eb81c80b61f6466910e0 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
Element-Name: ts001_tc004_2-way_next_difference
Element-Type: testcase
Element-Version: 3.0
External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400424
Id: _FRPBMHQuEeKuJN51-cCI4Q
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 5/23/14 8:41 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate that, on a the 2-way comparison, the next difference button reach the next difference and don't omit differences.
TEST STEPS
1) Select the 2 ecore models and run a 2-way comparison (select extlibraryLeft.ecore and extLibraryRight.ecore)
//asserts that the 2 models are selected and the last one (extLibraryOrigin.ecore) is not.
2) Select the library package.
3) Click on Next Difference button several times
//asserts that after each click, the next difference is selected.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Package Explorer" | get-tree | select "Library/extlibraryLeft.ecore" "Library/extlibraryRight.ecore"
with [get-view "Package Explorer" | get-tree] {
get-item "Library/extlibraryRight.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryOrigin.ecore" | get-property selected | equals false | verify-true
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-button Filters
| click -arrow
get-menu "Cascading differences" | click
get-window "Filters preference" | get-button No | click
with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] {
get-tree | select "> extlibrary/> BookCategory/Manhwa = 5 \\[eLiterals delete\\]" | double-click
get-button "Next Difference" -index 1 | click
}
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/> length : EInt/length [name changed]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/TitledItem \\[eSuperTypes delete\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree
| get-item "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]/EString \\[java.lang.String\\] \\[eType set\\]"
| get-property selected | equals true | verify-true
get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"
| get-button "Next Difference" -index 1 | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--