| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g |
| Element-Name: CopyContextToTestFromNotReferencedProject |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: http://jira4.xored.com/browse/QS-1135 |
| Id: _gusGANIdEeCSSY3GE2xBfQ |
| Runtime-Version: 1.5.2.201408180747 |
| Save-Time: 8/28/14 3:06 PM |
| Tags: TestCase, Context, Reference |
| 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. Create two projects (p1 and p2) |
| 2. Add context and "test1" test in p1 project, add "test2" test in p2 project |
| 3. Add context to "test1" |
| 4. Open "test1" and "test2" editors |
| 5. Copy context from editor of "test1" and try paste to "test2" editor |
| ------=_.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 "p1/scenario1" | double-click |
| get-editor scenario1 | get-section Contexts | click |
| with [get-view "Test Explorer" | get-tree] { |
| select "p1/context1" |
| get-item "p1/context1" | drag-start 27 8 |
| get-item "p1/group1" | drag-enter 67 -detail 2 -operation 7 |
| get-item "p1/group1" | drag-over 151 17 -operation 7 |
| get-item "p1/scenario1" | drag-over 245 17 -operation 7 |
| get-item p2 | drag-over 338 16 -detail 2 -operation 7 |
| get-item p3 | drag-over 346 -detail 2 -operation 7 |
| get-item "p1/group1" | drag-exit |
| } |
| with [get-editor scenario1 | get-section Contexts | get-table] { |
| drag-enter 44 1 -detail 2 -operation 2 |
| drag-over 149 43 -detail 2 -operation 2 |
| drag-exit |
| drag-accept 149 43 -detail 2 -operation 2 |
| } |
| get-view "Test Explorer" | get-tree | get-item p1 | drag-set-data |
| get-editor scenario1 | get-section Contexts | get-table | drop 149 43 -detail 2 -operation 2 |
| get-view "Test Explorer" | get-tree | get-item p1 | drag-end -detail 2 |
| get-editor scenario1 | get-section Contexts | get-table | key-type "M1+M2+s" |
| get-view "Test Explorer" | get-tree | select "p2/scenario2" | double-click |
| with [get-editor scenario1] { |
| click |
| get-section Contexts | get-table | select "context1 \\(p1\\)" | get-menu Copy | click |
| } |
| with [get-editor scenario2] { |
| click |
| with [get-section Contexts] { |
| click |
| get-table | get-menu Paste | click |
| } |
| } |
| with [get-window "Missing references"] { |
| get-label "Would you like to add missing references to the project? p1" | get-property caption |
| | equals "Would you like to add missing references to the project?\n\n" |
| + " p1" | verify-true |
| get-button Yes | get-property enablement | equals true | verify-true |
| get-button No | get-property enablement | equals true | verify-true |
| } |
| get-window "Missing references" | get-button Yes | click |
| get-editor scenario2 | get-section Contexts | get-table | get-item "context1 \\(p1\\)" | get-property caption |
| | equals "context1 (p1)" | verify-true |
| get-editor scenario2 | get-section Script | get-text-viewer | key-type "M1+M2+s" |
| get-view "Test Explorer" | get-tree | select p2 | get-menu Properties | click |
| get-window "Properties for p2" | get-tree | select "Project References" |
| with [get-window "Properties for p2" | get-table] { |
| get-item p1 | get-property caption | equals p1 | verify-true |
| get-item p1 | get-property checked | equals true | verify-true |
| get-item p3 | get-property caption | equals p3 | verify-true |
| get-item p3 | get-property checked | equals false | verify-true |
| } |
| get-window "Properties for p2" | get-button OK | click |
| get-view "Test Explorer" | get-tree | select "p3/scenario3" | double-click |
| with [get-editor scenario2] { |
| click |
| get-section Contexts | get-table | select "context1 \\(p1\\)" | get-menu Copy | click |
| } |
| with [get-editor scenario3] { |
| click |
| with [get-section Contexts] { |
| click |
| get-table | get-menu Paste | click |
| } |
| } |
| get-window "Missing references" | get-button No | click |
| get-editor scenario3 | get-section Contexts | get-table | get-item "Possible resolution -> context1 \\(p1\\)" |
| | get-property caption | equals "Possible resolution -> context1 (p1)" | verify-true |
| |
| |
| get-editor scenario3 | get-section Script | get-text-viewer | key-type "M1+M2+s" |
| get-view "Test Explorer" | get-tree | select p3 | get-menu Properties | click |
| with [get-window "Properties for p3" | get-table] { |
| get-item p1 | get-property caption | equals p1 | verify-true |
| get-item p1 | get-property checked | equals false | verify-true |
| get-item p2 | get-property caption | equals p2 | verify-true |
| get-item p2 | get-property checked | equals false | verify-true |
| } |
| with [get-window "Properties for p3"] { |
| get-table | get-item p1 | check |
| get-button OK | click |
| } |
| get-editor scenario3 | get-section Contexts | get-table | get-item "context1 \\(p1\\)" | get-property caption |
| | equals "context1 (p1)" | verify-true |
| get-editor scenario3 | get-section Script | get-text-viewer | key-type "M1+M2+w" |
| get-view "Test Explorer" | get-tree | key-type "M1+M2+w" |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |