--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _7RlJ4GaBEeWE-JfpwaFXMg
Element-Name: EditConnectedEndpoints
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _CxkR4GtWEeW6Pd5E4Whelw
Runtime-Version: 2.0.0.201506120617
Save-Time: 10/5/15 1:41 PM
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-editor "123.wf"] {
    with [get-palette] {
        get-palette-entry Excel | mouse-move 18 22 -height 23 -width 125
        with [get-palette-entry Script] {
            mouse-move 21 4 button1 -height 23 -width 125
            mouse-press 21 4 button1 -height 23 -width 125
            mouse-release 21 4 button1 524288 -height 23 -width 125
            mouse-press 21 10 button1 -height 23 -width 125
            mouse-double-click 21 10 button1 -height 23 -width 125
        }
    }
    with [get-palette | get-palette-entry Script] {
        mouse-release 21 10 button1 524288 -height 23 -width 125
        mouse-hover 21 10 -height 23 -width 125
        mouse-press 21 10 button1 -height 23 -width 125
        mouse-release 21 10 button1 524288 -height 23 -width 125
        mouse-press 21 10 button1 -height 23 -width 125
        mouse-double-click 21 10 button1 -height 23 -width 125
    }
    with [get-palette | get-palette-entry Script] {
        mouse-release 21 10 button1 524288 -height 23 -width 125
        mouse-move 11 6 -height 23 -width 125
    }
    with [get-diagram -index 1] {
        with [get-edit-part -className WorkflowPart | get-edit-part -text "Script (1)"] {
            mouse-move 57 61 button1 -height 75 -width 75
            mouse-press 57 61 button1 -height 75 -width 75
            mouse-move 69 56 -mask 524288 -height 75 -width 75
        }
        mouse-drag 369 101 button1 524288 -height 625 -width 1203
        mouse-release 369 101 button1 524288 -height 625 -width 1203
        with [get-edit-part -className WorkflowPart | get-edit-part -text Script] {
            mouse-hover 43 36 -height 75 -width 75
            mouse-move 43 36 button1 -height 75 -width 75
            mouse-press 43 36 button1 -height 75 -width 75
            mouse-release 43 36 button1 524288 -height 75 -width 75
            mouse-press 43 36 button1 -height 75 -width 75
            mouse-double-click 43 36 button1 -height 75 -width 75
            mouse-release 43 36 button1 524288 -height 75 -width 75
            mouse-hover 43 36 -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-combo -after [get-label "Data type:"] | select "Short Text"
    get-editbox -after [get-label "Name:"] | set-text 123
    get-button OK | click
}
with [get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part 
    -text "Script (1)"] {
    mouse-move 40 52 button1 -height 75 -width 75
    mouse-press 40 52 button1 -height 75 -width 75
    mouse-release 40 52 button1 524288 -height 75 -width 75
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
    get-combo -after [get-label "Data type:"] | select "Short Text"
    get-editbox -after [get-label "Name:"] | set-text 456
    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 250 123 button1 -height 625 -width 1203
    mouse-press 250 123 button1 -height 625 -width 1203
    mouse-release 250 123 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 44 42 button1 -height 75 -width 75
            mouse-press 44 42 button1 -height 75 -width 75
            mouse-release 44 42 button1 524288 -height 75 -width 75
        }
        with [get-edit-part -text Script] {
            mouse-move 60 46 button1 -height 75 -width 75
            mouse-press 60 46 button1 -height 75 -width 75
            mouse-release 60 46 button1 524288 -height 75 -width 75
        }
    }
}
get-window "Connection Editor" | get-button OK | click
with [get-editor "123.wf" | get-diagram -index 1] {
    key-type ESC
    get-edit-part -className WorkflowPart | get-edit-part -text Script | mouse-hover 45 35 -height 75 -width 75
}
get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart 
    | get-property "getModel().getConnections().size()" | equals 1 | verify-true
with [get-view Properties | get-group Connections | get-canvas] {
    get-figure 0 | mouse-enter 15 18 -height 21 -width 424
    mouse-move 153 2 -height 349 -width 423
    mouse-exit 168 "-2" -height 349 -width 423
}
with [get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Script] {
    mouse-move 45 47 button1 -height 75 -width 75
    mouse-press 45 47 button1 -height 75 -width 75
    mouse-release 45 47 button1 524288 -height 75 -width 75
    mouse-hover 45 47 -height 75 -width 75
}
get-view Properties | get-section Inputs | get-table | select 123 | double-click
with [get-window "Edit Input"] {
    get-editbox -after [get-label "Name:"] | set-text 678
    get-button OK | click
}
with [get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part 
    -text "Script (1)"] {
    mouse-move 43 56 button1 -height 75 -width 75
    mouse-press 43 56 button1 -height 75 -width 75
    mouse-release 43 56 button1 524288 -height 75 -width 75
    mouse-press 43 56 button1 -height 75 -width 75
    mouse-double-click 43 56 button1 -height 75 -width 75
    mouse-release 43 56 button1 524288 -height 75 -width 75
}
get-view Properties | get-section Outputs | get-table | select 456 | double-click
with [get-window "Edit Output"] {
    with [get-editbox -after [get-label "Name:"]] {
        set-text 456
        set-text 234
    }
    get-button OK | click
}
get-editor "123.wf" | get-diagram -index 1 | mouse-hover 389 538 -height 625 -width 1203
get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart 
    | get-property "getModel().getConnections().size()" | equals 1 | verify-true
with [get-editor "123.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Script] {
    mouse-move 41 48 button1 -height 75 -width 75
    mouse-press 41 48 button1 -height 75 -width 75
    mouse-release 41 48 button1 524288 -height 75 -width 75
    mouse-press 41 48 button1 -height 75 -width 75
    mouse-double-click 41 48 button1 -height 75 -width 75
    mouse-release 41 48 button1 524288 -height 75 -width 75
    mouse-hover 41 48 -height 75 -width 75
}
get-view Properties | get-section Inputs | get-table | select 678 | double-click
with [get-window "Edit Input"] {
    get-combo -after [get-label "Data type:"] | select Boolean
    get-button OK | click
}
get-window "Data types not convertible" 
    | get-label "Input '678' is currently connected to an output. Their data types won't be convertible to each other, if the data type of '678' is changed from 'Short Text' to 'Boolean'.Existing connections will be removed." 
    | get-property "getText()" 
    | equals "Input '678' is currently connected to an output. Their data types won't be convertible to each other, if the data type of '678' is changed from 'Short Text' to 'Boolean'.\n\n"
    + "Existing connections will be removed." | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
