blob: 176aca99d14d7392746614ba3921366e64d3a5e4 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_bD7OYe5zEeCWFp5-_cxtIw
Element-Name: SearchInWorkingSet
Element-Type: testcase
Element-Version: 3.0
External-Reference: http://jira4.xored.com/browse/QS-61
Id: _gjkWYO8BEeCWFp5-_cxtIw
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: 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
--------------------------------------------------------------------------------
TEST STEPS
1. Open Search dialog;
2. Enter text key and select "Working set" scope.
3. Choose appropriate working set and press "Search" button;
4. Make sure that search was performed in selected working set only.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
list-working-sets | foreach { delete-working-set }
get-view "Test Explorer" | get-menu "Select Working Set..." | click
with [get-window "Select Working Set"] {
get-button "New..." | click
with [get-window "New Working Set"] {
get-table | select Resource
get-button "Next >" | click
with [get-tree] {
select Q7Project1
get-item Q7Project1 | check
}
get-editbox -after [get-label "Working set name:"] | set-text WorkingSet1
get-button Finish | click
}
get-button "New..." | click
with [get-window "New Working Set"] {
get-table | select Resource
get-button "Next >" | click
get-tree | select Q7Project1 | get-item Q7Project2 | check
get-editbox -after [get-label "Working set name:"] | set-text WorkingSet2
get-button Finish | click
}
get-button OK | click
}
get-button Search | click -arrow
get-menu "1 Q7 Search" | click
with [get-window Search] {
get-combo -after [get-label "Containing text:"] | set-text key
get-group "Search in" | get-button Script | click
with [get-group Scope] {
get-button "Working set:" | click
get-button "Choose..." | click
}
get-window "Select Working Sets" | get-button OK | click
get-group Scope | get-button "Choose..." | click
with [get-window "Select Working Sets"] {
with [get-table] {
get-item WorkingSet2 | check
select WorkingSet1
get-item WorkingSet1 | uncheck
}
get-button OK | click
}
get-button Search | click
}
with [get-view Search | get-tree] {
get-property itemCount | equals 1 | verify-true
get-item Q7Project2 | get-property childCount | equals 1 | verify-true
get-item "Q7Project2/Folder" | get-property childCount | equals 2 | verify-true
get-item "Q7Project2/Folder/TestCase1.test/1: script_key" | get-property caption | equals "1: script_key"
| verify-true
}
get-view Search | get-tree | get-item "Q7Project2/Folder/TestCase2.test/1: script_key" | get-property caption
| equals "1: script_key" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--