blob: f76ee19accf6ebac17ff00d0e38d26e9a9e85c8b [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ihvnUC3mEeSwhO5Nwx0hPg,_ih4KMC3mEeSwhO5Nwx0hPg,_D4Pj4C3lEeSwhO5Nwx0hPg
Element-Name: DataTemplateEditor Smoke
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _XogaUM-8EemDG-PUFK2qgQ
Runtime-Version: 2.4.2.201905052359
Save-Time: 9/5/19 12:32 PM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Project Explorer" | get-tree | select "org.eclipse.emf.ecp.makeithappen.model.viewmodel" | get-menu
-path "New/Other..." | click
get-window New | get-button "Next >" | click
with [get-window -class WizardDialog] {
get-editbox -after [get-label "File name:"] | set-text "test.datatemplate"
get-button Finish | click
}
with [get-editor "test.datatemplate"] {
get-tree | select "Template Collection" | get-menu -path Template | click
get-button "Create and link new Instance" | click
}
get-window "Select Sub Class and Template" | get-tree | select "template/ViewTemplate" | double-click
with [get-editor "test.datatemplate"] {
get-tree | select "Template Collection/Template/View Template" | get-menu -path Style | click
get-button "Link Style Property" | click
}
get-window "Select Elements" | get-table | get-property itemCount | equals 0 | verify-true
get-window "Select Elements" | get-button Cancel | click
get-editor "test.datatemplate" | get-button "Create and link new Style Property" | click
with [get-window "Select Sub Class and Template"] {
get-tree | select "fontProperties/FontPropertiesStyleProperty"
get-button Finish | click
}
get-window FontPropertiesStyleProperty | get-button OK | click
with [get-editor "test.datatemplate"] {
get-tree | select "Template Collection/Template/View Template" | get-menu -path Style | click
get-button "Link Style Property" | click
}
get-window "Select Elements" | get-table | get-property itemCount | equals 1 | verify-true
get-window "Select Elements" | get-button Cancel | click
get-editor "test.datatemplate" | get-button "Create and link new Style Property" | click
with [get-window "Select Sub Class and Template"] {
get-tree | select "tableValidation/TableValidationStyleProperty"
get-button Finish | click
}
with [get-window TableValidationStyleProperty] {
get-editbox -after [get-label "Column Width"] | set-focus
get-button Cancel | click
}
with [get-editor "test.datatemplate"] {
get-tree | select "Template Collection" | get-menu -path Template | click
get-button "Create and link new Instance" | click
}
with [get-window "Select Sub Class and Template"] {
get-tree | select "template/ViewTemplate"
get-button Finish | click
}
with [get-editor "test.datatemplate"] {
get-tree | select [get-item -path "Template Collection" | get-item -path Template -index 1 | get-item
-path "View Template"] | get-menu -path Style | click
get-button "Link Style Property" | click
}
get-window "Select Elements" | get-table | get-property itemCount | equals 0 | verify-true
get-window "Select Elements" | get-button Cancel | click
with [get-editor "test.datatemplate"] {
get-tree | select "Template Collection" | get-menu -path Template | click
get-button "Create and link new Instance" | click
}
get-window "Select Sub Class and Template" | get-tree | select "bowling/League" | double-click
with [get-editor "test.datatemplate"] {
get-tree | select [get-item -path "Template Collection" | get-item -path Template -index 2 | get-item -path League]
get-button "Add an instance of Player" | click
get-tree | select [get-item -path "Template Collection" | get-item -path Template -index 2]
get-button "Delete Reference" | click
}
get-window Confirmation | get-button Yes | click
get-editor "test.datatemplate" | get-tree | get-item -path "Template Collection" | get-item -path Template -index 2
| get-property childCount | equals 0 | verify-true
with [get-editor "test.datatemplate"] {
get-tree | select [get-item -path "Template Collection" | get-item -path Template -index 2]
get-button "Create and link new Instance" | click
}
with [get-window "Select Sub Class and Template"] {
get-tree | select "bowling/Fan"
get-button Finish | click
}
with [get-editor "test.datatemplate"] {
get-tree | select [get-item -path "Template Collection" | get-item -path Template -index 2 | get-item -path Fan]
get-button "Create and link new Tournament" | click
}
get-window "Cannot create element"
| get-label "This is a template, you cannot add new objects to non containment references here."
| get-property caption
| equals "This is a template, you cannot add new objects to non containment references here." | verify-true
get-window "Cannot create element" | get-button OK | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--