blob: eb56e48675543a7bf96f6d6f625153a01146ba96 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ,_OKTjMYxiEeK4jYsIiM8Vnw
Element-Name: NotRemoveDuplicateContextFromTestAtAddingDefaultContexts
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _dIzusI_XEeK23bkAp9HBOg
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:10 PM
Tags: Context, DefaultContext, 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. Open Project Settings and add context, which is used in test-case
2. Make sure that informative dialog is displayed
3. Press "YES"
4. Make sure that duplicate context is removed from test-case
------=_.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 "MyProject/Project Settings" | double-click
get-editor "MyProject - Project Settings" | get-section "Default 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 "Two Projects \\(MyProject\\)"
get-button OK | click
}
get-button "Save (M1+S)" | click
get-window "Project Context and Verification References"
| get-label "Would you like to remove default project context/verification references from 1 elements?" | get-property caption
| equals "Would you like to remove default project context/verification references from 1 elements?" | verify-true
get-window "Project Context and Verification References" | get-button No | click
with [get-editor "MyProject - Project Settings" | get-section "Default Contexts" | get-table] {
get-property itemCount | equals 2 | verify-true
get-item "Reset Perspective \\(MyProject\\)" | get-property caption | equals "Reset Perspective (MyProject)"
| verify-true
get-item "Two Projects \\(MyProject\\)" | get-property caption | equals "Two Projects (MyProject)" | verify-true
}
get-view "Test Explorer" | get-tree | select "MyProject/P1 is left" | double-click
get-window "Project Context and Verification References"
| get-label "Would you like to remove default project context/verification references? Two Projects (/MyProject/Two Projects.ctx)"
| get-property caption | equals "Would you like to remove default project context/verification references?\n\n"
+ " Two Projects (/MyProject/Two Projects.ctx)" | verify-true
get-window "Project Context and Verification References" | get-button No | click
get-editor "P1 is left" | get-section Contexts | click
with [get-editor "P1 is left" | get-section Contexts | get-table] {
get-property itemCount | equals 4 | verify-true
get-item "Reset Perspective \\(MyProject - default context\\)" | get-property caption
| equals "Reset Perspective (MyProject - default context)" | verify-true
get-item "Two Projects \\(MyProject - default context\\)" | get-property caption
| equals "Two Projects (MyProject - default context)" | verify-true
get-item "Two Projects \\(MyProject - project default context conflict. Current context will be ignored\\)"
| get-property caption
| equals "Two Projects (MyProject - project default context conflict. Current context will be ignored)"
| verify-true
get-item "Do Not Clear P1 \\(MyProject\\)" | get-property caption | equals "Do Not Clear P1 (MyProject)"
| verify-true
}
get-editor "P1 is left" | get-button Replay | click
get-view "Execution View" | get-tree | get-item "P1 is left.*" | get-property childCount | equals 4
| verify-true
get-view "Execution View" | get-tree
| get-item "P1 is left.*/Reset Perspective.*" | get-property caption
| equals "Reset Perspective.*" | verify-true
get-view "Execution View" | get-tree
| get-item "P1 is left.*/Two Projects.*" | get-property caption
| equals "Two Projects.*" | verify-true
get-view "Execution View" | get-tree | get-item "P1 is left.*/Do Not Clear P1.*"
| get-property caption | equals "Do Not Clear P1.*" | verify-true
get-view "Execution View" | get-tree | get-item "P1 is left.*/P1 is left.*"
| get-property caption | equals "P1 is left.*" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--