blob: 92931e8cd03dff3dfc2da84c619ed7c45a85ff21 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_n1a-kfriEeCQa9Xqo-1T3A
Element-Name: ImportFromFileToTheProjectWithSameContexts
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _nDBmkPsJEeCQa9Xqo-1T3A
Runtime-Version: 1.5.2.201408180747
Save-Time: 9/10/14 2:12 PM
Tags: ImportExport, File
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. Have a test case in P1 with contexts in P2;
2. Export a test case to a file and import it in P2;
3. Make sure that no duplicate contexts were added;
4. Delete imported test case and some contexts from P2;
5. Import Test Case in P2 again;
6. Make sure that missed contexts were imported as well as a test case.
------=_.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 "Q7Project/TC1" | get-menu "Export/Test Portable Format" | click
with [get-window "Export"] {
get-button "Export to File" | click
set-dialog-result File "platform:/resource/q.test"
get-button "Browse..." | click
get-button Finish | click
}
get-view "Test Explorer" | get-tree | select Q7Project2 | get-menu "Import/Test Portable Format" | click
with [get-window "Import"] {
get-button "Import from File" | click
set-dialog-result File "platform:/resource/q.test"
get-button "Browse..." -index 1 | click
get-button Finish | click
}
with [get-view "Test Explorer" | get-tree] {
get-item "Q7Project2/Contexts" | get-property childCount | equals 6 | verify-true
get-item "Q7Project2/Contexts/DebugContext"
get-item "Q7Project2/Contexts/EclContext"
get-item "Q7Project2/Contexts/GroupContext"
get-item "Q7Project2/Contexts/PrefContext"
get-item "Q7Project2/Contexts/WbContext"
get-item "Q7Project2/Contexts/WsContext"
get-item "Q7Project2/TC1"
get-item "Q7Project2/TC2"
}
with [get-view "Test Explorer" | get-tree] {
select "Q7Project2/Contexts/PrefContext" "Q7Project2/Contexts/WbContext" "Q7Project2/Contexts/WsContext" "Q7Project2/TC1"
key-type DEL
}
get-window "Delete Resources" | get-button OK | click
get-view "Test Explorer" | get-tree | select Q7Project2 | get-menu "Import/Test Portable Format" | click
with [get-window "Import"] {
get-button "Import from File" | click
set-dialog-result File "platform:/resource/q.test"
get-button "Browse..." -index 1 | click
get-button Finish | click
}
wait 200
get-view "Test Explorer" | get-tree | key-type F5
with [get-view "Test Explorer" | get-tree] {
get-item "Q7Project2/Contexts" | get-property childCount | equals 3 | verify-true
get-item "Q7Project2/Contexts/DebugContext"
get-item "Q7Project2/Contexts/EclContext"
get-item "Q7Project2/Contexts/GroupContext"
get-item "Q7Project2/WbContext"
get-item "Q7Project2/GroupContext(2)"
get-item "Q7Project2/WsContext"
get-item "Q7Project2/PrefContext"
get-item "Q7Project2/TC1"
get-item "Q7Project2/TC2"
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--