--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _7RlJ4GaBEeWE-JfpwaFXMg
Element-Name: CheckConnectionNumbersAreCorrectlyDisplayed
Element-Type: testcase
Element-Version: 3.0
External-Reference: 
Id: _7WamkGaBEeWE-JfpwaFXMg
Runtime-Version: 2.0.0.201506120617
Save-Time: 9/29/15 10:13 AM
Testcase-Type: ecl

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

get-view "Project Explorer" | get-tree | get-menu "New/Workflow Examples Project" | click
get-window -class WizardDialog | get-button Finish | click
get-view "Project Explorer" | get-tree | select "Workflow Examples Project/MDO_CO_Sellar.wf" | double-click
get-button "Show number of connections in workflow editor" | click
with [get-editor "MDO_CO_Sellar.wf" | get-diagram -index 1 | get-edit-part -className WorkflowPart] {
    get-edit-part -text Objective | get-target-connection 1 | get-figure 2 | get-property text | equals 8 | verify-true
    get-edit-part -text "Local O...line 2" | get-target-connection 0 | get-figure 2 | get-property text | equals 4 
        | verify-true
    get-edit-part -text Objective | get-target-connection 0 | get-figure 1 | get-property text | equals 4 | verify-true
    with [get-edit-part -text "Discipl...ulation"] {
        get-target-connection 0 | get-figure 2 | get-property text | equals 5 | verify-true
        get-target-connection 1 | get-property text | equals 5 | verify-true
    }
    with [get-edit-part -text "Discipl...ulation" -index 1 | get-target-connection 1] {
        get-property text | equals 1 | verify-true
        get-figure 1 | get-property text | equals 1 | verify-true
    }
    get-edit-part -text Objective | get-target-connection 4 | get-figure 1 | get-property text | equals 1 | verify-true
    get-property "getConnections().size()" | equals 17 | verify-true
    get-property "getModel().getConnections().size()" | equals 62 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
