| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _wFTf0KDsEeKGc-nsvHJqGA,_ZQYygK2sEeCqBbDEJWufvQ,_0_PAAKDoEeKGc-nsvHJqGA |
| Element-Name: ClearLaunchConfigurations |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _le2qoKsVEeKPyJLvtvYvAw |
| Runtime-Version: 1.5.0.qualifier |
| Save-Time: 8/11/14 2:37 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 launch configurations" in Launch Context |
| 2. Make sure that existing launch configurations are terminated |
| 3. Uncheck "Clear launch configurations" in Launch Context |
| 4. Make sure that existing launch configurations are not terminated |
| ------=_.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 |
| set-q7-option jobTreatAsSleepingTimeout 30000 |
| 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 |
| with [get-editor EmptyLaunchContext | get-section Options] { |
| get-button "Clear launch configurations" | get-property selected | equals false | verify-true |
| get-editbox -after [get-label "Do not delete following configurations:"] | get-property enablement | equals false |
| | verify-true |
| } |
| 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 |
| with [get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree] { |
| get-item "Launch configurations" | get-property caption | equals "Launch configurations" | verify-true |
| get-item "Launch configurations" | get-property childCount | equals 1 | verify-true |
| get-item "Launch configurations/Java Application" | get-property caption | equals "Java Application" | verify-true |
| get-item "Launch configurations/Java Application" | get-property childCount | equals 1 | verify-true |
| get-item "Launch configurations/Java Application/Main" | get-property caption | equals Main | verify-true |
| } |
| with [get-editor LaunchContextTest] { |
| click |
| get-button Apply | click |
| } |
| with [get-editor EmptyLaunchContext] { |
| click |
| get-section Options | get-button "Clear launch configurations" | click |
| } |
| with [get-editor EmptyLaunchContext | get-section Options] { |
| get-button "Clear launch configurations" | get-property selected | equals true | verify-true |
| get-editbox -after [get-label "Do not delete following configurations:"] | get-property enablement | equals true |
| | verify-true |
| } |
| with [get-editor EmptyLaunchContext] { |
| get-editbox -after [get-label "Name:"] | key-type "M1+s" |
| 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 |
| get-editor EmptyLaunchContext2 | get-section "Launch configurations" | get-tree | verify-error { get-item "Launch configurations" } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |