blob: 118ccc6ad6b2dff781473bb3f62bcfff8572189a [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _tlWZcGphEeCzId1Gnkds9A,_4zI9AWpgEeCzId1Gnkds9A
Element-Name: ResourceRenameTest
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _da-SEauHEeCsAecib2O_8g
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: Q7Explorer, 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
--------------------------------------------------------------------------------
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-eclipse-window | key-type "M1+3"
with [get-window -from "Window.createShell()"] {
get-editbox | set-text "project explorer"
get-editbox | key-type Enter
}
get-view "Project Explorer" | get-tree | select TestQ7Prj | get-menu "New/File" | click
with [get-window "New File"] {
get-editbox -after [get-label "File name:"] | set-text "test.txt"
get-button Finish | click
}
get-editor "test.txt" | close
get-view "Project Explorer" | click -nowait
get-view "Test Explorer" | get-tree | get-item "TestQ7Prj/test.txt" | get-property caption | equals "test.txt"
| verify-true
get-view "Project Explorer" | get-tree | select "TestQ7Prj/test.txt" | get-menu "Rename..." | click
with [get-window "Rename Resource"] {
get-editbox -after [get-label "New name:"] | set-text "test2.txt"
get-button OK | click
}
get-view "Test Explorer" | get-tree | get-item "TestQ7Prj/test2.txt" | get-property caption | equals "test2.txt"
| verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--