--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _7RlJ4GaBEeWE-JfpwaFXMg
Element-Name: MovingComponents
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _hSzb0G5lEeW6Pd5E4Whelw
Runtime-Version: 2.0.0.201506120617
Save-Time: 10/9/15 11:14 AM
Testcase-Type: ecl

------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content

get-button "Create workflow (Ctrl+Shift+N)" | click
with [get-window "New Workflow"] {
    get-editbox -after [get-label "Workflow name:"] | type-text 123
    get-button Finish | click
}
with [get-tab-folder -index 1] {
    double-click
    get-tab-item "123.wf" | click
}
with [get-editor "123.wf"] {
    with [get-palette | get-palette-entry Script] {
        mouse-move 29 6 button1 -height 23 -width 125
        mouse-press 29 6 button1 -height 23 -width 125
        get-figure "0/0" | drag-start 13 3
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1085 493 -detail move
        drag-over 229 109 -detail copy
        drag-exit
        drag-accept 229 109 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 229 109 -detail copy
    with [get-palette] {
        drag-end -detail move
        with [get-palette-entry Cluster] {
            mouse-move 45 15 button1 -height 23 -width 125
            mouse-press 45 15 button1 -height 23 -width 125
            get-figure 0 | drag-start 45 15
        }
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1085 445 -detail move
        drag-over 681 128 -detail copy
        drag-exit
        drag-accept 681 128 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 681 128 -detail copy
    get-palette | drag-end -detail move
    with [get-diagram -index 1] {
        with [get-edit-part -className WorkflowPart | get-edit-part -text Cluster] {
            mouse-move 28 21 button1 -height 75 -width 75
            mouse-press 28 21 button1 -height 75 -width 75
            mouse-move 24 12 -mask 524288 -height 75 -width 75
        }
        mouse-drag 711 146 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart | get-edit-part -text Cluster] {
            with [get-handle MoveHandle] {
                mouse-drag 21 1 button1 524288 -height 77 -width 77
                mouse-release 21 1 button1 524288 -height 77 -width 77
            }
            mouse-hover 28 19 -height 75 -width 75
        }
    }
    with [get-palette | get-palette-entry Joiner] {
        mouse-move 49 9 button1 -height 23 -width 125
        mouse-press 49 9 button1 -height 23 -width 125
        get-figure 0 | drag-start 49 9
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1068 358 -detail move
        drag-over 243 464 -detail copy
        drag-exit
        drag-accept 243 464 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 243 464 -detail copy
    get-palette | drag-end -detail move
    get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Joiner | mouse-hover 0 0 
        -height 38 -width 38
    with [get-palette] {
        get-palette-entry "Output Writer" | mouse-move 31 0 -height 23 -width 125
        with [get-palette-entry Joiner] {
            mouse-move 45 12 button1 -height 23 -width 125
            mouse-press 45 12 button1 -height 23 -width 125
            get-figure 0 | drag-start 45 12
        }
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1085 381 -detail move
        drag-over 730 476 -detail copy
        drag-exit
        drag-accept 730 476 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 730 476 -detail copy
    get-palette | drag-end -detail move
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Joiner] {
        mouse-move 22 14 button1 -height 38 -width 38
        mouse-press 22 14 button1 -height 38 -width 38
        mouse-release 22 14 button1 524288 -height 38 -width 38
        mouse-press 22 14 button1 -height 38 -width 38
        mouse-double-click 22 14 button1 -height 38 -width 38
        mouse-release 22 14 button1 524288 -height 38 -width 38
        mouse-hover 22 14 -height 38 -width 38
    }
}
get-view Properties | get-section Configuration | get-editbox -after [get-label "Inputs to join"] | set-text 6
with [get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part 
    -text "Joiner (1)"] {
    mouse-move 25 9 button1 -height 38 -width 38
    mouse-press 25 9 button1 -height 38 -width 38
    mouse-release 25 9 button1 524288 -height 38 -width 38
    mouse-move 25 6 button1 -height 38 -width 38
    mouse-press 25 6 button1 -height 38 -width 38
    mouse-release 25 6 button1 524288 -height 38 -width 38
    activate-direct-edit
    mouse-move 17 26 button1 -height 38 -width 38
    mouse-press 17 26 button1 -height 38 -width 38
    mouse-release 17 26 button1 524288 -height 38 -width 38
    mouse-press 17 26 button1 -height 38 -width 38
    mouse-double-click 17 26 button1 -height 38 -width 38
    mouse-release 17 26 button1 524288 -height 38 -width 38
}
get-view Properties | get-section Configuration | get-editbox -after [get-label "Inputs to join"] | set-text 5
with [get-editor "123.wf" | get-diagram -index 1] {
    mouse-move 357 390 button1 -height 827 -width 1094
    mouse-press 357 390 button1 -height 827 -width 1094
    mouse-release 357 390 button1 524288 -height 827 -width 1094
    key-type "M3+d"
    with [get-edit-part -className WorkflowPart] {
        with [get-edit-part -text Joiner] {
            mouse-move 25 19 button1 -height 38 -width 38
            mouse-press 25 19 button1 -height 38 -width 38
            mouse-release 25 19 button1 524288 -height 38 -width 38
        }
        with [get-edit-part -text "Joiner (1)"] {
            mouse-move 18 12 button1 -height 38 -width 38
            mouse-press 18 12 button1 -height 38 -width 38
            mouse-release 18 12 button1 524288 -height 38 -width 38
        }
    }
}
with [get-window "Connection Editor"] {
    with [get-group Source | get-tree] {
        select "Joiner/Joined"
        get-item "Joiner/Joined" | drag-start 6 3
    }
    with [get-group Target | get-tree] {
        get-item "Joiner \\(1\\)/Input 002" | drag-enter "-59" 2 -detail move
        get-item "Joiner \\(1\\)/Input 002" | drag-over 21 1 -detail move
        get-item "Joiner \\(1\\)/Input 002" | drag-exit
        get-item "Joiner \\(1\\)/Input 002" | drag-accept 21 1 -detail move
    }
    get-group Source | get-tree | drag-set-data
    get-group Target | get-tree | get-item "Joiner \\(1\\)/Input 002" | drop 21 1 -detail move
    get-group Source | get-tree | drag-end -detail move
    get-button OK | click
}
with [get-editor "123.wf"] {
    with [get-diagram -index 1] {
        mouse-hover 524 494 -height 827 -width 1094
        key-type ESC
        mouse-move 524 491 button1 -height 827 -width 1094
        mouse-press 524 491 button1 -height 827 -width 1094
        mouse-release 524 491 button1 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart | get-edit-part -text "Joiner (1)" | get-target-connection 0 
            | get-handle BendpointCreationHandle] {
            mouse-move 2 3 button1 -height 5 -width 5
            mouse-press 2 3 button1 -height 5 -width 5
        }
        mouse-move 504 502 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 520 703 button1 524288 -height 827 -width 1094
            mouse-release 520 703 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle] {
                mouse-move 2 1 button1 -height 5 -width 5
                mouse-press 2 1 button1 -height 5 -width 5
            }
        }
        mouse-move 384 604 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 339 641 button1 524288 -height 827 -width 1094
            mouse-release 339 641 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle 
                -index 1] {
                mouse-move 4 0 button1 -height 5 -width 5
                mouse-press 4 0 button1 -height 5 -width 5
            }
        }
        mouse-move 421 673 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 414 675 button1 524288 -height 827 -width 1094
            mouse-release 414 675 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle] {
                mouse-move 1 3 button1 -height 5 -width 5
                mouse-press 1 3 button1 -height 5 -width 5
            }
        }
        mouse-move 296 571 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 281 576 button1 524288 -height 827 -width 1094
            mouse-release 281 576 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle 
                -index 4] {
                mouse-move 2 3 button1 -height 5 -width 5
                mouse-press 2 3 button1 -height 5 -width 5
            }
        }
        mouse-move 639 607 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 699 663 button1 524288 -height 827 -width 1094
            mouse-release 699 663 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle 
                -index 4] {
                mouse-move 3 4 button1 -height 5 -width 5
                mouse-press 3 4 button1 -height 5 -width 5
            }
        }
        mouse-move 620 685 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 668 691 button1 524288 -height 827 -width 1094
            mouse-release 668 691 button1 524288 -height 827 -width 1094
            with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle 
                -index 6] {
                mouse-move 2 3 button1 -height 5 -width 5
                mouse-press 2 3 button1 -height 5 -width 5
            }
        }
        mouse-move 727 591 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 754 608 button1 524288 -height 827 -width 1094
            mouse-release 754 608 button1 524288 -height 827 -width 1094
        }
        mouse-hover 948 319 -height 827 -width 1094
        mouse-move 948 319 button1 -height 827 -width 1094
        mouse-press 948 319 button1 -height 827 -width 1094
        mouse-release 948 319 button1 524288 -height 827 -width 1094
    }
    with [get-palette | get-palette-entry Joiner] {
        mouse-move 65 11 button1 -height 23 -width 125
        mouse-press 65 11 button1 -height 23 -width 125
        get-figure 0 | drag-start 65 11
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1075 365 -detail move
        drag-over 516 226 -detail copy
        drag-exit
        drag-accept 516 226 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 516 226 -detail copy
    get-palette | drag-end -detail move
    with [get-diagram -index 1] {
        key-type "M1+c"
        key-type "M1+v"
    }
    with [get-diagram -index 1] {
        with [get-edit-part -className WorkflowPart | get-edit-part -text "Copy o...er (2)"] {
            mouse-move 23 17 button1 -height 38 -width 38
            mouse-press 23 17 button1 -height 38 -width 38
        }
        mouse-move 944 341 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 545 388 button1 524288 -height 827 -width 1094
            mouse-release 545 388 button1 524288 -height 827 -width 1094
            get-edit-part -text "Copy o...er (2)" | mouse-hover 23 17 -height 38 -width 38
        }
        mouse-hover 448 245 -height 827 -width 1094
        key-type "M3+d"
        with [get-edit-part -className WorkflowPart] {
            with [get-edit-part -text "Joiner (2)"] {
                mouse-move 33 27 button1 -height 38 -width 38
                mouse-press 33 27 button1 -height 38 -width 38
                mouse-release 33 27 button1 524288 -height 38 -width 38
            }
            with [get-edit-part -text "Copy o...er (2)"] {
                mouse-move 13 26 button1 -height 38 -width 38
                mouse-press 13 26 button1 -height 38 -width 38
                mouse-release 13 26 button1 524288 -height 38 -width 38
            }
        }
    }
}
with [get-window "Connection Editor"] {
    with [get-group Source | get-tree] {
        select "Joiner \\(2\\)/Joined"
        get-item "Joiner \\(2\\)/Joined" | drag-start 10 11
    }
    with [get-group Target | get-tree] {
        get-item "Copy of Joiner \\(2\\)/Input 002" | drag-enter "-57" 6 -detail move
        get-item "Copy of Joiner \\(2\\)/Input 002" | drag-over 48 1 -detail move
        get-item "Copy of Joiner \\(2\\)/Input 002" | drag-exit
        get-item "Copy of Joiner \\(2\\)/Input 002" | drag-accept 48 1 -detail move
    }
    get-group Source | get-tree | drag-set-data
    get-group Target | get-tree | get-item "Copy of Joiner \\(2\\)/Input 002" | drop 48 1 -detail move
    get-group Source | get-tree | drag-end -detail move
    get-button OK | click
}
with [get-editor "123.wf"] {
    with [get-diagram -index 1] {
        key-type ESC
        with [get-edit-part -className WorkflowPart | get-edit-part -text "Copy o...er (2)" | get-target-connection 0] {
            mouse-move 11 43 button1 -height 108 -width 18
            mouse-press 11 43 button1 -height 108 -width 18
            mouse-release 11 43 button1 524288 -height 108 -width 18
            with [get-handle BendpointCreationHandle] {
                mouse-move 0 1 button1 -height 5 -width 5
                mouse-press 0 1 button1 -height 5 -width 5
            }
        }
        mouse-move 526 323 -mask 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 421 455 button1 524288 -height 827 -width 1094
            mouse-release 421 455 button1 524288 -height 827 -width 1094
        }
        mouse-move 814 274 button1 -height 827 -width 1094
        mouse-press 814 274 button1 -height 827 -width 1094
        mouse-release 814 274 button1 524288 -height 827 -width 1094
    }
    with [get-palette | get-palette-entry "Add Label"] {
        mouse-move 35 4 button1 -height 23 -width 125
        mouse-press 35 4 button1 -height 23 -width 125
        get-figure 0 | drag-start 35 4
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1086 99 -detail move
        drag-over 751 131 -detail copy
        drag-over 344 136 -detail copy
        drag-over 139 53 -detail copy
        drag-exit
        drag-accept 139 53 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 139 53 -detail copy
    get-palette | drag-end -detail move
    with [get-diagram -index 1] {
        with [get-edit-part -className WorkflowPart] {
            with [get-edit-part -text "New label" | get-handle ResizeHandle -index 4] {
                mouse-move 3 3 button1 -height 7 -width 7
                mouse-press 3 3 button1 -height 7 -width 7
            }
            get-edit-part -text Script | mouse-move 14 6 -mask 524288 -height 75 -width 75
        }
        mouse-drag 882 742 button1 524288 -height 827 -width 1094
        mouse-release 882 742 button1 524288 -height 827 -width 1094
        with [get-edit-part -className WorkflowPart | get-edit-part -text "New label"] {
            mouse-move 366 450 button1 -height 690 -width 744
            mouse-press 366 450 button1 -height 690 -width 744
            mouse-release 366 450 button1 524288 -height 690 -width 744
            mouse-press 366 450 button1 -height 690 -width 744
            mouse-double-click 366 450 button1 -height 690 -width 744
            mouse-release 366 450 button1 524288 -height 690 -width 744
        }
    }
}
get-view Properties | get-section Text | get-editbox | set-text-selection -offset 9 -startLine 0 -endLine 0 -endOffset 0
get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text "New label" 
    | mouse-hover 403 41 -height 690 -width 744
get-view Properties | get-section Text | get-editbox | key-type BackSpace
with [get-editor "123.wf" | get-diagram -index 1] {
    mouse-move 56 192 button1 -height 827 -width 1094
    mouse-press 56 192 button1 -height 827 -width 1094
    mouse-release 56 192 button1 524288 -height 827 -width 1094
    mouse-hover 74 186 -height 827 -width 1094
    with [get-edit-part -className WorkflowPart] {
        with [get-edit-part -text "Joiner (1)" | get-target-connection 0] {
            mouse-move 123 162 button1 -height 203 -width 490
            mouse-press 123 162 button1 -height 203 -width 490
            mouse-release 123 162 button1 524288 -height 203 -width 490
        }
        get-edit-part -className WorkflowLabelPart | mouse-hover 238 608 -height 690 -width 744
        with [get-edit-part -text "Joiner (1)" | get-target-connection 0 | get-handle BendpointCreationHandle 
            -index 2] {
            mouse-hover 2 4 -height 5 -width 5
            mouse-move 2 4 button1 -height 5 -width 5
            mouse-press 2 4 button1 -height 5 -width 5
        }
        get-edit-part -className WorkflowLabelPart | mouse-move 231 622 -mask 524288 -height 690 -width 744
    }
    mouse-drag 376 681 -mask 524288 -height 827 -width 1094
    with [get-edit-part -className WorkflowPart | get-edit-part -text "Joiner (1)" | get-target-connection 0] {
        with [get-handle BendpointMoveHandle -index 2] {
            mouse-drag 3 3 button1 524288 -height 7 -width 7
            mouse-release 3 3 button1 524288 -height 7 -width 7
        }
        get-handle BendpointMoveHandle -index 2 | mouse-hover 3 3 -height 7 -width 7
    }
    mouse-hover 93 468 -height 827 -width 1094
    mouse-move 76 446 button1 -height 827 -width 1094
    mouse-press 76 446 button1 -height 827 -width 1094
    mouse-release 76 446 button1 524288 -height 827 -width 1094
    get-edit-part -className WorkflowPart | get-edit-part -className WorkflowLabelPart | mouse-hover 218 233 
        -height 690 -width 744
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
