--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _7RlJ4GaBEeWE-JfpwaFXMg
Element-Name: WildlyAddEditAndRemoveEndpoints
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _s6mJIGtWEeW6Pd5E4Whelw
Runtime-Version: 2.0.0.201506120617
Save-Time: 10/5/15 1:46 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 21 22 -height 23 -width 125
        with [get-palette-entry Script] {
            mouse-move 29 6 button1 -height 23 -width 125
            mouse-press 29 6 button1 -height 23 -width 125
            mouse-release 29 6 button1 524288 -height 23 -width 125
            mouse-press 29 12 button1 -height 23 -width 125
            mouse-double-click 29 12 button1 -height 23 -width 125
        }
    }
    with [get-palette | get-palette-entry Script] {
        mouse-release 29 12 button1 524288 -height 23 -width 125
        mouse-hover 29 12 -height 23 -width 125
        mouse-move 17 14 -height 23 -width 125
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart | get-edit-part -text Script] {
        mouse-move 30 52 button1 -height 75 -width 75
        mouse-press 30 52 button1 -height 75 -width 75
        mouse-release 30 52 button1 524288 -height 75 -width 75
        mouse-press 30 52 button1 -height 75 -width 75
        mouse-double-click 30 52 button1 -height 75 -width 75
        mouse-release 30 52 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-combo -after [get-label "Data type:"] | select "Short Text"
    get-combo -after [get-label "Handling:"] | select "Constant (not consumed)"
    get-combo -after [get-label "Constraint:"] | select "Required if connected"
    get-button OK | click
}
get-editor "123.wf" | get-diagram -index 1 | mouse-hover 370 553 -height 625 -width 1203
with [get-view Properties | get-section Inputs] {
    get-table | select 123
    get-button Edit | click
}
with [get-window "Edit Input"] {
    get-combo -after [get-label "Data type:"] | select Directory
    get-editbox -after [get-label "Name:"] | set-text 123333
    get-combo -after [get-label "Constraint:"] | select "Not required"
    get-button OK | click
}
get-view Properties | get-section Inputs | get-table | select 123333 | double-click
with [get-window "Edit Input"] {
    get-combo -after [get-label "Data type:"] | select Vector
    get-combo -after [get-label "Handling:"] | select "Queue (consumed)"
    get-editbox -after [get-label "Name:"] | set-text 12333333333
    get-button OK | click
}
get-editor "123.wf" | get-diagram -index 1 | mouse-hover 385 552 -height 625 -width 1203
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
    get-editbox -after [get-label "Name:"] | set-text 1
    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 2
    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 3
    get-button OK | click
}
with [get-view Properties | get-section Outputs] {
    with [get-table] {
        select 3 | key-type Del
        select 2
    }
    get-button Remove | click
    get-table | select 1
    get-button Edit | click
}
with [get-window "Edit Output"] {
    get-editbox -after [get-label "Name:"] | set-text 1234
    get-button OK | click
}
with [get-view Properties] {
    get-section Outputs | get-table | select 1234 | key-type Del
    with [get-button "Execute on each new input value"] {
        check
        uncheck
        check
        uncheck
    }
    get-section Inputs | get-table | select 12333333333 | double-click
}
with [get-window "Edit Input"] {
    get-editbox -after [get-label "Name:"] | set-text 12
    get-combo -after [get-label "Handling:"] | select "Constant (not consumed)"
    get-button OK | click
}
with [get-view Properties | get-section Inputs] {
    get-table | select 12
    get-button Remove | click
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
