| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_qnJKwO8aEeCWFp5-_cxtIw |
| Element-Name: AddSinglePreferenceValueInContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _9T8-kHP1EeGvCok4Kd3cWg |
| Q7-Runtime-Version: 1.5.0.201406131029 |
| Save-Time: 6/13/14 7:04 PM |
| Tags: feature/context/preferenceContext |
| 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 Context |
| 2. Press "Add" button |
| 3. Enter preference value in the correct syntax |
| 4. Press "Finish" button |
| 5. Make sure that new value is added |
| ------=_.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 "Q7Project/EmptyPreferenceContext" | double-click |
| get-editor EmptyPreferenceContext | get-section Preferences | get-button "Add..." | click |
| get-window "Add Preferences" | get-editbox -after [get-label "Preferences to add:"] | get-property text | equals "" |
| | verify-true |
| get-window "Add Preferences" | get-button Finish | get-property enablement | equals false | verify-true |
| get-window "Add Preferences" | get-button Cancel | get-property enablement | equals true | verify-true |
| with [get-window "Add Preferences"] { |
| get-editbox -after [get-label "Preferences to add:"] | set-text "/preference/name.plagin/key=value" |
| get-button Finish | click |
| } |
| with [get-editor EmptyPreferenceContext | get-section Preferences | get-tree] { |
| get-property itemCount | equals 1 | verify-true |
| get-item preference | get-property caption | equals preference | verify-true |
| get-item preference | get-property childCount | equals 1 | verify-true |
| get-item "preference/name.plagin" | get-property caption | equals "name.plagin" | verify-true |
| get-item "preference/name.plagin" | get-property childCount | equals 1 | verify-true |
| get-item "preference/name.plagin/key" | get-property caption | equals key | verify-true |
| } |
| get-editor EmptyPreferenceContext | get-editbox -after [get-label "Name:"] | key-type "M1+s" |
| get-view "Test Explorer" | get-tree | select "Q7Project/PreferenceContext" | double-click |
| get-editor PreferenceContext | get-section Preferences | get-button "Add..." | click |
| with [get-window "Add Preferences"] { |
| get-editbox -after [get-label "Preferences to add:"] | set-text "/instance/plagin.name/key=value" |
| get-button Finish | click |
| } |
| get-editor PreferenceContext | get-section Preferences | get-tree | get-property itemCount | equals 5 | verify-true |
| with [get-editor PreferenceContext | get-section Preferences | get-tree] { |
| get-item general | get-property caption | equals general | verify-true |
| get-item general | get-property childCount | equals 8 | verify-true |
| get-item "general/plagin.name" | get-property caption | equals "plagin.name" | verify-true |
| } |
| get-editor PreferenceContext | get-section Preferences | get-tree | select "general/plagin.name" |
| with [get-editor PreferenceContext | get-section Preferences | get-tree] { |
| get-item "general/plagin.name/key" | get-property columns -index 0 | equals key | verify-true |
| get-item "general/plagin.name/key" | get-property columns -index 1 | equals value | verify-true |
| get-item "general/plagin.name" | get-property childCount | equals 1 | verify-true |
| } |
| get-eclipse-window | key-type "M1+s" |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |