| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_jRtbsGrtEeK_JdLra2Bk5A |
| Element-Name: ts007_tc004_merge_required |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _puOBEHXuEeKJx8j2cqlHSg |
| Q7-Runtime-Version: 1.3.14.201410230950 |
| Save-Time: 1/7/15 11:46 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test must validate a merge of difference A located under a difference B merge the difference B. |
| |
| 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) Double-click on the attribute title of the AudioVisualItem |
| //asserts that the left part of the content merge viewer contains the text "title : EString" and right part the text "". |
| 3) Double-click on the difference under title, click on "Copy Current Change from Left to Right" button, then double-click on the attribute title of the AudioVisualItem |
| //asserts that the left part of the content merge viewer contains the text "title : EString" and right part the text "title : EString". |
| 4) Click on Ctrl+z. Double-click on the attribute title of the AudioVisualItem |
| //asserts that the left part of the content merge viewer contains the text "title : EString" and right part the text "". |
| 5) Double-click on the difference under title, click on "Copy Current Change from Right to Left" button, then double-click on the attribute title of the AudioVisualItem |
| //asserts that the left part of the content merge viewer contains the text "title" and right part the text "". |
| ------=_.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-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/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]" | double-click |
| } |
| with [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-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"] | get-item "extlibrary/AudioVisualItem -> CirculatingItem/title : EString" | get-property selected | equals true | verify-true |
| with [get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"] -index 1] { |
| get-item "extlibrary/AudioVisualItem -> CirculatingItem, TitledItem" | get-item " " | get-property selected | equals true | verify-true |
| } |
| } |
| with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] { |
| get-tree |
| | select "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]/EString \\[java.lang.String\\] \\[eType set\\]" |
| | double-click |
| get-button "Copy Current Change From Left To Right" | click |
| get-tree | select "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]" |
| | double-click |
| } |
| with [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 |
| with [get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"]] { |
| get-item "extlibrary/AudioVisualItem -> CirculatingItem/title : EString" | get-property selected | equals true | verify-true |
| } |
| with [get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"] -index 1] { |
| get-item "extlibrary/AudioVisualItem -> CirculatingItem, TitledItem/title : EString" | get-property selected | equals true | verify-true |
| } |
| } |
| get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')" | get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"] |
| | key-type "M1+z" |
| |
| with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] { |
| with [get-table] { |
| get-property "selection[0].path[0]" | equals "EString \\[java.lang.String\\]" | verify-true |
| get-property "getItems().length" | equals 1 | verify-true |
| get-property "getItems().TableItem[0].getText()" | equals "EString [java.lang.String]" | verify-true |
| } |
| with [get-table -after [get-label "eType : EClassifier" -after [get-label "title : EString" |
| -after [get-label "eType : EClassifier"]]]] { |
| get-property "selection[0].path[0]" | equals " " | verify-true |
| get-property "getItems().length" | equals 1 | verify-true |
| get-property "getItems().TableItem[0].getText()" | equals "" | verify-true |
| } |
| } |
| with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] { |
| get-tree |
| | select "> extlibrary/> AudioVisualItem -> CirculatingItem/title : EString \\[eStructuralFeatures add\\]/EString \\[java.lang.String\\] \\[eType set\\]" |
| | double-click |
| get-button "Copy Current Change From Right To Left" | click |
| get-tree | select "> extlibrary/> AudioVisualItem -> CirculatingItem/title \\[eStructuralFeatures add\\]" | double-click |
| } |
| with [get-editor "Compare (\'Library/extlibraryLeft.ecore\' - \'Library/extlibraryRight.ecore\')"] { |
| with [get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"]] { |
| get-item "extlibrary/AudioVisualItem -> CirculatingItem/title" | get-property selected | equals true | verify-true |
| } |
| with [get-tree -after [get-label "(Local: /)?Library/extlibraryRight.ecore"] -index 1] { |
| get-item "extlibrary/AudioVisualItem -> CirculatingItem, TitledItem" | get-item " " | get-property selected | equals true | verify-true |
| } |
| } |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |