| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _wFTf0KDsEeKGc-nsvHJqGA,_ZQYygK2sEeCqBbDEJWufvQ,_0_PAAKDoEeKGc-nsvHJqGA |
| Element-Name: NoLaunchDuplicates |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _yOKkgaHCEeK_-IO-g05tUA |
| Runtime-Version: 2.2.0.201704071302 |
| Save-Time: 5/18/17 5:58 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 |
| -------------------------------------------------------------------------------- |
| |
| Tests that event without terminating all launches, repeated context execution won't lead to multiple launches. |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| proc waitForTaskToComplete { |
| loop { |
| if [get-view "Execution View" | get-label ".*/1" |
| | get-property caption -raw | not-eq "1/1"] { |
| wait 500 |
| recur |
| } |
| } |
| } |
| |
| get-view "Test Explorer" | get-tree | select "TestQ7Prj/JavaProgram" | double-click |
| get-editor JavaProgram | get-button Apply | click |
| waitForTaskToComplete |
| |
| get-editor LaunchContextTest | click |
| get-editor LaunchContextTest | get-button Apply | click |
| try { |
| get-window "RCPTT Debug" | get-button Yes | click |
| } |
| -catch { |
| } |
| get-view "Test Explorer" | get-tree | select "TestQ7Prj/EnsureOnlyOneLaunch" | get-menu "Run As/\\d+ Test Cases" | click |
| get-view "Execution View" | get-editbox -after [get-label "Message:"] | get-property text | equals "" | verify-true |
| with [get-editor LaunchContextTest] { |
| get-section Options | get-button "Terminate existing launches" | click |
| get-button Apply | click |
| } |
| get-window "Save Resource" | get-button Yes | click |
| get-view "Test Explorer" | get-tree | select "TestQ7Prj/EnsureOnlyOneLaunch" | get-menu "Run As/\\d+ Test Cases" | click |
| get-editor LaunchContextTest | get-section Options | get-button "Terminate existing launches" | get-property selected |
| | equals false | verify-true |
| get-view "Execution View" | get-editbox -after [get-label "Message:"] | get-property text | equals "" | verify-true |
| get-editor LaunchContextTest | get-button Capture | click |
| get-editor LaunchContextTest | get-section "Launch configurations" | get-tree | get-item Launches | get-property |
| "childCount" | equals 1 | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |