blob: 3752af97905ad3f9d11c07d9add0c8e8bf48dfae [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ,_cNRdwDtvEeG8pezHWLcUvg,_ksxMcEMsEeGEmKn4hFNAmQ
Element-Name: TerminateDebugging
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _NggzMHM6EeGsLtfm1BUmHg
Runtime-Version: 1.5.0.201407281253
Save-Time: 7/29/14 11:17 AM
Tags: feature/debug, 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. Set breakpoints to two tests
2. Run these tests in debug
3. Press "Terminate" button in Debug view
4. Make sure that execution of tests is terminated
5. Correct message is displayed in Execution View
------=_.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 "MyProject/CreateJavaProject" | double-click
with [get-editor CreateJavaProject | get-section Script | get-text-viewer] {
set-caret-pos 2 1
key-type "M1+M2+b"
}
get-view "Test Explorer" | get-tree | select "MyProject/CreateJavaProject" | get-menu "Debug As/.* Test Cases" | click
wait 200
with [get-view Debug] {
get-tree | get-item "CreateJavaProject \\[RCPTT Test Suite\\]/CreateJavaProject/ECL Thread/get-window \\(CreateJavaProject: 2\\)"
| get-property caption | equals "get-window (CreateJavaProject: 2)" | verify-true
get-tree | get-item "CreateJavaProject \\[RCPTT Test Suite\\]/CreateJavaProject/ECL Thread/with \\(CreateJavaProject: 2\\)"
| get-property caption | equals "with (CreateJavaProject: 2)" | verify-true
get-button "Terminate (M1+F2)" | click
with [get-button "Resume.*"] {
get-property enablement | equals false | verify-true
get-property tooltip | equals "Resume.*" | verify-true
}
with [get-button "Terminate.*"] {
get-property enablement | equals false | verify-true
get-property tooltip | equals "Terminate.*" | verify-true
}
}
get-button "RCPTT perspective" | click
try -times 10 -delay 2000 -command {
with [get-view "Execution View"] {
get-label -after [get-label "Runs:"] | get-property caption | equals "1/1" | verify-true
get-label -after [get-label "Stops:"] | get-property caption | equals 1 | verify-true
get-label -after [get-label "Failures:"] | get-property caption | equals 1 | verify-true
get-tree | select "CreateJavaProject.*"
get-editbox -after [get-label "Message:"] | get-property text | equals "Testcase execution is terminated"
| verify-true
}
} -finally {
get-aut selfQ7 | eval {
get-advanced-info
} | report-append
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--