blob: 5e8287d2199e0d6243e4a38018e5217e7c032bf2 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ
Element-Name: CreateAUTWithExistingName
Element-Type: testcase
Element-Version: 3.0
Id: _dXS98Y3OEeGPGed2vA-uTQ
Q7-Runtime-Version: 1.5.0.qualifier
Save-Time: 5/14/14 6:45 PM
Tags: AUTConfiguration, selfAUT, Create
Testcase-Type: ecl
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
Xored Software Inc - initial creation and/or initial documentation
1. Create AUT1 with Location1;
2. Press "New" button and select location2 for this new AUT;
3. Set its name as AUT1 too
"Application already exist" message occurs, "Finish" button is disabled, unable to save AUT1 with new location2.
Content-Type: text/ecl
Entry-Name: .content
get-view Applications | get-tree | select selfQ7 | get-menu "Configure..." | click
with [get-window "Edit Application Under Test"] {
with [get-editbox -after [get-label "Location:"]] {
key-type "M1+a"
key-type "M1+c"
get-button Cancel | click
get-view Applications | get-button "New..." | click
get-window "New Application Under Test" | get-editbox -after [get-label "Location:"] | key-type "M1+v"
with [get-window "New Application Under Test"] {
get-editbox -after [get-label "Name:"] | set-text AUT1
get-button Finish | click
get-view Applications | get-button "New..." | click
with [get-window "New Application Under Test"] {
get-editbox -after [get-label "Location:"] | key-type "M1+v"
get-editbox -after [get-label "Name:"] | set-text AUT1
with [get-window "New Application Under Test"] {
get-editbox -after [get-label "New Application Under Test"] | get-property text
| equals "Application AUT1 already exists. Please specify a different name." | verify-true
get-button Finish | get-property enablement | equals false | verify-true
get-button Cancel | get-property enablement | equals true | verify-true
get-window "New Application Under Test" | get-button Cancel | click
with [get-view Applications | get-tree] {
get-property itemCount | equals 2 | verify-true
get-item selfQ7 | get-property caption | equals selfQ7 | verify-true
get-item AUT1 | get-property caption | equals AUT1 | verify-true