| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_DELu8G76EeSzdu5rkqh7kg |
| Element-Name: ts009_tc009_logicalmodel_view_scope_change |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _px9SMG74EeSzdu5rkqh7kg |
| Q7-Runtime-Version: 1.3.14.201410230950 |
| Save-Time: 11/18/14 9:45 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test just checks the existence of the Logical Model View, and the initial state of its toolbar buttons. |
| |
| 1. Select Window/Show View/Other... |
| 2. Click on EMF Compare/Logical Model View item |
| 3. Click on a model in Project1 |
| // Assert that the view is not populated (because the synchronization is not active) |
| 4. Activate the synchronization |
| // Assert that the view is populated with the logical models computing from the selected model(because the synchronization is active) |
| 5. Change resolution scope in preferences from container to workspace |
| // Assert that the view has been refreshed and new elements appeared. |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| //1. Select Window/Show View/Other... |
| get-menu "Window/Show View/Other..." | click |
| //2. Click on EMF Compare/Logical Model View item |
| with [get-window "Show View"] { |
| get-tree | select "EMF Compare/Logical Model View" |
| get-button OK | click |
| } |
| //3. Click on a model in Project1 |
| get-view "Package Explorer" | get-tree | select "Project1/left.uml" |
| // Assert that the view is not populated (because the synchronization is not active) |
| with [get-view "Logical Model View" | get-tree] { |
| get-property "getItems().length" | equals 0 | verify-true |
| } |
| //4. Activate the synchronization |
| get-view "Logical Model View" | get-button "Synchronize with Editor and Selection" | click |
| // Assert that the view is populated with the logical models computing from the selected model(because the synchronization is active) |
| with [get-view "Logical Model View" | get-tree] { |
| get-property "getItems().length" | equals 1 | verify-true |
| get-property "getItems().TreeItem[0].getText()" | equals "left.uml - /Project1" | verify-true |
| } |
| |
| //5. Change resolution scope in preferences from container to workspace |
| get-preferences-menu | click |
| with [get-window Preferences] { |
| wait 2000 |
| get-tree | select "EMF Compare/Resolution strategy" |
| wait 2000 |
| get-combo -after [get-label "Resolution scope:"] | select Workspace |
| wait 2000 |
| get-button Apply | click |
| wait 2000 |
| get-button OK | click |
| } |
| |
| // Assert that the view has been refreshed and new elements appeared. |
| with [get-view "Logical Model View" | get-tree] { |
| get-property "getItems().length" | equals 2 | verify-true |
| get-property "getItems().TreeItem[0].getText()" | equals "left.uml - /Project1" | verify-true |
| get-property "getItems().TreeItem[1].getText()" | equals "leftFragment.uml - /Project2/folder1/folder11" |
| | verify-true |
| } |
| |
| get-preferences-menu | click |
| with [get-window Preferences] { |
| wait 2000 |
| get-tree | select "EMF Compare/Resolution strategy" |
| wait 2000 |
| get-combo -after [get-label "Resolution scope:"] | select Container |
| wait 2000 |
| get-button Apply | click |
| wait 2000 |
| get-button OK | click |
| } |
| // Assert that the view has been refreshed and new elements appeared. |
| with [get-view "Logical Model View" | get-tree] { |
| get-property "getItems().length" | equals 1 | verify-true |
| get-property "getItems().TreeItem[0].getText()" | equals "left.uml - /Project1" | verify-true |
| } |
| |
| get-view "Package Explorer" | get-tree | select "Project1/left.uml" |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |