| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_2iMCYIAsEeKoeMXPKKjx4w |
| Element-Name: ts003_tc004_filter_uml_refined_elements_cmv |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _OrwU4N1rEeKlP8eyY8UqWw |
| Q7-Runtime-Version: 1.3.14.201410230950 |
| Save-Time: 1/7/15 11:55 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test must validate that the filter "UML refined elements" works also in both sides of the content merge viewer |
| |
| TEST STEPS |
| 1) Select the 2 ecore models and run a 2-way comparison (select left.uml and right.uml) |
| //asserts that the 2 models are selected |
| 2) The structure merge viewer must contain one difference named <Association> booksToLibrarys [packagedElement add]. This difference must not have children. |
| //double click on this difference. |
| //asserts that both sides of the content merge viewer (table content merge viewer) contains only one element with no children. |
| 3) Deactivate the filter UML refined elements. |
| 4) The structure merge viewer must contain one difference named <Association> booksToLibrarys [packagedElement add]. This difference must not have children. |
| //double click on this difference. |
| //asserts that both sides of the content merge viewer (tree content merge viewer) contains only one element with no children. |
| ------=_.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 "UMLRefinedFilter/left.uml" "UMLRefinedFilter/right.uml" |
| get-menu "Compare With/Each Other" | click |
| } |
| get-tab-folder -index 1 | get-property activePage | contains "Compare" | verify-true |
| |
| get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')" | get-tree |
| | select "> <Package> library/<Association> booksToLibrarys \\[packagedElement add\\]" | double-click |
| |
| with [get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')"] { |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] | get-item "<Package> library" | get-property childCount |
| | equals 3 | verify-true |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] -index 1 | get-item "<Package> library" |
| | get-property childCount | equals 3 | verify-true |
| } |
| with [get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')"] { |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] |
| | get-item "<Package> library/<Association> booksToLibrarys" | get-property childCount | equals 2 | verify-true |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] -index 1 |
| | get-item "<Package> library/ " | get-property childCount | equals 0 |
| | verify-true |
| } |
| |
| get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')" | get-button Filters | click |
| -arrow |
| get-menu "UML refined elements" | click |
| |
| get-window "Filters preference" | get-button No | click |
| |
| get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')" | get-button Filters | click |
| -arrow |
| get-menu "Cascading differences" | click |
| |
| get-window "Filters preference" | get-button No | click |
| |
| get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')" | get-tree |
| | select "> <Package> library/<Association> booksToLibrarys \\[packagedElement add\\]" | double-click |
| with [get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')"] { |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] | get-item "<Package> library" | get-property childCount |
| | equals 3 | verify-true |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] -index 1 | get-item "<Package> library" |
| | get-property childCount | equals 3 | verify-true |
| } |
| with [get-editor "Compare (\'UMLRefinedFilter/left.uml\' - \'UMLRefinedFilter/right.uml\')"] { |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] |
| | get-item "<Package> library/<Association> booksToLibrarys" | get-property childCount | equals 2 | verify-true |
| get-tree -after [get-label "(Local: /)?UMLRefinedFilter/right.uml"] -index 1 |
| | get-item "<Package> library/ " | get-property childCount | equals 2 |
| | verify-true |
| } |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |