blob: 628ea573ce70f3abc102b3a397815350a9a9d529 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _wFTf0KDsEeKGc-nsvHJqGA,_ZQYygK2sEeCqBbDEJWufvQ,_0_PAAKDoEeKGc-nsvHJqGA
Element-Name: ClearBreakpointsInLaunchContext
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _ruogQKsNEeKPyJLvtvYvAw
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
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 breakpoints" in Launch Context
2. Make sure that breakpoints are cleared
3. Uncheck "Clear breakpoints" in Launch Context
4. Make sure that breakpoints are not cleared
------=_.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
with [get-editor LaunchContextTest] {
click
get-button Apply | click
}
get-view "Test Explorer" | get-tree | select "TestQ7Prj/EmptyLaunchContext" | double-click
get-editor EmptyLaunchContext | get-section Options | get-button "Clear breakpoints" | get-property selected | equals true | verify-true
get-editor EmptyLaunchContext | get-section Options | get-button "Terminate existing launches" | click
get-button "Save (M1+S)" | click
get-editor EmptyLaunchContext | get-button Apply | click
get-view "Test Explorer" | get-tree | select "TestQ7Prj/EmptyLaunchContext2" | double-click
get-editor EmptyLaunchContext2 | get-button Capture | click
get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree | verify-error { get-item Breakpoints }
with [get-editor LaunchContextTest] {
click
get-button Apply | click
}
with [get-editor EmptyLaunchContext] {
click
get-section Options | get-button "Clear breakpoints" | click
}
get-button "Save (M1+S)" | click
get-editor EmptyLaunchContext | get-section Options | get-button "Clear breakpoints" | get-property selected | equals false | verify-true
get-editor EmptyLaunchContext | get-button Apply | click
with [get-editor EmptyLaunchContext2] {
click
get-button Capture | click
}
get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree | get-item Breakpoints | get-property caption | equals Breakpoints | verify-true
get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree | get-item Breakpoints | get-property childCount | equals 1 | verify-true
with [get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree] {
get-item "Breakpoints/\\/SimpleJavaProgram\\/src\\/Main.java" | get-property caption
| equals "/SimpleJavaProgram/src/Main.java" | verify-true
get-item "Breakpoints/\\/SimpleJavaProgram\\/src\\/Main.java" | get-property childCount | equals 1 | verify-true
get-item "Breakpoints/\\/SimpleJavaProgram\\/src\\/Main.java/Line breakpoint:Main \\[line: 8\\] - main\\(String\\[\\]\\)"
| get-property caption | equals "Line breakpoint:Main [line: 8] - main(String[])" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--