blob: f3326c078ad8c5c955e1750bb8420d3073ffad74 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_1DeDkPVYEeCsI4NSS6tu2Q
Element-Name: TryToImportWithEmptyClipboard
Element-Type: testcase
Element-Version: 3.0
External-Reference: http://jira4.xored.com/browse/QS-1380
Id: _wPSeoPsFEeCQa9Xqo-1T3A
Q7-Runtime-Version: 1.5.0.qualifier
Save-Time: 6/15/14 12:19 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. Right-click any test case and select "Export" - "Q7 portable format"
2. Press "Cancel"
3. Right-click any Q7 project and select "Import" - "Q7 portable format"
4. Make sure that clipboard is empty, "Finish" button is disabled
------=_.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 "Q7Project2/TestCase3" | get-menu "Export/Test Portable Format" | click
get-window Export | get-button Cancel | click
get-view "Test Explorer" | get-tree | select Q7Project1 | get-menu "Import/Test Portable Format" | click
with [get-window Import] {
with [get-editbox -after [get-label "RCPTT Portable Format"]] {
get-property enablement | equals true | verify-true
get-property text | equals "Specified content is not valid RCPTT testcase" | verify-true
}
get-editbox -after [get-label "Location:"] | get-property text | equals "/Q7Project1" | verify-true
get-editbox -after [get-label "Testcase name:"] | get-property text | equals "" | verify-true
get-button "Import from Clipboard" | get-property selected | equals true | verify-true
get-group Preview | get-editbox | get-property text | equals "" | verify-true
with [get-button Finish] {
get-property enablement | equals false | verify-true
get-property caption | equals "&Finish" | verify-true
}
}
get-window Import | get-button Cancel | click
with [get-view "Test Explorer" | get-tree] {
get-item Q7Project1 | get-property caption | equals Q7Project1 | verify-true
get-item Q7Project1 | get-property childCount | equals 3 | verify-true
get-item "Q7Project1/TestCase1" | get-property caption | equals TestCase1 | verify-true
get-item "Q7Project1/TestCase2" | get-property caption | equals TestCase2 | verify-true
get-item Q7Project2 | get-property caption | equals Q7Project2 | verify-true
get-item Q7Project2 | get-property childCount | equals 3 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--