blob: 8baab76cedbe5193d59395934d5ab053b4c110e5 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_IeEQkPSUEeCE1L2j6bYoFw
Element-Name: FilterSearchWorksWithInvalidTestFiles
Element-Type: testcase
Element-Version: 3.0
Id: _VRxNoPinEeCV55qqbrOgoQ
Save-Time: 6/13/14 7:04 PM
Tags: SearchReplace
Testcase-Type: ecl
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
Xored Software Inc - initial creation and/or initial documentation
1. Open test case in a text editor and replace all text content with "qqq" to get an invalid test case;
2. Save test case;
3. Try to use filter search in Q7 explorer.
Content-Type: text/ecl
Entry-Name: .content
get-view "Test Explorer" | get-tree | select "Q7Project/TestCase1" | get-menu "Open With/Text Editor" | click
with [get-editor "TestCase1.test" | get-text-viewer] {
set-caret-pos 20 58
select-range 20 59 1 1
key-type Del
type-text qqq
get-button "Save (M1+S)" | click
get-editor "TestCase1.test" | close
get-view "Test Explorer" | click
get-view "Test Explorer" | get-editbox | set-text qqq
get-view "Test Explorer" | get-tree | get-property itemCount | equals 0 | verify-true