| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_qnJKwO8aEeCWFp5-_cxtIw |
| Element-Name: AddSeveralPreferenceValuesInContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _2aZI8HP5EeGvCok4Kd3cWg |
| 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 several preference values in the correct syntax |
| 4. Press "Finish" button |
| 5. Make sure that new values are 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 |
| with [get-window "Add Preferences"] { |
| with [get-editbox -after [get-label "Preferences to add:"]] { |
| set-text "/tru/false.1/key=value\n" |
| + "/tru/false.2/key=value\n" |
| + "/false/false.1/key=value\n" |
| + "/tru/false.1/key1=value1\n" |
| + "/tru/false.1/key=test1" |
| } |
| get-button Finish | click |
| } |
| get-editor EmptyPreferenceContext | get-section Preferences | get-tree | get-property itemCount | equals 2 | verify-true |
| with [get-editor EmptyPreferenceContext | get-section Preferences | get-tree] { |
| get-item tru | get-property childCount | equals 2 | verify-true |
| get-item "tru/false.1" | get-property childCount | equals 2 | verify-true |
| get-item "tru/false.1/key" | get-property columns -index 0 | equals key | verify-true |
| get-item "tru/false.1/key" | get-property columns -index 1 | equals test1 | verify-true |
| get-item "tru/false.1/key1" | get-property columns -index 0 | equals key1 | verify-true |
| get-item "tru/false.1/key1" | get-property columns -index 1 | equals value1 | verify-true |
| get-item "tru/false.2" | get-property childCount | equals 1 | verify-true |
| get-item "tru/false.2/key" | get-property columns -index 0 | equals key | verify-true |
| get-item "tru/false.2/key" | get-property columns -index 1 | equals value | verify-true |
| get-item false | get-property childCount | equals 1 | verify-true |
| get-item "false/false.1" | get-property childCount | equals 1 | verify-true |
| get-item "false/false.1/key" | get-property columns -index 0 | equals key | verify-true |
| get-item "false/false.1/key" | get-property columns -index 1 | equals value | verify-true |
| } |
| get-editor EmptyPreferenceContext | get-editbox -after [get-label "Name:"] | key-type "M1+s" |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |