--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _YhAEADHVEeWAf7_2MMRTJQ,_DysjgCPgEeWMU9qdIQ2Zdw
Element-Name: InputProviderWithFilesAtWfStart
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _7WoB8GaBEeWE-JfpwaFXMg
Runtime-Version: 2.0.0.201506120617
Save-Time: 11/5/15 3:26 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 IP
    get-button Finish | click
}
with [get-editor "IP.wf"] {
    with [get-palette | get-palette-entry "Input Provider"] {
        mouse-move 88 8 button1 -height 23 -width 125
        mouse-press 88 8 button1 -height 23 -width 125
        get-figure 0 | drag-start 88 8
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1165 266 -detail move
        drag-over 145 104 -detail copy
        drag-exit
        drag-accept 145 104 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 145 104 -detail copy
    get-palette | drag-end -detail move
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
    with [get-editbox -after [get-label "Name:"]] {
        set-text file
        key-type "TRAVERSE_TAB_NEXT"
    }
    get-combo -after [get-label "Data type:"] | select File
    get-group "" | get-button "Select from project" | click
    get-window "Select File" | get-button Cancel | click
    get-group "" | get-label "Define at workflow start" | click
    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 folder
    get-combo -after [get-label "Data type:"] | select Directory
    get-group "" | get-label "Define at workflow start" | click
    get-button OK | click
}
with [get-editor "IP.wf" | get-diagram -index 1] {
    mouse-move 178 285 button3 -height 524 -width 1202
    mouse-press 178 285 button3 -height 524 -width 1202
    mouse-release 178 285 button3 2097152 -height 524 -width 1202
    get-menu "Execute Workflow" | click
}
get-window "Save Workflow" | get-button OK | click
get-window "Execute workflow" | get-button "Next >" | click
set-dialog-result Folder "D:\\rcptt-profile\\InputProvider_TestData\\Root"
get-window "Execute workflow" | get-group "Component runtime configuration" | get-tree | get-button "..." | click
set-dialog-result File "D:\\rcptt-profile\\InputProvider_TestData\\Root\\FirstFolder\\SecondFolder\\oneFile.txt"
with [get-window "Execute workflow"] {
    get-group "Component runtime configuration" | get-tree | get-button "..." -index 1 | click
    get-button Ok | click
}


wait 3000

with [get-view "Workflow Data Browser"] {
	click
	with [get-tree] {
		select "IP.*.<local>" -all | double-click
		select "IP.*.<local>/Timeline" - all | double-click
		select "IP.*.<local>/Timeline/Input Provider - Run 1.*.<local>" - all | double-click
		select "IP.*.<local>/Timeline/Input Provider - Run 1.*.<local>/Outputs" - all | double-click
	}
}

get-view "Workflow Data Browser" | get-tree | get-item "IP.*.<local>/Timeline/Input Provider - Run 1.*.<local>/Outputs" | get-property childCount | equals 2 | verify-true
//get-tab-folder | get-property activePage | contains Finished | verify-true


------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
