| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g |
| Element-Name: OpenContextFromToolbar |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _2d1GUM7YEeCw4ppgsBRMGg |
| Runtime-Version: 1.5.0.qualifier |
| Save-Time: 6/15/14 5:38 PM |
| Tags: Toolbar, Dialog |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Copyright (c) 2009, 2014 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. Press on "Open Context" button in toolbar |
| 2. Make sure that "Select Context" dialog is displayed, this dialog contains all context from all available projects |
| 3. Select context and press "Ok" button |
| 4. Selected context is opened |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-button "Open Context (RCPTT)" | click |
| get-window "Select Context" | get-table | select "context1 \\(p1\/context1.ctx\\)" |
| with [get-window "Select Context"] { |
| with [get-table] { |
| get-property itemCount | equals 4 | verify-true |
| get-item "context1 \\(p1\/context1.ctx\\)" | get-property caption | equals "context1 (p1/context1.ctx)" | verify-true |
| get-item "context2 \\(p2\/context2.ctx\\)" | get-property caption | equals "context2 (p2/context2.ctx)" | verify-true |
| get-item "context3 \\(p3\/context3.ctx\\)" | get-property caption | equals "context3 (p3/context3.ctx)" | verify-true |
| get-item "group1 \\(p1\/group1.ctx\\)" | get-property caption | equals "group1 (p1/group1.ctx)" | verify-true |
| } |
| get-editbox -after [get-label "Enter file path to open or select file from the one of the workspace contexts"] |
| | get-property value | equals "" | verify-true |
| } |
| with [get-window "Select Context"] { |
| get-table | select "context2 \\(p2\/context2.ctx\\)" |
| get-button OK | click |
| } |
| with [get-tab-folder -index 1] { |
| get-property pages -index 0 | equals context2 | verify-true |
| get-property tabCount | equals 1 | verify-true |
| } |
| get-button "Open Context (RCPTT)" | click |
| get-window "Select Context" | get-table | select "context3 \\(p3\/context3.ctx\\)" | click -nowait -default |
| with [get-tab-folder -index 1] { |
| get-property pages -index 0 | equals context2 | verify-true |
| get-property pages -index 1 | equals context3 | verify-true |
| get-property tabCount | equals 2 | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |