blob: dcd660491a1a357231265a14276439bd1c186a0d [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _vp_JkIHtEeC8fpRZXBpN8g,_4zI9AWpgEeCzId1Gnkds9A
Element-Name: ClearSearchFieldByPressingOnClearButton
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _7KvjYeS7EeCcjPHJdTVGPA
Runtime-Version: 1.5.0.201407290252
Save-Time: 7/30/14 4:00 PM
Tags: Q7Explorer, skipMacOS, skipLinux, SearchReplace
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. Set filter in Search field in Q7 Explorer
2. Clear Button is displayed
3. Press "Clear" button
4. Make sure that search field is empty
5. Make sure that all objects are displayed in Q7 Explorer
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Test Explorer" | get-editbox | set-text context
with [get-view "Test Explorer"] {
with [get-label] {
get-property className | equals "org.eclipse.swt.widgets.Label" | verify-true
get-property enablement | equals true | verify-true
get-property caption | equals "" | verify-true
}
with [get-tree] {
get-property itemCount | equals 3 | verify-true
get-item p1 | get-property caption | equals p1 | verify-true
get-item p1 | get-property childCount | equals 1 | verify-true
get-item "p1/context1" | get-property caption | equals context1 | verify-true
get-item p2 | get-property caption | equals p2 | verify-true
get-item p2 | get-property childCount | equals 1 | verify-true
get-item "p2/context2" | get-property caption | equals context2 | verify-true
get-item p3 | get-property caption | equals p3 | verify-true
get-item p3 | get-property childCount | equals 1 | verify-true
get-item "p3/context3" | get-property caption | equals context3 | verify-true
}
with [get-editbox] {
get-property className | equals "org.eclipse.swt.widgets.Text" | verify-true
get-property enablement | equals true | verify-true
get-property value | equals context | verify-true
}
}
get-view "Test Explorer" | get-label | click
with [get-view "Test Explorer"] {
with [get-editbox] {
get-property className | equals "org.eclipse.swt.widgets.Text" | verify-true
get-property value | equals "" | verify-true
}
with [get-tree] {
get-item p1 | get-property caption | equals p1 | verify-true
get-item p1 | get-property childCount | equals 4 | verify-true
get-item "p1/context1" | get-property caption | equals context1 | verify-true
get-item "p1/group1" | get-property caption | equals group1 | verify-true
get-item "p1/scenario1" | get-property caption | equals scenario1 | verify-true
get-item p2 | get-property caption | equals p2 | verify-true
get-item p2 | get-property childCount | equals 3 | verify-true
get-item "p2/context2" | get-property caption | equals context2 | verify-true
get-item "p2/scenario2" | get-property caption | equals scenario2 | verify-true
get-item p3 | get-property caption | equals p3 | verify-true
get-item p3 | get-property childCount | equals 3 | verify-true
get-item "p3/context3" | get-property caption | equals context3 | verify-true
get-item "p3/scenario3" | get-property caption | equals scenario3 | verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--