blob: 39810ba922b93125f662429b75345c49187da741 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A
Element-Name: ts004_tc005_by_side_conflicts
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: __z4R4ZxUEeK1qPdYnWkCpA
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 4/3/14 4:02 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This test must validate that the group conflicts displays each conflict in a separate group.
TEST STEPS
1) Select the 3 ecore models and run a 3-way comparison (select extlibraryOrigin.ecore as ancestor).
//asserts that the 3 models are selected
2) Click on the menu Group and select "By Side".
3) Click on the group Conflicts and expand it.
//asserts that the group contains the appropriate elements.
4) Removes the filters Pseudo conflicts differences, & Sub diff elements
//asserts that the group contains the appropriate 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/extlibraryOrigin.ecore" "Library/extlibraryRight.ecore"
get-menu "Compare With/Each Other" | click
get-item "Library/extlibraryLeft.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryOrigin.ecore" | get-property selected | equals true | verify-true
get-item "Library/extlibraryRight.ecore" | get-property selected | equals true | verify-true
}
with [get-window "Select Common Ancestor"] {
get-button "\'/Library/extlibraryOrigin.ecore\'" | click
get-button OK | click
}
get-editor "Compare .*"
| get-button Groups | click -arrow
get-menu "By Side" | click
get-window "Group preference" | get-button No | click
get-editor "Compare .*"
| get-tree | select "> Conflicts" | expand-all
with [get-editor "Compare .*"
| get-tree] {
get-item "> Conflicts" | get-property caption
| equals "> Conflicts" | verify-true
get-item "> Conflicts" | get-property "getItems().length"
| equals 3 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getText()" | equals "> Conflict [2 out of 2 differences unresolved]" | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItemCount()" | equals 2 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItems().length"
| equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0
| verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getText()" | equals "> Conflict [3 out of 3 differences unresolved]" | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItemCount()" | equals 2 | verify-true
}
get-editor "Compare .*"
| get-button Filters | click -arrow
get-menu "Pseudo conflicts differences" | click
get-window "Filters preference" | get-button No | click
get-editor "Compare .*"
| get-button Filters | click -arrow
get-menu "Cascading differences" | click
get-window "Filters preference" | get-button No | click
get-editor "Compare .*"
| get-tree | select "> Conflicts" | expand-all
with [get-editor "Compare .*"
| get-tree] {
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getText()" | equals "> Pseudo Conflict [4 out of 4 differences unresolved]" | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItemCount()" | equals 2 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0
| verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[1].getItems().TreeItem[0].getItemCount()" | equals 0
| verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[1].getItems().TreeItem[1].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getText()" | equals "> Conflict [2 out of 2 differences unresolved]" | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItemCount()" | equals 2 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getText()" | equals "> Conflict [2 out of 2 differences unresolved]" | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0
| verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[2].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[4].getText()" | equals "> Conflict [3 out of 3 differences unresolved]" | verify-true
get-item "> Conflicts" | get-property "getItemCount()" | equals 5 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[4].getItems().TreeItem[0].getItems().TreeItem[0].getItemCount()" | equals 0
| verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[4].getItems().TreeItem[0].getItemCount()" | equals 1 | verify-true
get-item "> Conflicts"
| get-property "getItems().TreeItem[4].getItems().TreeItem[1].getItemCount()" | equals 0 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--