| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_OZy1MLbqEeK5oJHbEAZCPA |
| Element-Name: CreateSuperParametersContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _6XbqMLbVEeK5oJHbEAZCPA |
| Runtime-Version: 1.5.3.201409120955 |
| Save-Time: 9/22/14 9:54 AM |
| 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 "Parameters" and enter name |
| 3. Press "Ok" |
| 4. Make sure that super context is created and only parameters 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-table | select Parameters |
| get-editbox -after [get-label "Name:"] | set-text SuperParamContext |
| get-button Finish | click |
| } |
| get-editor "SuperParamContext" | get-property active -raw | equals true | verify-true |
| //get-tab-folder -index 1 | get-property activePage | equals SuperParamContext | verify-true |
| with [get-editor SuperParamContext] { |
| 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 SuperParamContext | 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 "Parameter1 \\(Q7Project\\)" |
| } |
| with [get-window "Select context" | get-table] { |
| get-property itemCount | equals 2 | verify-true |
| get-item "Parameter1 \\(Q7Project\\)" | get-property caption | equals "Parameter1 (Q7Project)" | verify-true |
| get-item "Parameter2 \\(Q7Project\\)" | get-property caption | equals "Parameter2 (Q7Project)" | verify-true |
| } |
| with [get-window "Select context"] { |
| get-editbox -after [get-label "Enter context name prefix or pattern (*, ?):"] | set-focus |
| get-table | select "Parameter2 \\(Q7Project\\)" |
| get-button OK | click |
| } |
| with [get-editor SuperParamContext | get-section Contexts | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "Parameter2 \\(Q7Project\\)" | get-property caption | equals "Parameter2 (Q7Project)" | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |