| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g |
| Element-Name: LinkWithEditorInQ7Explorer |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _v8LsUM7aEeCw4ppgsBRMGg |
| Runtime-Version: 1.5.0.qualifier |
| Save-Time: 6/15/14 5:32 PM |
| Tags: Q7Explorer |
| 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. Open context through "Open Context" button on toolbar |
| 2. Press "Link With Editor" button in Q7 Explorer |
| 3. Make sure that opened context is selected in Q7 Explorer |
| ------=_.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 "context3 \\(p3\/context3.ctx\\)" | click -nowait -default |
| get-editor context3 | get-section Workspace | click -nowait |
| with [get-tab-folder -index 1] { |
| get-property pages -index 0 | equals context3 | verify-true |
| get-property tabCount | equals 1 | verify-true |
| } |
| get-view "Test Explorer" | get-button "Link with Editor" | click |
| with [get-view "Test Explorer" | get-tree] { |
| get-property itemCount | equals 3 | verify-true |
| get-item "p3/context3" | get-property caption | equals context3 | verify-true |
| get-item "p3/context3" | get-property selected | equals true | verify-true |
| get-item "p3/scenario3" | get-property caption | equals scenario3 | verify-true |
| get-item "p3/scenario3" | get-property selected | equals false | verify-true |
| } |
| get-button "Open Test Case (RCPTT)" | click |
| get-window "Select Test Case" | get-table | select "scenario2 \\(p2\/scenario2.scenario\\)" | click -nowait -default |
| get-editor scenario2 | get-section Contexts | mouse-release 77 6 button1 524288 |
| with [get-tab-folder] { |
| get-property pages -index 0 | equals context3 | verify-true |
| get-property pages -index 1 | equals scenario2 | verify-true |
| get-property activePage | equals scenario2 | verify-true |
| get-property tabCount | equals 2 | verify-true |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| get-item "p2/context2" | get-property caption | equals context2 | verify-true |
| get-item "p2/context2" | get-property selected | equals false | verify-true |
| get-item "p2/scenario2" | get-property caption | equals scenario2 | verify-true |
| get-item "p2/scenario2" | get-property selected | equals true | verify-true |
| get-item "p3/context3" | get-property caption | equals context3 | verify-true |
| get-item "p3/context3" | get-property selected | equals false | verify-true |
| get-item "p3/scenario3" | get-property caption | equals scenario3 | verify-true |
| get-item "p3/scenario3" | get-property selected | equals false | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |