blob: 7a7f7daf6ac098c88b0abd5ebeb904f6615122b4 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _q_dzsL8bEeO668you7X_bw,_SapwEL4pEeOsAoUpt_cnqw,_LOMGYGrvEeK_JdLra2Bk5A
Element-Name: ts016_tc003_match_engine_configuration_only
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _gRXVcL8fEeO668you7X_bw
Q7-Runtime-Version: 1.3.10.201312200736
Save-Time: 4/10/14 3:34 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
This must validate the "Only" configuration of the match engine.
1. Set the configuration to "Only"
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 "Only" 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 "Only: Objects without identifiers will never be matched." | click
}
get-window Preferences | get-group Configuration
| get-button "Only: Objects without identifiers will never be matched." | 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 | 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_ConfUsingId.csv"] | assert-true "Unexpected diff tree"
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--