--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _7RlJ4GaBEeWE-JfpwaFXMg,_7Tkt8GaBEeWE-JfpwaFXMg
Element-Name: InputProviderWithFilesFromProject
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _7YKTAGaBEeWE-JfpwaFXMg
Runtime-Version: 2.0.0.201506120617
Save-Time: 9/29/15 10:44 AM
Testcase-Type: ecl

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

get-view "Project Explorer" | get-tree | select DummyData
get-button "Create workflow (Ctrl+Shift+N)" | click
with [get-window "New Workflow"] {
	get-editbox -after [get-label "Workflow name:"] | type-text IP_test
	get-button Finish | click
}
with [get-editor "IP_test.wf"] {
	with [get-palette | get-palette-entry "Input Provider"] {
		mouse-move 75 13 button1 -height 23 -width 125
		mouse-press 75 13 button1 -height 23 -width 125
		get-figure 0 | drag-start 75 13
	}
	with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
		drag-enter 1401 303 -detail move
		drag-over 89 63 -detail copy
		drag-exit
		drag-accept 89 63 -detail copy
	}
	get-palette | drag-set-data
	get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 89 63 -detail copy
	get-palette | drag-end -detail move
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
	get-combo -after [get-label "Data type:"] | select File
	get-editbox -after [get-label "Name:"] | type-text theFile
	get-group "" | get-button "Select from project" | click
	with [get-window "Select File"] {
		get-tree | select "FirstLevelFile.pdf"
		get-button OK | click
	}
	get-button OK | click
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
	with [get-editbox -after [get-label "Name:"]] {
		type-text theSecondFile
		key-type TRAVERSE_TAB_NEXT
	}
	get-combo -after [get-label "Data type:"] | select File
	get-group "" | get-button "Select from project" | click
	with [get-window "Select File"] {
		get-tree | select "SecondLevelFolder/ThirdLevelFolder/ThirdLevelFile.txt"
		get-button OK | click
	}
	get-button OK | click
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
	with [get-editbox -after [get-label "Name:"]] {
		type-text thefolder
		key-type TRAVERSE_TAB_NEXT
	}
	get-combo -after [get-label "Data type:"] | select Directory
	get-group "" | get-button "Select from project" | click
	with [get-window "Select Directory"] {
		get-tree | select SecondLevelFolder
		get-button OK | click
	}
	get-button OK | click
}
get-view Properties | get-section Outputs | get-button Add | click
with [get-window "Add Output"] {
	with [get-editbox -after [get-label "Name:"]] {
		type-text thesecondfolder
		key-type TRAVERSE_TAB_NEXT
	}
	with [get-combo -after [get-label "Data type:"]] {
		select Directory
		key-type TRAVERSE_TAB_NEXT
	}
	with [get-group ""] {
		get-editbox -after [get-label "Value:"] | key-type TRAVERSE_TAB_NEXT
		get-button | key-type TRAVERSE_TAB_NEXT
		get-button "Select from project" | click
	}
	with [get-window "Select Directory"] {
		get-tree | select "SecondLevelFolder/ThirdLevelFolder"
		get-button OK | click
	}
	get-button OK | click
}
get-button "Save (M1+S)" | click
with [get-editor "IP_test.wf" | get-diagram -index 1] {
	mouse-move 431 148 button3 -height 631 -width 1473
	mouse-press 431 148 button3 -height 631 -width 1473
	mouse-move 431 147 -mask 2097152 -height 631 -width 1473
	mouse-drag 437 153 -mask 2097152 -height 631 -width 1473
	with [get-edit-part -className WorkflowPart] {
		mouse-drag 433 146 button3 2097152 -height 631 -width 1473
		mouse-release 433 146 button3 2097152 -height 631 -width 1473
	}
	get-menu "Execute Workflow" | click
}
get-window "Execute workflow" | get-button Ok | click

wait 3000

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

get-view "Workflow Data Browser" | get-tree | get-item "IP_test.*.<local>/Timeline/Input Provider - Run 1.*.<local>/O" +
	"utputs" | get-property childCount | equals 4 | verify-true
//get-tab-folder | get-property activePage | contains Finished | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
