| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _D4Pj4C3lEeSwhO5Nwx0hPg,_Iu0EsS36EeSYRYqCbC6LMQ |
| Element-Name: Readonly_smoke |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _cFaf8LobEeqmM78lyJn8PQ |
| Runtime-Version: 2.4.2.201905052359 |
| Save-Time: 6/29/20 5:53 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| // preparation |
| |
| get-view "EMF Forms Preview" | get-button "Automatically refresh Preview View" | click |
| |
| get-view "Project Explorer" | get-tree | select "org.eclipse.emf.ecp.makeithappen.model.viewmodel/viewmodels/Task.view" |
| | select "org.eclipse.emf.ecp.makeithappen.model.viewmodel/viewmodels/Task.view" | get-menu -path "Open With/View Model Editor" | click |
| |
| get-editor "Task.view" | get-tree | select View | get-menu -path "Generate Controls" | click |
| with [get-window -class WizardDialog] { |
| with [get-table] { |
| get-item -path "name : EString" | check |
| select "name : EString" | get-item -path "done : EBoolean" | check |
| select "done : EBoolean" | get-item -path "dueDate : EDate" | check |
| select "dueDate : EDate" |
| } |
| get-button Finish | click |
| } |
| with [get-view "EMF Forms Preview"] { |
| get-date-time | set-value "2020/6/29 0:0:0" |
| get-date-time -after [get-label "Due Date"] -index 1 | set-value "1970/1/1 17:27:0" |
| } |
| with [get-editor "Task.view"] { |
| get-tree | select "View/Control name" |
| get-button -after [get-label Readonly] | check |
| } |
| with [get-view "EMF Forms Preview"] { |
| get-date-time | set-value "2020/6/29 0:0:0" |
| get-date-time -after [get-label "Due Date"] -index 1 | set-value "1970/1/1 17:27:0" |
| } |
| with [get-editor "Task.view"] { |
| get-tree | select "View/Control done" |
| get-button -after [get-label Readonly] | check |
| } |
| with [get-view "EMF Forms Preview"] { |
| get-date-time | set-value "2020/6/29 0:0:0" |
| get-date-time -after [get-label "Due Date"] -index 1 | set-value "1970/1/1 17:31:0" |
| } |
| get-view "EMF Forms Preview" | get-button -after [get-label Done] | get-property enablement | equals false | verify-true |
| get-editor "Task.view" | get-button -after [get-label Readonly] | uncheck |
| with [get-view "EMF Forms Preview"] { |
| get-date-time | set-value "2020/6/29 0:0:0" |
| get-date-time -after [get-label "Due Date"] -index 1 | set-value "1970/1/1 17:37:0" |
| } |
| with [get-editor "Task.view"] { |
| get-tree | select "View/Control name" |
| get-button -after [get-label Readonly] | uncheck |
| } |
| with [get-view "EMF Forms Preview"] { |
| get-date-time | set-value "2020/6/29 0:0:0" |
| get-date-time -after [get-label "Due Date"] -index 1 | set-value "1970/1/1 17:37:0" |
| } |
| with [get-view "EMF Forms Preview"] { |
| with [get-editbox -after [get-label Name]] { |
| get-property enablement | equals true | verify-true |
| get-property backgroundColor | equals "#FF0000" | verify-true |
| } |
| get-button -after [get-label Done] | get-property enablement | equals true | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |