| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g |
| Element-Name: CancelRenameProject |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _qyyv4MlkEeCVO9X7TqWdlg |
| Runtime-Version: 2.2.0.qualifier |
| Save-Time: 5/21/17 12:16 PM |
| Tags: Project, Rename |
| 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. Select project |
| 2. Open "Rename resources" window |
| 3. Set new name and press "Cancel" button |
| 4. Make sure that name of project is not changed |
| |
| |
| http://jira4.xored.com/browse/QS-1096 |
| |
| |
| ------=_.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 p2 | get-menu Properties | click |
| with [get-window "Properties for p2"] { |
| get-tree | select "Project References" |
| get-table | get-item p1 | check |
| get-button "Apply and Close" | click |
| } |
| get-view "Test Explorer" | get-tree | select p1 | get-menu "Rename..." | click |
| get-window "Rename Resource" | get-editbox -after [get-label "New name:"] | set-text newtest |
| get-window "Rename Resource" | get-editbox -after [get-label "New name:"] | get-property value | equals newtest |
| | verify-true |
| get-window "Rename Resource" | get-button Cancel | click |
| get-view "Test Explorer" | get-tree | get-item p1 | get-property caption | equals p1 | verify-true |
| get-view "Test Explorer" | get-tree | select p1 | get-menu Properties | click |
| get-window "Properties for p1" | get-tree | select Resource |
| get-window "Properties for p1" | get-editbox -after [get-label "Path:"] | get-property value | equals "/p1" |
| | verify-true |
| get-window "Properties for p1" | get-button Cancel | click |
| get-view "Test Explorer" | get-tree | select p2 | get-menu Properties | click |
| get-window "Properties for p2" | get-tree | select "Project References" |
| get-window "Properties for p2" | get-table | get-item p1 | get-property caption | equals p1 | verify-true |
| get-window "Properties for p2" | get-button Cancel | click |
| get-view "Test Explorer" | get-tree | select p3 | key-type F2 |
| with [get-window "Rename Resource"] { |
| with [get-editbox -after [get-label "New name:"]] { |
| set-text test |
| key-type "TRAVERSE_ESCAPE" |
| } |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| get-item p3 | get-property caption | equals p3 | verify-true |
| get-property itemCount | equals 3 | verify-true |
| get-item p2 | get-property caption | equals p2 | verify-true |
| get-item p1 | get-property caption | equals p1 | verify-true |
| } |
| get-view "Test Explorer" | get-tree | select p3 | get-menu Properties | click |
| get-window "Properties for p3" | get-tree | select Resource |
| get-window "Properties for p3" | get-editbox -after [get-label "Path:"] | get-property value | equals "/p3" |
| | verify-true |
| get-window "Properties for p3" | get-button Cancel | click |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |