--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _DysjgCPgEeWMU9qdIQ2Zdw
Element-Name: MoreCopyPasteDeleteStuff
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _25UicGteEeW6Pd5E4Whelw
Runtime-Version: 2.0.0.201506120617
Save-Time: 11/3/15 7:39 PM
Testcase-Type: ecl

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

get-button "Create workflow (M1+M2+N)" | click
with [get-window "New Workflow"] {
    get-editbox -after [get-label "Workflow name:"] | type-text 123
    get-button Finish | click
}
with [get-editor "123.wf"] {
    with [get-palette] {
        get-palette-entry Excel | mouse-move 10 22 -height 23 -width 125
        with [get-palette-entry Script] {
            mouse-move 16 4 button1 -height 23 -width 125
            mouse-press 16 4 button1 -height 23 -width 125
            get-figure "0/0" | drag-start 0 1
        }
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1180 435 -detail move
        drag-over 122 114 -detail copy
        drag-exit
        drag-accept 122 114 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 122 114 -detail copy
    with [get-palette] {
        drag-end -detail move
        with [get-palette-entry Script] {
            mouse-move 32 3 button1 -height 23 -width 125
            mouse-press 32 3 button1 -height 23 -width 125
            get-figure 0 | drag-start 32 3
        }
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1179 436 -detail move
        drag-over 431 115 -detail copy
        drag-exit
        drag-accept 431 115 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 431 115 -detail copy
    get-palette | drag-end -detail move
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Script] {
        mouse-move 20 26 button1 -height 75 -width 75
        mouse-press 20 26 button1 -height 75 -width 75
        mouse-release 20 26 button1 524288 -height 75 -width 75
        mouse-press 20 26 button1 -height 75 -width 75
        mouse-double-click 20 26 button1 -height 75 -width 75
        mouse-release 20 26 button1 524288 -height 75 -width 75
    }
}
with [get-view Properties] {
    get-property-tab "Inputs/Outputs" | click
    get-section Inputs | get-button Add | click
}
with [get-window "Add Input"] {
    get-editbox -after [get-label "Name:"] | set-text 123
    get-button OK | click
}
get-view Properties | get-section Inputs | get-button Add | click
with [get-window "Add Input"] {
    get-editbox -after [get-label "Name:"] | set-text 345
    get-button OK | click
}
with [get-editor "123.wf" | get-diagram -index 1] {
    mouse-hover 379 545 -height 625 -width 1203
    with [get-edit-part -className WorkflowPart | get-edit-part -text "Script (1)"] {
        mouse-move 38 23 button1 -height 75 -width 75
        mouse-press 38 23 button1 -height 75 -width 75
        mouse-release 38 23 button1 524288 -height 75 -width 75
    }
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
    get-editbox -after [get-label "Name:"] | set-text 123
    get-button OK | click
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
    get-editbox -after [get-label "Name:"] | set-text 345
    get-button OK | click
}
get-view Properties | get-section Outputs | get-button Add | key-type "M3+d"
with [get-editor "123.wf" | get-diagram -index 1] {
    mouse-move 325 189 button1 -height 625 -width 1203
    mouse-press 325 189 button1 -height 625 -width 1203
    mouse-release 325 189 button1 524288 -height 625 -width 1203
    key-type "M3+d"
    with [get-edit-part -className WorkflowPart] {
        with [get-edit-part -text "Script (1)"] {
            mouse-move 21 48 button1 -height 75 -width 75
            mouse-press 21 48 button1 -height 75 -width 75
            mouse-release 21 48 button1 524288 -height 75 -width 75
        }
        with [get-edit-part -text Script] {
            mouse-move 45 46 button1 -height 75 -width 75
            mouse-press 45 46 button1 -height 75 -width 75
            mouse-release 45 46 button1 524288 -height 75 -width 75
        }
    }
}
get-window "Connection Editor" | get-button OK | click
with [get-editor "123.wf"] {
    with [get-diagram -index 1] {
        key-type ESC
        mouse-hover 321 158 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart | get-edit-part -text Script | get-target-connection 0] {
            mouse-move 118 17 button1 -height 20 -width 234
            mouse-press 118 17 button1 -height 20 -width 234
            mouse-release 118 17 button1 524288 -height 20 -width 234
            with [get-handle BendpointCreationHandle] {
                mouse-move 4 1 button1 -height 5 -width 5
                mouse-press 4 1 button1 -height 5 -width 5
            }
        }
        mouse-move 296 170 -mask 524288 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 195 268 button1 524288 -height 625 -width 1203
            mouse-release 195 268 button1 524288 -height 625 -width 1203
            with [get-edit-part -text Script | get-target-connection 0 | get-handle BendpointCreationHandle] {
                mouse-move 3 0 button1 -height 5 -width 5
                mouse-press 3 0 button1 -height 5 -width 5
            }
        }
        mouse-move 311 228 -mask 524288 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 304 317 button1 524288 -height 625 -width 1203
            mouse-release 304 317 button1 524288 -height 625 -width 1203
            with [get-edit-part -text Script | get-target-connection 0 | get-handle BendpointCreationHandle] {
                mouse-move 2 0 button1 -height 5 -width 5
                mouse-press 2 0 button1 -height 5 -width 5
                mouse-hover 2 0 -mask 524288 -height 5 -width 5
                mouse-move 3 2 -mask 524288 -height 5 -width 5
            }
            mouse-drag 437 333 button1 524288 -height 625 -width 1203
            mouse-release 437 333 button1 524288 -height 625 -width 1203
            get-edit-part -text Script | get-target-connection 0 | mouse-hover 267 136 -height 145 -width 292
        }
        mouse-move 71 42 button1 -height 625 -width 1203
        mouse-press 71 42 button1 -height 625 -width 1203
        mouse-move 80 46 -mask 524288 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 584 464 button1 524288 -height 625 -width 1203
            mouse-release 584 464 button1 524288 -height 625 -width 1203
        }
        mouse-hover 584 464 -height 625 -width 1203
        key-type "M1+c"
        key-type "M1+v"
    }
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    get-diagram -index 1 | key-type "M1+v"
    with [get-diagram -index 1] {
        mouse-hover 570 398 -height 625 -width 1203
        mouse-move 570 398 button1 -height 625 -width 1203
        mouse-press 570 398 button1 -height 625 -width 1203
        mouse-release 570 398 button1 524288 -height 625 -width 1203
        mouse-move 637 431 button1 -height 625 -width 1203
        mouse-press 637 431 button1 -height 625 -width 1203
        mouse-move 635 424 -mask 524288 -height 625 -width 1203
        mouse-drag 641 430 -mask 524288 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart] {
            mouse-drag 313 0 button1 524288 -height 634 -width 1203
            mouse-release 313 0 button1 524288 -height 634 -width 1203
        }
        mouse-hover 328 66 -height 625 -width 1203
        key-type Del
        mouse-move 340 220 button1 -height 625 -width 1203
        mouse-press 340 220 button1 -height 625 -width 1203
        mouse-release 340 220 button1 524288 -height 625 -width 1203
        mouse-hover 340 220 -height 625 -width 1203
        key-type "M1+z"
    }
    with [get-diagram -index 1] {
        key-type "M1+y"
        key-type "M1+z"
    }
    with [get-diagram -index 1] {
        key-type "M1+y"
        key-type "M1+z"
    }
    get-diagram -index 1 | key-type "M1+y"
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
