blob: ed8289a66d735ba19e33069267a26e2a80930400 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_ZQYygK2sEeCqBbDEJWufvQ,_-03SMOpBEeCjiJ-04yesNg
Element-Name: DuplicateTestSuite
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _1f2K8Oo-EeCjiJ-04yesNg
Runtime-Version: 1.5.0.201407290252
Save-Time: 7/30/14 4:00 PM
Tags: TestSuite, 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
--------------------------------------------------------------------------------
1. Select Test Suite in Run Configuration
2. Press "Duplicate" button
3. Make sure that test suite is duplicate
4. Make sure that at the execution all tests are run
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-menu "Run/Run Configurations..." | click
with [get-window "Run Configurations"] {
get-tree | select "RCPTT Test Suite/Q7Project2"
get-button "Duplicates the currently selected launch configuration" | click
}
with [get-window "Run Configurations"] {
with [get-tree] {
get-item "RCPTT Test Suite" | get-property childCount | equals 4 | verify-true
get-item "RCPTT Test Suite/Q7Project" | get-property caption | equals Q7Project | verify-true
get-item "RCPTT Test Suite/Q7Project2" | get-property caption | equals Q7Project2 | verify-true
get-item "RCPTT Test Suite/Q7Project2 \\(1\\)" | get-property caption | equals "Q7Project2 (1)" | verify-true
get-item "RCPTT Test Suite/Test Suite" | get-property caption | equals "Test Suite" | verify-true
}
get-editbox -after [get-label "Name:"] | get-property value | equals "Q7Project2 (1)" | verify-true
with [get-table] {
get-property itemCount | equals 6 | verify-true
get-item test4 | get-property columns -index 0 | equals test4 | verify-true
get-item test4 | get-property columns -index 1 | equals "Q7Project2/folder1" | verify-true
get-item test6 | get-property columns -index 0 | equals test6 | verify-true
get-item test6 | get-property columns -index 1 | equals "Q7Project2/folder1" | verify-true
get-item test11 | get-property columns -index 0 | equals test11 | verify-true
get-item test11 | get-property columns -index 1 | equals "Q7Project2/folder2" | verify-true
get-item test22 | get-property columns -index 0 | equals test22 | verify-true
get-item test22 | get-property columns -index 1 | equals "Q7Project2/folder2" | verify-true
get-item test1 | get-property columns -index 0 | equals test1 | verify-true
get-item test1 | get-property columns -index 1 | equals "Q7Project2/" | verify-true
get-item test5 | get-property columns -index 0 | equals test5 | verify-true
get-item test5 | get-property columns -index 1 | equals "Q7Project2/" | verify-true
}
}
get-window "Run Configurations" | get-button Run | click
wait 100
get-view "Execution View" | get-tree | get-property itemCount | equals 6 | verify-true
with [get-view "Test Explorer" | get-tree] {
get-item ProjectWithTestSuites | get-property caption | equals ProjectWithTestSuites | verify-true
get-item ProjectWithTestSuites | get-property childCount | equals 5 | verify-true
get-item "ProjectWithTestSuites/Q7Project2 \\(1\\).launch" | get-property caption | equals "Q7Project2 (1).launch"
| verify-true
}
get-menu "Run/Run Configurations..." | click
get-window "Run Configurations" | get-tree | select "RCPTT Test Suite/Test Suite" | get-menu Duplicate | click
with [get-window "Run Configurations"] {
with [get-tree] {
get-item "RCPTT Test Suite" | get-property childCount | equals 5 | verify-true
get-item "RCPTT Test Suite/Test Suite" | get-property caption | equals "Test Suite" | verify-true
get-item "RCPTT Test Suite/Test Suite \\(1\\)" | get-property caption | equals "Test Suite (1)" | verify-true
}
get-editbox -after [get-label "Name:"] | get-property value | equals "Test Suite (1)" | verify-true
get-table | get-property itemCount | equals 7 | verify-true
}
with [get-window "Run Configurations"] {
get-table | select testB
get-button Remove | click
get-table | select testA
get-button Remove | click
get-table | select test22
get-button Remove | click
get-button Apply | click
}
get-window "Run Configurations" | get-table | get-property itemCount | equals 4 | verify-true
get-window "Run Configurations" | get-button Run | click
wait 100
get-view "Execution View" | get-tree | get-property itemCount | equals 4 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--