| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA |
| Element-Name: RestoreDefaults |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _qvG_YCnKEeSkIPEBgXDIwQ |
| Runtime-Version: 1.5.0.201406020630 |
| Save-Time: 8/22/14 2:36 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. Change preferences, click "OK"; |
| 3. Open again and make sure that preferences are changed; |
| 4. Click "Restore Defaults", check that preferences are reset and then click "OK"; |
| 5. Open again and make sure that preferences are reset; |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| // Changes and saves |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "RCP Testing Tool" |
| with [get-window Preferences] { |
| get-editbox -after [get-label "Launch timeout (sec):"] | set-text 3001 |
| get-editbox -after [get-label "Commands execution delay (ms):"] | set-text 12 |
| with [get-section "Advanced options"] { |
| click |
| 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 OK | click |
| } |
| |
| // Preferences are changed |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "RCP Testing Tool" |
| with [get-window Preferences] { |
| get-editbox -after [get-label "Launch timeout (sec):"] | get-property text | equals 3001 | verify-true |
| get-editbox -after [get-label "Commands execution delay (ms):"] | get-property text | equals 12 | verify-true |
| with [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 |
| } |
| } |
| } |
| |
| // Restores and checks that preference are reset |
| get-window Preferences | get-button "Restore Defaults" | click |
| with [get-window Preferences] { |
| get-editbox -after [get-label "Launch timeout (sec):"] | get-property text | equals 300 | verify-true |
| get-editbox -after [get-label "Commands execution delay (ms):"] | get-property text | equals 0 | verify-true |
| with [get-section "Advanced options"] { |
| 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"] { |
| get-editbox -after [get-label "Context operation runnable timeout (ms)"] | get-property text | equals "180000.0" | verify-true |
| } |
| } |
| } |
| // Saves |
| get-window Preferences | get-button OK | click |
| |
| // Open again and checks that all preferences are default |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "RCP Testing Tool" |
| with [get-window Preferences] { |
| get-editbox -after [get-label "Launch timeout (sec):"] | get-property text | equals 300 | verify-true |
| get-editbox -after [get-label "Commands execution delay (ms):"] | get-property text | equals 0 | verify-true |
| with [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 |
| } |
| } |
| } |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |