blob: 872d5a7da04c3bfedebbdff866514fe4e7763437 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_ksxMcEMsEeGEmKn4hFNAmQ
Element-Name: LaunchngATestCaseWithUnsavedContext
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _pnE8wOH9EeGmmNL_Et_Etg
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: Dialog, Context, TestCase
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. Make any changes in context
3. Do not save
4. Launch test case
EXPECTED RESULT
Q7 prompts for save before launching
------=_.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 "MyProject/ClearWorkspace" | double-click
with [get-editor ClearWorkspace | get-section "Workspace Options" | get-button "Clear workspace"] {
click
click
}
get-view "Test Explorer" | get-tree | select "MyProject/WorkspaceIsEmpty" | get-menu "Run As/1 Test Cases" | click
with [get-window "Save Resource"] {
get-label "\'ClearWorkspace\' has been modified. Save changes?"
with [get-button Yes] {
get-property enablement | equals true | verify-true
get-property caption | equals "&Yes" | verify-true
}
with [get-button No] {
get-property enablement | equals true | verify-true
get-property caption | equals "&No" | verify-true
}
with [get-button Cancel] {
get-property enablement | equals true | verify-true
get-property caption | equals Cancel | verify-true
}
}
get-window "Save Resource" | get-button Cancel | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--