| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_hVKj4F0JEeGDGrudSYLu8w,_NXS_4F0MEeGDGrudSYLu8w |
| Element-Name: AddTaskToEclContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _KE5VEWswEeGhKJWOtX9noQ |
| Runtime-Version: 2.4.2.qualifier |
| Save-Time: 4/3/19 5:58 PM |
| Tags: ECL_IDE_module, ECLContext, Task, Browser |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Copyright (c) 2009, 2014, 2018 Xored Software Inc and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| Xored Software Inc - initial creation and/or initial documentation |
| -------------------------------------------------------------------------------- |
| |
| 1. Open ECL context |
| 2. Select "Add Task..." from context menu |
| 3. Make sure that "Properties" window is displayed |
| 4. Press "Ok" button |
| 5. Make sure that Task is displayed in "Tasks" view |
| 6. Add new Task and press "Ok" button in "Properties" window |
| 7. Make sure that Task is added |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Test Explorer" | get-tree | select "MyProject/Open Modal Dialog" | double-click |
| with [get-editor "Open Modal Dialog" | get-section Script | get-left-ruler] { |
| with [get-ruler-column -index 1] { |
| click-ruler -line 1 |
| click-ruler -line 1 -button Right |
| } |
| get-menu "Add Task..." | click |
| } |
| with [get-window Properties] { |
| get-editbox -after [get-label "Description:"] | get-property text | equals "// Task in ECL-context" | verify-true |
| get-combo -after [get-label "Priority:"] | get-property selection | equals Normal | verify-true |
| get-editbox -after [get-label "On element:"] | get-property text | equals "Open Modal Dialog.ctx" | verify-true |
| } |
| get-window Properties | get-button "Add" | click |
| with [get-view Tasks | get-tree] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "" | get-property columns -index 2 | equals "// Task in ECL-context" | verify-true |
| get-item "" | get-property columns -index 3 | equals "Open Modal Dialog.ctx" | verify-true |
| get-item "" | get-property columns -index 4 | equals "/MyProject" | verify-true |
| get-item "" | get-property columns -index 5 | equals "line 1" | verify-true |
| get-item "" | get-property columns -index 6 | equals Task | verify-true |
| } |
| get-editor "Open Modal Dialog" | get-section Script | get-left-ruler | hover-ruler -line 1 |
| get-window -from "Information Window" | |
| get-control Browser | |
| get-property text | |
| matches "^.*// Task in ECL-context.*$" | verify-true |
| get-editor "Open Modal Dialog" | close |
| with [get-view Tasks | get-tree] { |
| select "" | activate-cell-edit -column 2 |
| cancel-cell-edit |
| select "" | get-menu "Go to" | click |
| } |
| get-editor "Open Modal Dialog" | get-editbox -after [get-label "Name:"] | get-property text |
| | equals "Open Modal Dialog" | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |