blob: 99f593ee33cace012388c80c9742bdb78a2a61dd [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A
Element-Name: CreateProjectWithIncorrectName
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Yg5cIMmAEeCVO9X7TqWdlg
Runtime-Version: 1.5.3.201409120955
Save-Time: 9/16/14 11:41 AM
Tags: skipLinux, Project, Create
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
--------------------------------------------------------------------------------
1. Open "New Project" window
2. Input incorrect symbol in the "Project name" field (*, :, ", <, >, . , ?, /, \, |)
3. Make sure that "Next" and "Finish" buttons are disabled
4. Make sure that informative message is displayed
------=_.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 | get-menu "New/Other..." | click
with [get-window New] {
get-tree | select "RCP Testing Tool/RCP Testing Tool Project"
get-button "Next >" | click
}
with [get-window "New Project"] {
get-editbox -after [get-label "Project name:"] | get-property value | equals "" | verify-true
get-button Finish | get-property enablement | equals false | verify-true
get-button "Next >" | get-property enablement | equals false | verify-true
get-button Cancel | get-property enablement | equals true | verify-true
}
get-window "New Project" | get-editbox -after [get-label "Project name:"] | set-text "/"
with [get-window "New Project"] {
get-editbox -after [get-label "RCP Testing Tool Project"] | get-property value
| equals "/ is an invalid character in resource name \'/\'." | verify-true
get-button Finish | get-property enablement | equals false | verify-true
get-button "Next >" | get-property enablement | equals false | verify-true
}
get-window "New Project" | get-editbox -after [get-label "Project name:"] | set-text "."
with [get-window "New Project"] {
get-editbox -after [get-label "RCP Testing Tool Project"] | get-property rawValue
| equals " \'.\' is an invalid name on this platform." | verify-true
get-button Finish | get-property enablement | equals false | verify-true
get-button "Next >" | get-property enablement | equals false | verify-true
}
get-window "New Project" | get-editbox -after [get-label "Project name:"] | set-text " "
with [get-window "New Project"] {
get-button Finish | get-property enablement | equals false | verify-true
get-button "Next >" | get-property enablement | equals false | verify-true
}
with [get-window "New Project"] {
get-editbox -after [get-label "Project name:"] | set-text "test!"
get-button Finish | click
}
get-view "Test Explorer" | get-tree | get-item "test!" | get-property caption | equals "test!" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--