blob: 173254dfbb465fab8141887459e25d594babb597 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A
Element-Name: CreateContextAndCreateProject
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _z2P44MoeEeCVO9X7TqWdlg
Runtime-Version: 1.5.3.201409120955
Save-Time: 9/16/14 11:41 AM
Tags: Context, WorkspaceContext, Create, Project
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 Context" window
2. Location field is empty
3. Press on "Browse" button
4. Create Q7 project by pressing on button on toolbar
5. Create context
6. Make sure that new project and new context are created and displayed in Q7 Explorer
------=_.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-property itemCount | equals 0 | verify-true
get-view "Test Explorer" | get-tree | get-menu "New/Other..." | click
with [get-window New] {
get-tree | select "RCP Testing Tool/Context"
get-button "Next >" | click
}
with [get-window "New Context Wizard"] {
get-editbox -after [get-label "Create a new test context"] | get-property value
| equals "Select the parent folder in RCPTT project" | verify-true
get-editbox -after [get-label "Location:"] | get-property value | equals "" | verify-true
}
get-window "New Context Wizard" | get-button "Browse..." | click
with [get-window "New Context Wizard" | get-window "Select Location"] {
get-tree | get-property itemCount | equals 0 | verify-true
get-button "Create new folder" | get-property enablement | equals false | verify-true
get-button Delete | get-property enablement | equals false | verify-true
}
with [get-window "New Context Wizard" | get-window "Select Location"] {
get-button "Create new project" | click
with [get-window "New RCPTT Project"] {
get-editbox -after [get-label "Project name:"] | set-text q7project
get-button Finish | click
}
}
with [get-window "New Context Wizard" | get-window "Select Location" | get-tree] {
get-property itemCount | equals 1 | verify-true
get-item q7project | get-property caption | equals q7project | verify-true
}
get-window "New Context Wizard" | get-window "Select Location" | get-button Cancel | click
get-window "New Context Wizard" | get-editbox -after [get-label "Location:"] | get-property value | equals ""
| verify-true
with [get-window "New Context Wizard"] {
get-button "Browse..." | click
with [get-window "Select Location"] {
get-tree | select q7project
get-button OK | click
}
}
get-window "New Context Wizard" | get-editbox -after [get-label "Location:"] | get-property value | equals "/q7project"
| verify-true
with [get-window "New Context Wizard"] {
get-editbox -after [get-label "Name:"] | set-text context
get-button Finish | click
}
with [get-tab-folder -index 1] {
get-property pages -index 0 | equals context | verify-true
get-property activePage | equals context | verify-true
get-property tabCount | equals 1 | verify-true
}
with [get-view "Test Explorer" | get-tree] {
get-property itemCount | equals 1 | verify-true
get-item q7project | get-property caption | equals q7project | verify-true
get-item q7project | get-property childCount | equals 2 | verify-true
get-item "q7project/context" | get-property caption | equals context | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--