3 Q7-vendor: www.xored.com/q7
4 Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_q_dzsL8bEeO668you7X_bw
5 Element-Name: ts016_tc004_match_engine_configuration_never
9 Id: _9LfF8L8gEeO668you7X_bw
10 Q7-Runtime-Version: 1.3.10.201312200736
11 Save-Time: 5/23/14 9:39 AM
14 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
15 Content-Type: text/plain
16 Entry-Name: .description
18 This must validate the "Never" configuration of the match engine.
20 1. Set the configuration to "Never"
21 2. Checks the result of a comparison on a model with ids
22 3. Checks the result of a comparison on a model without ids
23 ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
24 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
25 Content-Type: text/ecl
28 get-preferences-menu | click
29 //Checks that the "Never" configuration is available from the preference page and selects it.
30 with [get-window Preferences] {
31 get-tree | select "EMF Compare/Engines"
32 get-group Configuration
33 | get-button "Never: Objects will be matched with some heuristics regardless of having identifiers." | click
35 get-window Preferences | get-group Configuration
36 | get-button "Never: Objects will be matched with some heuristics regardless of having identifiers."
37 | get-property selected | equals true | verify-true
38 get-window Preferences | get-button OK | click
40 //Checks the result of a comparison on a model with id.
41 with [get-view "Package Explorer" | get-tree] {
42 select "Models/WithId/extlibraryLeft.ecore" "Models/WithId/extlibraryOrigin.ecore" "Models/WithId/extlibraryRight.ecore"
43 get-menu "Compare With/Each Other" | click
45 with [get-window "Select Common Ancestor"] {
46 get-button "\'/Models/WithId/extlibraryOrigin.ecore\'" | click
49 get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')" | get-button "Expand All"
52 get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')" | get-tree
53 | get-table-data | eq[read-csv-file "workspace:/Models/WithId/ExpectedResult_ConfUsingContent.csv"] | assert-true "Unexpected diff tree"
55 get-editor "Compare (\'Models/WithId/extlibraryRight.ecore\' - \'Models/WithId/extlibraryLeft.ecore\' - \'Models/WithId/extlibraryRight.ecore\')"
58 //Checks the result of a comparison on a model without id.
59 with [get-view "Package Explorer" | get-tree] {
60 select "Models/WithoutID/verySmallLeft.ecore" "Models/WithoutID/verySmallRight.ecore"
61 get-menu "Compare With/Each Other" | click
63 get-editor "Compare (\'Models/WithoutID/verySmallLeft.ecore\' - \'Models/WithoutID/verySmallRight.ecore\')" | get-button "Expand All"
65 get-editor "Compare (\'Models/WithoutID/verySmallLeft.ecore\' - \'Models/WithoutID/verySmallRight.ecore\')" | get-tree
66 | get-table-data | eq[read-csv-file "workspace:/Models/WithoutID/ExpectedResult_ConfUsingContent.csv"] | assert-true "Unexpected diff tree"
67 ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--