| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _q_dzsL8bEeO668you7X_bw,_SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A |
| Element-Name: ts016_tc002_match_engine_configuration_when_available |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _DnS3UL8XEeO668you7X_bw |
| Q7-Runtime-Version: 1.3.10.201312200736 |
| Save-Time: 6/3/14 5:42 PM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test must validate the "When Available" configuration of the default match engine. |
| |
| 1. Tests that "When_available" is the default configuration. |
| 2. Checks the result of a comparison on a model with ids |
| 3. Checks the result of a comparison on a model without ids |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "EMF Compare/Engines" |
| //Checks that the default configuration is set to "when available" |
| with [get-window Preferences] { |
| get-table | get-item "Default Match engine" | get-property selected | equals true | verify-true |
| get-group Configuration |
| | get-button "When available: The engine will use some heuristics when identifiers are missing" |
| | get-property selected | equals true | verify-true |
| } |
| //Checks the result of a comparison on a model with id. |
| get-window Preferences | get-button OK | click |
| with [get-view "Package Explorer" | get-tree] { |
| select "Models/WithId/extlibraryLeft.ecore" "Models/WithId/extlibraryOrigin.ecore" "Models/WithId/extlibraryRight.ecore" |
| get-menu "Compare With/Each Other" | click |
| } |
| with [get-window "Select Common Ancestor"] { |
| get-button "\'/Models/WithId/extlibraryOrigin.ecore\'" | click |
| get-button OK | click |
| } |
| get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')" | get-button "Expand All" |
| | click |
| |
| get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')" | get-tree |
| | get-table-data | eq [read-csv-file "workspace:/Models/WithId/ExpectedResult_ConfUsingId.csv"] | assert-true "Unexpected diff tree" |
| |
| get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')" |
| | close |
| |
| //Checks the result of a comparison on a model without id. |
| with [get-view "Package Explorer" | get-tree] { |
| select "Models/WithoutID/verySmallLeft.ecore" "Models/WithoutID/verySmallRight.ecore" |
| get-menu "Compare With/Each Other" | click |
| } |
| get-editor "Compare (\'Models/WithoutID/verySmallLeft.ecore\' - \'Models/WithoutID/verySmallRight.ecore\')" | get-button "Expand All" |
| | click |
| |
| get-editor "Compare (\'Models/WithoutID/verySmallLeft.ecore\' - \'Models/WithoutID/verySmallRight.ecore\')" | get-tree |
| | get-table-data | eq [read-csv-file "workspace:/Models/WithoutID/ExpectedResult_ConfUsingContent.csv"] | assert-true "Unexpected diff tree" |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |