blob: c6edfc9f73dfe71ce8071a95ee47465e68a3f45d [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g
Element-Name: SaveButtonOnToolbar
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _SvbMUM7cEeCw4ppgsBRMGg
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: Toolbar, Save, skipLinux, skipMacOS
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. Open test case editor
2. Make change in test case and make sure that "Save" button on toolbar is enabled
------=_.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 "p2/scenario2" | double-click -nowait
with [get-editor scenario2] {
with [get-section Description] {
click
get-editbox | set-text test
}
get-editbox -after [get-label "Tags:"] | set-text test
}
get-view "Test Explorer" | get-tree | select "p3/scenario3" | double-click -nowait
with [get-editor scenario3] {
with [get-section Description] {
click
get-editbox | set-text test
}
get-editbox -after [get-label "Tags:"] | set-text test
}
get-view "Test Explorer" | get-tree | select "p1/context1" | double-click -nowait
with [get-editor context1 | get-section Description] {
click
get-editbox | set-text test
}
with [get-tab-folder -index 1] {
get-property pages -index 0 | equals "*scenario2" | verify-true
get-property pages -index 1 | equals "*scenario3" | verify-true
get-property pages -index 2 | equals "*context1" | verify-true
get-property tabCount | equals 3 | verify-true
}
with [get-button "Save (M1+S)"] {
get-property enablement | equals true | verify-true
get-property tooltip | equals "Save (M1+S)" | verify-true
}
with [get-button "Save All (M1+M2+S)"] {
get-property enablement | equals true | verify-true
get-property tooltip | equals "Save All (M1+M2+S)" | verify-true
}
get-button "Save (M1+S)" | click
with [get-tab-folder -index 1] {
get-property pages -index 0 | equals "*scenario2" | verify-true
get-property pages -index 1 | equals "*scenario3" | verify-true
get-property pages -index 2 | equals context1 | verify-true
get-property activePage | equals context1 | verify-true
get-property tabCount | equals 3 | verify-true
}
with [get-button "Save (M1+S)"] {
get-property enablement | equals false | verify-true
get-property tooltip | equals "Save (M1+S)" | verify-true
}
get-editor scenario3 | click
with [get-button "Save (M1+S)"] {
get-property enablement | equals true | verify-true
get-property tooltip | equals "Save (M1+S)" | verify-true
}
get-button "Save (M1+S)" | click
with [get-tab-folder] {
get-property pages -index 0 | equals "*scenario2" | verify-true
get-property pages -index 1 | equals scenario3 | verify-true
get-property pages -index 2 | equals context1 | verify-true
get-property activePage | equals scenario3 | verify-true
get-property tabCount | equals 3 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--