| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_Z-6cEEVwEeGf87sdqO61AA |
| Element-Name: BackForwardButtonsOnToolbar |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _wBgd0YeNEeGVLeG5HnBFVg |
| Q7-Runtime-Version: 1.5.0.201406131029 |
| Save-Time: 6/13/14 7:04 PM |
| Tags: Toolbar |
| 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 |
| -------------------------------------------------------------------------------- |
| |
| TEST STEPS |
| |
| 1. Open several editors |
| 2. Using Back and Forward buttons switch between them |
| 3. Close all |
| 4. Using Back button open last closed editor |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| with [get-view "Test Explorer" | get-tree] { |
| select "MyProject/Open Modal Dialog" | double-click |
| select "MyProject/Check New Project Window" | double-click |
| select "MyProject/TestSuite" | double-click |
| } |
| get-button "Back to Check New Project Window.*" | click |
| with [get-tab-folder] { |
| get-property pages -index 0 | equals "Open Modal Dialog" | verify-true |
| get-property pages -index 1 | equals "Check New Project Window" | verify-true |
| get-property pages -index 2 | equals TestSuite | verify-true |
| get-property activePage | equals "Check New Project Window" | verify-true |
| get-property tabCount | equals 3 | verify-true |
| } |
| get-button "Back to Open Modal Dialog.*" | click |
| with [get-tab-folder -index 1] { |
| get-property pages -index 0 | equals "Open Modal Dialog" | verify-true |
| get-property pages -index 1 | equals "Check New Project Window" | verify-true |
| get-property pages -index 2 | equals TestSuite | verify-true |
| get-property activePage | equals "Open Modal Dialog" | verify-true |
| get-property tabCount | equals 3 | verify-true |
| } |
| get-button "Forward to Check New Project Window.*" | click |
| with [get-tab-folder] { |
| get-property pages -index 0 | equals "Open Modal Dialog" | verify-true |
| get-property pages -index 1 | equals "Check New Project Window" | verify-true |
| get-property pages -index 2 | equals TestSuite | verify-true |
| get-property activePage | equals "Check New Project Window" | verify-true |
| get-property tabCount | equals 3 | verify-true |
| } |
| get-editor "Check New Project Window" | get-section Script | get-text-viewer | key-type "M1+M2+w" |
| get-view "Test Explorer" | get-tree | key-type "M1+M2+w" |
| get-button "Back to TestSuite.*" | click |
| with [get-tab-folder -index 1] { |
| get-property pages -index 0 | equals TestSuite | verify-true |
| get-property activePage | equals TestSuite | verify-true |
| get-property tabCount | equals 1 | verify-true |
| } |
| get-editor TestSuite | close |
| get-view "Test Explorer" | click |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |