| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ,_cNRdwDtvEeG8pezHWLcUvg,_lIpZ0SA0EeOgF-UCjAjUMA |
| Element-Name: Set Breakpoint In Proc_Step Into_Step Return |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _pLS-0CBTEeOjX5Yww5t2_A |
| Runtime-Version: 2.4.2.qualifier |
| Save-Time: 4/24/19 12:12 PM |
| Tags: selfAUT, Debug |
| 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 |
| -------------------------------------------------------------------------------- |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| with [get-view "Test Explorer" | get-tree] { |
| select "MyProject/Dummy" | double-click |
| select "MyProject/New Java Class Procs" | double-click |
| } |
| with [get-editor "New Java Class Procs" | get-section Script | get-left-ruler] { |
| get-ruler-column AnnotationColumn | click-ruler -line 5 -button Right |
| get-menu "Toggle Breakpoint" | click |
| } |
| get-view "Test Explorer" | get-tree | select "MyProject/Dummy" | get-menu "Debug As/1 Test Cases" | click |
| with [get-view Debug | get-tree] { |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread" | get-property childCount | equals 2 | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/val \\(New Java Class Procs: 5\\)" | get-property caption |
| | equals "val (New Java Class Procs: 5)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/proc \\(New Java Class Procs: 5\\)" | get-property caption |
| | equals "proc (New Java Class Procs: 5)" | verify-true |
| } |
| |
| get-button "Step Over (F6)" | click |
| with [get-button "Step Into (F5)"] { |
| click |
| click |
| click |
| click |
| click |
| click |
| click |
| try -times 5 -delay 1000 -command { |
| click |
| } |
| click |
| } |
| |
| with [get-view Debug | get-tree] { |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread" | get-property childCount | equals 5 | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/format \\(New Java Class Procs: 16\\)" | get-property caption |
| | equals "format (New Java Class Procs: 16)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/val \\(New Java Class Procs: 16\\)" | get-property caption |
| | equals "val (New Java Class Procs: 16)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/let \\(New Java Class Procs: 16\\)" | get-property caption |
| | equals "let (New Java Class Procs: 16)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/open-new-context-dialog \\(New Java Class Procs: 24\\)" |
| | get-property caption | equals "open-new-context-dialog (New Java Class Procs: 24)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/create-new-context \\(Dummy: 1\\)" | get-property caption |
| | equals "create-new-context (Dummy: 1)" | verify-true |
| } |
| get-button "Step Return (F7)" | click |
| with [get-view Debug | get-tree] { |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread" | get-property childCount | equals 2 | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/get-window \\(New Java Class Procs: 25\\)" |
| | get-property caption | equals "get-window (New Java Class Procs: 25)" | verify-true |
| get-item "Dummy \\[RCPTT Test Suite\\]/Dummy/ECL Thread/create-new-context \\(Dummy: 1\\)" | get-property caption |
| | equals "create-new-context (Dummy: 1)" | verify-true |
| } |
| get-button "Resume (F8)" | click |
| get-button "RCPTT perspective" | click |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |