blob: d8d04ad85005ad19aca9f8449fbb550d736e176e [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _JiO8oBa3EeSdGuu1vTlcGw,_ZQYygK2sEeCqBbDEJWufvQ,_0_PAAKDoEeKGc-nsvHJqGA
Element-Name: FilteringAtClearingLaunchConfiguration
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _nLU3oKvSEeKhFfhAE-FJzg
Runtime-Version: 1.5.0.201407281253
Save-Time: 7/29/14 7:29 AM
Tags: Context, LaunchContext, selfAUT
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. Check "Clear launch configurations" in Launch Context
2. Set launch configurations, which are filtered
3. Make sure that launches are filtered
------=_.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 "TestQ7Prj/PrefContext" | double-click
get-editor PrefContext | get-button Apply | click
get-view "Test Explorer" | get-tree | select "TestQ7Prj/JavaProgram" | double-click
get-editor JavaProgram | get-button Apply | click
get-view "Test Explorer" | get-tree | select "TestQ7Prj/FilteringLCTestContext" | double-click
get-editor FilteringLCTestContext | get-button Apply | click
get-view "Test Explorer" | get-tree | select "TestQ7Prj/EmptyLaunchContext" | double-click
with [get-editor EmptyLaunchContext] {
with [get-section Options] {
get-button "Clear launch configurations" | click
with [get-editbox -after [get-label "Do not delete following configurations:"]] {
set-text "Test*"
key-type "M1+s"
set-focus
}
}
get-button Apply | click
}
get-view "Test Explorer" | get-tree | select "TestQ7Prj/EmptyLaunchContext2" | double-click
get-editor EmptyLaunchContext2 | get-button Capture | click
with [get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree] {
get-item "Launch configurations" | get-property childCount | equals 1 | verify-true
// get-item "Launch configurations/Eclipse Application under Test" | get-property childCount | equals 1 | verify-true
// get-item "Launch configurations/Eclipse Application under Test/Test Application" | get-property caption | equals "Test Application" | verify-true
get-item "Launch configurations/Application Under Test \\(RCPTT\\)" | get-property caption | equals "Application Under Test (RCPTT)" | verify-true
get-item "Launch configurations/Application Under Test \\(RCPTT\\)/Test234" | get-property caption | equals Test234 | verify-true
get-item "Launch configurations/Application Under Test \\(RCPTT\\)/Test1" | get-property caption | equals Test1 | verify-true
}
with [get-editor EmptyLaunchContext] {
click
get-section Options | get-editbox -after [get-label "Do not delete following configurations:"]
| set-text "Test1, Empty "
}
get-editor FilteringLCTestContext | click
get-editor EmptyLaunchContext2 | click
with [get-editor EmptyLaunchContext] {
click
with [get-section Options | get-editbox -after [get-label "Do not delete following configurations:"]] {
set-text "Test1, Empty Test Suite"
key-type "M1+s"
set-focus
}
}
with [get-editor FilteringLCTestContext] {
click
get-button Apply | click
}
with [get-editor EmptyLaunchContext] {
click
get-button Apply | click
}
with [get-editor EmptyLaunchContext2] {
click
get-button Capture | click
}
with [get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree] {
get-item "Launch configurations/RCPTT Test Suite" | get-property childCount | equals 1 | verify-true
get-item "Launch configurations/RCPTT Test Suite/Empty Test Suite" | get-property caption | equals "Empty Test Suite" | verify-true
get-item "Launch configurations/Application Under Test \\(RCPTT\\)" | get-property childCount | equals 1 | verify-true
get-item "Launch configurations/Application Under Test \\(RCPTT\\)/Test1" | get-property caption | equals Test1 | verify-true
}
with [get-editor EmptyLaunchContext] {
click
with [get-section Options | get-editbox -after [get-label "Do not delete following configurations:"]] {
set-text "*test*"
key-type "M1+s"
set-focus
}
}
with [get-editor FilteringLCTestContext] {
click
get-button Apply | click
}
with [get-editor EmptyLaunchContext] {
click
get-button Apply | click
}
with [get-editor EmptyLaunchContext2] {
click
get-button Capture | click
}
get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree | get-property itemCount | equals 0 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--