| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_BIzmMMyzEeCKjp0mPLHiEg |
| Element-Name: FilteringContextsInContextList |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _Gl17AMpgEeCVO9X7TqWdlg |
| Runtime-Version: 2.4.1.qualifier |
| Save-Time: 4/1/19 11:39 AM |
| Tags: TestCase, Context |
| 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 |
| 2. Press "Add" button in Context List |
| 3. Verify filtering in "Select context" window |
| ------=_.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/test2" | double-click -nowait |
| with [get-editor test2 | get-section Contexts] { |
| click -nowait |
| get-button "Add..." | click |
| } |
| get-window "Select context" | get-table | select "context2 \\(Q7Project\\)" |
| get-window "Select context" | get-table | get-property itemCount | equals 5 | verify-true |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-text "*2" |
| get-table | select "context2 \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "context2 \\(Q7Project\\)" | get-property caption | equals "context2 (Q7Project)" | verify-true |
| } |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-text context |
| get-table | select "context2 \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 3 | verify-true |
| get-item "context2 \\(Q7Project\\)" | get-property caption | equals "context2 (Q7Project)" | verify-true |
| get-item "contextWB \\(Q7Project\\)" | get-property caption | equals "contextWB (Q7Project)" | verify-true |
| get-item "contextWS \\(Q7Project\\)" | get-property caption | equals "contextWS (Q7Project)" | verify-true |
| } |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-text "*W*" |
| get-table | select "contextWB \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 2 | verify-true |
| get-item "contextWB \\(Q7Project\\)" | get-property caption | equals "contextWB (Q7Project)" | verify-true |
| get-item "contextWS \\(Q7Project\\)" | get-property caption | equals "contextWS (Q7Project)" | verify-true |
| } |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-text script |
| } |
| get-window "Select context" | get-table | get-property itemCount | equals 1 | verify-true |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-text "*script" |
| get-table | select "ecl-script \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "ecl-script \\(Q7Project\\)" | get-property caption | equals "ecl-script (Q7Project)" | verify-true |
| } |
| with [get-window "Select context" | get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"]] { |
| set-text "?script" |
| } |
| get-window "Select context" | get-table | get-property itemCount | equals 0 | verify-true |
| with [get-window "Select context"] { |
| with [get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"]] { |
| set-text "???-script" |
| } |
| get-table | select "ecl-script \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "ecl-script \\(Q7Project\\)" | get-property caption | equals "ecl-script (Q7Project)" | verify-true |
| } |
| get-window "Select context" | get-button Cancel | click |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |