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