blob: 4c7e0ba39d0f7dce9209e289dcc6f7ef9ba5df55 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_n1a-kfriEeCQa9Xqo-1T3A
Element-Name: ImportFromClipboardToTheSameProject
Element-Type: testcase
Element-Version: 3.0
External-Reference: http://jira4.xored.com/browse/QS-1376
Id: _ZMWvgPr6EeCQa9Xqo-1T3A
Q7-Runtime-Version: 1.5.0.qualifier
Save-Time: 6/14/14 2:11 PM
Tags: ImportExport, Clipboard
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 clipboard and import it in P1;
3. Make sure that "Finish" button is disabled because "Testcase with same name already exists";
4. Press "Cancel" button and delete test case from P1;
5. Try to import again. Make sure you succeed.
------=_.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
get-window "Export" | get-button Finish | click
get-view "Test Explorer" | get-tree | select Q7Project | get-menu "Import/Test Portable Format" | click
with [get-window -from "Window.createShell()"] {
get-button Finish | get-property enablement | equals false | verify-true
}
get-window -from "Window.createShell()" | get-button Cancel | click
get-view "Test Explorer" | get-tree | select "Q7Project/TC1" | key-type DEL
get-window "Delete Resources" | get-button OK | click
get-view "Test Explorer" | get-tree | select Q7Project | get-menu "Import/Test Portable Format" | click
get-window -from "Window.createShell()" | get-button Finish | click
get-view "Test Explorer" | get-tree | get-item "Q7Project/TC1" | get-property caption | equals TC1 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--