blob: bbd863e8065e2a2fc4479b44c22a93501cbd1b17 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: TC_HierarchyAddition
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _9nkA4OL8EeatZLxI8McVXQ
Runtime-Version: 2.3.0.201805302312
Save-Time: 8/28/18 10:14 AM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Merge addition/deletion in a hierarchy (container-child dependency). Persistence check.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
/* Copy current test files to Example project */
copy-example "HierarchyAddition"
/* Compare Example models */
compare-examples-for-impact-analysis
/* Merge some of changes */
with [get-editor "Compare ('Ex1' - 'Ex2')"] {
get-tree | select "Root (8)/Element B (7)/Element D (2)"
get-button "Apply deletion on the left" | click
}
with [get-window "Merge Operation"] {
get-button "Include differences in children" | uncheck
get-button OK | click
}
with [get-window "Merge Operation"] {
get-group "Implied changes" | get-tree | select "Element F/Deletion"
get-button OK | click
}
with [get-editor "Compare ('Ex1' - 'Ex2')"] {
get-tree | select "Root (5)/Element B (4)/Element G (2)/Element H"
get-button "Apply changes to the right" | click
}
with [get-window "Merge Operation"] {
get-group "Implied changes" | get-tree | select "Element G/Addition into Element B (via 'manyContent')"
get-button OK | click
}
/* Check persistency */
check-persistency
check-child-num "Root \\(2\\)/Element B \\(2\\)/Element G \\(1\\)/Element I" 0
check-child-num "Root \\(2\\)/Element B \\(2\\)/Element C" 0
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--