| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _CXBZkDqaEeSXcJNyN3x-Zg,_U616EDqaEeSXcJNyN3x-Zg,_ZQYygK2sEeCqBbDEJWufvQ |
| Element-Name: Launch Test From Report Viewer |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=443699 |
| Id: _hzrDITqZEeSXcJNyN3x-Zg |
| Runtime-Version: 1.5.2.201408180747 |
| Save-Time: 9/13/14 12:07 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Launch tests from report viewer |
| |
| In report viewer: |
| 1. Run different tests by selecting their results in tree and clicking "Run Selected". Ensure corresponding test is run. |
| 2. Run failed tests by clicking "Run Failed...". Ensure that all failed tests are ran and no successful tests are ran. |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| //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 |
| //-------------------------------------------------------------------------------- |
| |
| get-view "Execution View" | get-button "Execution History..." | click -arrow |
| try { get-menu "Clear Terminated" | click } -catch {} |
| |
| proc "wait-test-complete" { |
| try { |
| get-view "Execution View" | get-label "1/1" -after [get-label "Runs:"] |
| } -times 100 -delay 100 -catch {} |
| } |
| |
| with [get-editor "q7project_2014_09_12" | get-section "Test cases"] { |
| get-table | select simpleTest1 |
| get-button "Run Selected" | click |
| } |
| |
| wait-test-complete |
| |
| get-view "Execution View" | get-tree | get-item "simpleTest1 \\([\\d\\.]+ s\\)" | get-property "image.path" |
| | equals "org.eclipse.rcptt.ui/icons/launching/testok.gif" | verify-true |
| |
| with [get-editor "q7project_2014_09_12" | get-section "Test cases"] { |
| get-table | select simpleTest3 |
| get-button "Run Selected" | click |
| } |
| |
| wait-test-complete |
| |
| get-view "Execution View" | get-tree | get-item "simpleTest3 \\([\\d\\.]+ s\\)" | get-property "image.path" |
| | equals "org.eclipse.rcptt.ui/icons/launching/testok.gif" | verify-true |
| |
| with [get-editor "q7project_2014_09_12" | get-section "Test cases"] { |
| get-table | select simpleTest1 |
| get-button "Run Failed Test Cases" | click |
| } |
| |
| wait-test-complete |
| |
| get-view "Execution View" | get-tree | get-item "simpleTest2 \\([\\d\\.]+ s\\)" | get-property "image.path" |
| | equals "org.eclipse.rcptt.ui/icons/launching/testerr.gif" | verify-true |
| get-view "Execution View" | get-tree | get-property itemCount | equals 1 | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |