blob: 1f25822bb485ddd37807de7e4a54f687111270e6 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_LhMUsNH1EeCvZZdPZOPlnw
Element-Name: CopyFolderToAnotherProject
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _nB3MsNH7EeCvZZdPZOPlnw
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: Project, Folder, CopyPaste
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 folder and select "Copy" in context menu
2. Select another project and paste this folder in the project
3. Make sure that test and context in this folder are copied
------=_.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 "p2/folder_context" | get-menu Copy | click
select p1 | get-menu Paste | click
}
with [get-view "Test Explorer" | get-tree] {
get-item p2 | get-property caption | equals p2 | verify-true
// get-item p2 | get-property childCount | equals 2 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
get-item "p2/folder_context" | get-property caption | equals "folder_context" | verify-true
get-item "p2/folder_context" | get-property childCount | equals 1 | verify-true
get-item "p2/folder_context/context2" | get-property caption | equals context2 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
get-item p1 | get-property caption | equals p1 | verify-true
// get-item p1 | get-property childCount | equals 5 | verify-true
get-item "p1/folder_context" | get-property caption | equals "folder_context" | verify-true
get-item "p1/folder_context" | get-property childCount | equals 1 | verify-true
get-item "p1/folder_context/context2" | get-property caption | equals context2 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
select "p3/folder" | key-type "M1+c"
select p2 | key-type "M1+v"
}
with [get-view "Test Explorer" | get-tree] {
get-item p3 | get-property caption | equals p3 | verify-true
get-item p3 | get-property childCount | equals 2 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
get-item "p3/folder" | get-property caption | equals folder | verify-true
get-item "p3/folder" | get-property childCount | equals 2 | verify-true
get-item "p3/folder/context3" | get-property caption | equals context3 | verify-true
get-item "p3/folder/scenario3" | get-property caption | equals scenario3 | verify-true
get-item p2 | get-property caption | equals p2 | verify-true
get-item p2 | get-property childCount | equals 4 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
get-item "p2/folder" | get-property caption | equals folder | verify-true
get-item "p2/folder" | get-property childCount | equals 2 | verify-true
get-item "p2/folder/context3" | get-property caption | equals context3 | verify-true
get-item "p2/folder/scenario3" | get-property caption | equals scenario3 | verify-true
}
get-view "Test Explorer" | get-tree | select "p2/folder/scenario3" | double-click
get-editor scenario3 | get-section Contexts | click
with [get-editor scenario3 | get-section Contexts | get-table] {
get-property itemCount | equals 1 | verify-true
get-item "context3 \\(p2\\)" | get-property caption | equals "context3 (p2)" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--