blob: a1938a9d0a0b7090a4f7209e8d3ca6de08332bd4 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A,_q_dzsL8bEeO668you7X_bw
Element-Name: ts016_tc004_match_engine_configuration_never
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _9LfF8L8gEeO668you7X_bw
Q7-Runtime-Version: 1.3.14.201410230950
Save-Time: 10/30/14 3:08 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This must validate the "Never" configuration of the match engine.
1. Set the configuration to "Never"
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
//Checks that the "Never" configuration is available from the preference page and selects it.
with [get-window Preferences] {
get-tree | select "EMF Compare/Engines"
get-group Configuration
| get-button "Never: Objects will be matched with some heuristics regardless of having identifiers." | click
}
get-window Preferences | get-group Configuration
| get-button "Never: Objects will be matched with some heuristics regardless of having identifiers."
| get-property selected | equals true | verify-true
get-window Preferences | get-button OK | click
//Checks the result of a comparison on a model with id.
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 | write-csv-file "workspace:/Models/WithId/ExpectedResult_ConfUsingContent2.csv"
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--