| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ,_Z-6cEEVwEeGf87sdqO61AA |
| Element-Name: AddTestSuiteToTestSuiteByDragDrop |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _zPMXAEZAEeGf87sdqO61AA |
| Runtime-Version: 2.2.0.qualifier |
| Save-Time: 5/21/17 12:08 PM |
| Tags: TestSuite, TestCase, selfAUT |
| 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 |
| -------------------------------------------------------------------------------- |
| |
| Test Steps: |
| 1. Create new Test Suite |
| 2. Add test suite by Drag and Drop |
| 3. Make sure that test suite is added |
| 4. Execute test suite |
| ------=_.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 | select MyProject |
| get-button New | click -arrow |
| get-menu "Test Suite" | click |
| with [get-window "New Test Suite"] { |
| get-editbox -after [get-label "Name:"] | set-text NewTestSuite |
| get-button Finish | click |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| select "MyProject/TestSuite" |
| get-item "MyProject/TestSuite" | drag-start 14 11 |
| get-item "MyProject/TestSuite" | drag-enter 42 11 -detail 2 -operation 7 |
| get-item "MyProject/TestSuite" | drag-over 112 2 -operation 7 |
| get-item "MyProject/NewTestSuite" | drag-over 184 7 -operation 7 |
| get-item "MyProject/TestSuite" | drag-exit |
| } |
| with [get-editor NewTestSuite | get-section "Test Cases" | get-table] { |
| drag-enter 1 111 -detail 2 -operation 3 |
| drag-over 116 111 -detail 2 -operation 3 |
| drag-exit |
| drag-accept 116 111 -detail 2 -operation 3 |
| } |
| get-view "Test Explorer" | get-tree | get-item MyProject | drag-set-data |
| get-editor NewTestSuite | get-section "Test Cases" | get-table | drop 116 111 -detail 2 -operation 3 |
| get-view "Test Explorer" | get-tree | get-item MyProject | drag-end -detail 2 |
| with [get-editor NewTestSuite | get-section "Test Cases" | get-table] { |
| get-property itemCount | equals 1 | verify-true |
| get-item "TestSuite \\(MyProject\\)" | get-property caption | equals "TestSuite (MyProject)" | verify-true |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| select "MyProject/CreateJavaProject" |
| get-item "MyProject/CreateJavaProject" | drag-start 6 8 |
| get-item "MyProject/NewTestSuite" | drag-enter 171 3 -detail 2 -operation 7 |
| get-item "MyProject/NewTestSuite" | drag-over 186 3 -operation 7 |
| get-item "MyProject/NewTestSuite" | drag-exit |
| } |
| with [get-editor NewTestSuite | get-section "Test Cases" | get-table] { |
| drag-enter 7 110 -detail 2 -operation 3 |
| drag-over 90 101 -detail 2 -operation 3 |
| drag-exit |
| drag-accept 90 101 -detail 2 -operation 3 |
| } |
| get-view "Test Explorer" | get-tree | get-item MyProject | drag-set-data |
| get-editor NewTestSuite | get-section "Test Cases" | get-table | drop 90 101 -detail 2 -operation 3 |
| get-view "Test Explorer" | get-tree | get-item MyProject | drag-end -detail 2 |
| get-editor NewTestSuite | get-section "Test Cases" | get-table | get-property itemCount | equals 2 | verify-true |
| get-editor NewTestSuite | get-button Execute | click |
| get-window "Save Resource" | get-button Save | click |
| wait 10000 |
| get-view "Execution View" | get-tree | get-property itemCount | equals 1 | verify-true |
| get-view "Execution View" | get-tree | get-item "NewTestSuite.*" | get-property childCount | equals 2 |
| | verify-true |
| with [get-view "Execution View" | get-tree] { |
| get-item "NewTestSuite.*/TestSuite.*" | get-property caption |
| | equals "TestSuite.*" | verify-true |
| get-item "NewTestSuite.*/TestSuite.*" | get-property childCount | equals 3 | verify-true |
| get-item "NewTestSuite.*/TestSuite.*/TestWithContexts.*" |
| | get-property caption | equals "TestWithContexts.*" | verify-true |
| get-item "NewTestSuite.*/TestSuite.*/CreateJavaProject.*" |
| | get-property caption | equals "CreateJavaProject.*" | verify-true |
| get-item "NewTestSuite.*/TestSuite.*/WorkspaceIsEmpty.*" |
| | get-property caption | equals "WorkspaceIsEmpty.*" | verify-true |
| get-item "NewTestSuite.*/CreateJavaProject.*" | get-property caption |
| | equals "CreateJavaProject.*" | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |