| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_OZy1MLbqEeK5oJHbEAZCPA |
| Element-Name: CreateSuperLaunchContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _te0HELbXEeK5oJHbEAZCPA |
| Q7-Runtime-Version: 1.5.0.201406131029 |
| Save-Time: 6/13/14 7:04 PM |
| Tags: Context, SuperContext |
| 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. Select "New->Super Context" from context menu in Q7 Explorer |
| 2. Select "Launch" and enter name |
| 3. Press "Ok" |
| 4. Make sure that super context is created and only launch contexts can be added to Super Context |
| ------=_.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 Q7Project | get-menu "New/Super Context" | click |
| with [get-window "New Super Context Wizard"] { |
| get-editbox -after [get-label "Name:"] | set-text SuperLaunchContext |
| get-table | select Launch |
| get-button Finish | click |
| } |
| get-tab-folder -index 1 | get-property activePage | equals SuperLaunchContext | verify-true |
| get-view "Test Explorer" | get-tree | get-item "Q7Project/SuperLaunchContext" | get-property caption |
| | equals SuperLaunchContext | verify-true |
| with [get-editor SuperLaunchContext] { |
| get-button Capture | get-property enablement | equals false | verify-true |
| get-button Apply | get-property enablement | equals false | verify-true |
| get-section Contexts | get-table | get-property itemCount | equals 0 | verify-true |
| } |
| get-editor SuperLaunchContext | get-section Contexts | get-button "Add..." | click |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-focus |
| get-table | select "DebugContext \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 2 | verify-true |
| get-item "DebugContext \\(Q7Project\\)" | get-property caption | equals "DebugContext (Q7Project)" | verify-true |
| get-item "LaunchContext2 \\(Q7Project\\)" | get-property caption | equals "LaunchContext2 (Q7Project)" | verify-true |
| } |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-focus |
| get-table | select "LaunchContext2 \\(Q7Project\\)" |
| get-button OK | click |
| } |
| get-editor SuperLaunchContext | get-section Contexts | get-table | key-type "M1+s" |
| with [get-editor SuperLaunchContext | get-section Contexts | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "LaunchContext2 \\(Q7Project\\)" | get-property caption | equals "LaunchContext2 (Q7Project)" | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |