| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_C0SR0GphEeCzId1Gnkds9A |
| Element-Name: CreateTestSuiteAndProjectViaWizard |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _gkOtIENVEeGEmKn4hFNAmQ |
| Q7-Runtime-Version: 1.5.0.qualifier |
| Save-Time: 6/15/14 4:23 PM |
| Tags: TestSuite, 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 |
| -------------------------------------------------------------------------------- |
| |
| Pre-conditions: |
| Empty workspace |
| |
| Test Steps: |
| 1. Select "File\New\Other" from main menu |
| 2. Select "Q7\Test Suite" in Wizard window |
| 3. Press "Next" button |
| 4. Make sure that "Location" and "Name" fields are empty and "Finish" button is disabled |
| 5. Enter name and make sure that "Finish" button is disabled, error message is disabled |
| 6. Press "Browser" button and create new Q7 project |
| 7. Press "Finish" button in "New Test Suite" window |
| 8. Make sure that new project is created and new test suite is added in project |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-menu "File/New/Other..." | click |
| with [get-window New | get-tree] { |
| get-item "RCP Testing Tool" | get-property caption | equals "RCP Testing Tool" | verify-true |
| get-item "RCP Testing Tool/Context" | get-property caption | equals Context | verify-true |
| get-item "RCP Testing Tool/RCP Testing Tool Project" | get-property caption | equals "RCP Testing Tool Project" | verify-true |
| get-item "RCP Testing Tool/Test Case" | get-property caption | equals "Test Case" | verify-true |
| get-item "RCP Testing Tool/Test Suite" | get-property caption | equals "Test Suite" | verify-true |
| } |
| with [get-window New] { |
| get-tree | select "RCP Testing Tool/Test Suite" |
| get-button "Next >" | click |
| } |
| with [get-window "New Test Suite"] { |
| get-editbox -after [get-label "Location:"] | get-property text | equals "" | verify-true |
| get-editbox -after [get-label "Name:"] | get-property text | equals "" | verify-true |
| get-editbox -after [get-label "Test Suite"] | get-property text | equals "Select the parent folder in RCPTT project" |
| | verify-true |
| } |
| get-window "New Test Suite" | get-editbox -after [get-label "Name:"] | set-text testSuite |
| with [get-window "New Test Suite"] { |
| get-editbox -after [get-label "Test Suite"] | get-property text | equals "Select the parent folder in RCPTT project" |
| | verify-true |
| get-button "Next >" | get-property enablement | equals false | verify-true |
| get-button Finish | get-property enablement | equals false | verify-true |
| } |
| get-window "New Test Suite" | get-button "Browse..." | click |
| get-window "New Test Suite" | get-window "Select Location" | get-tree | get-property itemCount | equals 0 | verify-true |
| with [get-window "New Test Suite"] { |
| with [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-button OK | click |
| } |
| get-button Finish | click |
| } |
| get-view "Test Explorer" | get-tree | get-property itemCount | equals 1 | verify-true |
| with [get-view "Test Explorer" | get-tree] { |
| get-item q7project | get-property caption | equals q7project | verify-true |
| // get-item q7project | get-property childCount | equals 1 | verify-true |
| get-item "q7project/testSuite" | get-property caption | equals testSuite | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |