--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _DysjgCPgEeWMU9qdIQ2Zdw
Element-Name: _ExampleWorkflowsWithoutPlaceholdersCanBeExecuted
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _7YoNEGaBEeWE-JfpwaFXMg
Runtime-Version: 2.0.0.201506120617
Save-Time: 11/4/15 10:12 PM
Testcase-Type: ecl

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

// create workflow examples project
get-view "Project Explorer" | get-tree | get-menu "New/Workflow Examples Project" | click
get-window -class WizardDialog | get-button Finish | click

// run all example workflows that require no placeholders
list /*XML_Loader_XML_Merger*/ Script_as_controller Converger_in_nested_loop Converger_Joiner ParametricStudy_Script
	"MDO_IDF_Sellar" | each [val workflow] {
	get-view "Project Explorer" | get-tree | select [concat "Workflow Examples Project/" $workflow ".wf"] | double-click
	with [get-editor [concat $workflow ".wf"] | get-diagram -index 1] {
		mouse-move 538 64 button3 -height 627 -width 1202
		mouse-press 538 64 button3 -height 627 -width 1202
		mouse-release 538 64 button3 2097152 -height 627 -width 1202
		get-menu "Execute Workflow" | click
	}
	get-window "Execute workflow" | get-button Ok | click
	
	// wait until wf has finished and then verify finished state
	loop {
		if [get-tab-folder -index 1 | get-property activePage -raw | contains Finished] {
			get-tab-folder -index 1 | get-property activePage | contains Finished | verify-true
			log -message "Finished!!"
		} -else {
			log -message "Not finished yet!!"
			recur
		}
	}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
