blob: 1057cd0d3d3c331ae937b4b9413d329e69df7882 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_ZQYygK2sEeCqBbDEJWufvQ,_-03SMOpBEeCjiJ-04yesNg
Element-Name: RemoveTestsFromTestSuite
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _UToh4Oo3EeCjiJ-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. Remove several test-case
3. Make sure that test cases are removed from test-suite
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-table | select test6 test1
get-button Remove | click
}
with [get-window "Run Configurations" | get-table] {
get-property itemCount | equals 4 | verify-true
get-item test4 | get-property caption | equals test4 | verify-true
get-item test11 | get-property caption | equals test11 | verify-true
get-item test22 | get-property caption | equals test22 | verify-true
get-item test5 | get-property caption | equals test5 | verify-true
}
with [get-window "Run Configurations"] {
get-table | select test22
get-button Remove | click
}
get-window "Run Configurations" | get-table | get-property itemCount | equals 3 | verify-true
get-window "Run Configurations" | get-button Revert | click
with [get-window "Run Configurations" | get-table] {
get-property itemCount | equals 6 | verify-true
get-item test4 | get-property caption | equals test4 | verify-true
get-item test6 | get-property caption | equals test6 | verify-true
get-item test11 | get-property caption | equals test11 | verify-true
get-item test22 | get-property caption | equals test22 | verify-true
get-item test1 | get-property caption | equals test1 | verify-true
get-item test5 | get-property caption | equals test5 | verify-true
}
with [get-window "Run Configurations"] {
get-table | select test4 test22 test5
get-button Remove | click
}
get-window "Run Configurations" | get-table | get-property itemCount | equals 3 | verify-true
with [get-window "Run Configurations"] {
get-button Apply | click
get-button Run | click
}
wait 100
get-view "Execution View" | get-tree | get-property itemCount | equals 3 | verify-true
with [get-view "Execution View" | get-tree] {
get-item "test6.*" | get-property caption | equals "test6.*" | verify-true
get-item "test11.*" | get-property caption | equals "test11.*" | verify-true
get-item "test1.*" | get-property caption | equals "test1.*" | verify-true
}
get-menu "Run/Run Configurations..." | click
get-window "Run Configurations" | get-tree | select "RCPTT Test Suite/Test Suite"
get-window "Run Configurations" | get-table | get-property itemCount | equals 7 | verify-true
with [get-window "Run Configurations"] {
get-button Remove | get-property enablement | equals false | verify-true
get-button "Remove All" | get-property enablement | equals true | verify-true
}
with [get-window "Run Configurations"] {
get-button "Remove All" | click
get-button Revert | click
}
get-window "Run Configurations" | get-table | get-property itemCount | equals 7 | verify-true
get-window "Run Configurations" | get-button "Remove All" | click
with [get-window "Run Configurations"] {
with [get-tree] {
get-item "RCPTT Test Suite" | get-property childCount | equals 3 | 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/Test Suite" | get-property caption | equals "Test Suite" | verify-true
}
get-table | get-property itemCount | equals 0 | verify-true
get-editbox -after [get-label "Create, manage, and run configurations"] | get-property value
| equals "Nothing selected" | verify-true
}
with [get-window "Run Configurations"] {
get-button Apply | click
get-button Close | click
}
with [get-view "Test Explorer" | get-tree] {
get-item ProjectWithTestSuites | get-property caption | equals ProjectWithTestSuites | verify-true
get-item "ProjectWithTestSuites/Q7Project.launch" | get-property caption | equals "Q7Project.launch" | verify-true
get-item "ProjectWithTestSuites/Q7Project2.launch" | get-property caption | equals "Q7Project2.launch" | verify-true
get-item "ProjectWithTestSuites/Test Suite.launch" | get-property caption | equals "Test Suite.launch" | verify-true
}
get-menu "Run/Run Configurations..." | click
get-window "Run Configurations" | get-tree | select "RCPTT Test Suite/Test Suite"
get-window "Run Configurations" | get-button Run | get-property enablement | equals false | verify-true
get-window "Run Configurations" | get-button Close | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--