blob: 6396ebc417a6c372b8c9fc55eb60fd691429a66e [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA
Element-Name: AdvancedOptions
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _vIjJACnDEeSkIPEBgXDIwQ
Runtime-Version: 1.5.2.201408180747
Save-Time: 9/10/14 3:27 PM
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. Open Preferences/RCP Testing Tool;
2. Select "Advanced options";
3. Change preferences, click "Cancel";
4. Open again and make sure that preferences aren't changed;
5. Change preferences, click "OK";
6. Open again and make sure that preferences are changed;
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
// Changes and clicks Cancel
get-preferences-menu | click
get-window Preferences | get-tree | select "RCP Testing Tool"
with [get-window Preferences] {
with [get-section "Advanced options"] {
click
get-group "Core Features" | get-button "Kill AUT on connect error" | get-property selected | equals false
| verify-true
get-group "Core Features" | get-button "Kill AUT on connect error" | check
with [get-group "Runtime Features"] {
get-button "Allow status dialogs" | check
get-section "Diagram mouse options" | get-combo -after [get-label "Mouse move recording mode"]
| select Always
with [get-section "Runtime Limits"] {
click
get-editbox -after [get-label "Context operation runnable timeout (ms)"] | set-text 1800001
}
}
}
get-button Cancel | click
}
// Nothing is changed
get-preferences-menu | click
get-window Preferences | get-tree | select "RCP Testing Tool"
with [get-window Preferences | get-section "Advanced options"] {
click
get-group "Core Features" | get-button "Kill AUT on connect error" | get-property selected | equals false
| verify-true
with [get-group "Runtime Features"] {
get-button "Allow status dialogs" | get-property selected | equals false | verify-true
get-section "Diagram mouse options" | get-combo -after [get-label "Mouse move recording mode"]
| get-property selection | equals Smart | verify-true
}
with [get-section "Runtime Limits"] {
click
get-editbox -after [get-label "Context operation runnable timeout (ms)"] | get-property text | equals "180000.0" | verify-true
}
}
// Changes and clicks Ok
with [get-window Preferences] {
with [get-section "Advanced options"] {
get-group "Core Features" | get-button "Kill AUT on connect error" | check
with [get-group "Runtime Features"] {
get-button "Allow status dialogs" | check
get-section "Diagram mouse options" | get-combo -after [get-label "Mouse move recording mode"]
| select Always
get-section "Runtime Limits" | get-editbox -after [get-label "Context operation runnable timeout (ms)"] | set-text 1800001
}
}
get-button OK | click
}
// Preferences are changed
get-preferences-menu | click
get-window Preferences | get-tree | select "RCP Testing Tool"
with [get-window Preferences | get-section "Advanced options"] {
click
get-group "Core Features" | get-button "Kill AUT on connect error" | get-property selected | equals true
| verify-true
with [get-group "Runtime Features"] {
get-button "Allow status dialogs" | get-property selected | equals true | verify-true
get-section "Diagram mouse options" | get-combo -after [get-label "Mouse move recording mode"]
| get-property selection | equals Always | verify-true
}
with [get-section "Runtime Limits"] {
click
get-editbox -after [get-label "Context operation runnable timeout (ms)"] | get-property text | equals "1800001.0" | verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--