blob: 08642f70361836d7a7be408cfe0e16ef3134e8d0 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_ZQYygK2sEeCqBbDEJWufvQ,_Z-6cEEVwEeGf87sdqO61AA
Element-Name: ExecuteTestSuiteAtStopOnFirstFailure
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Cf9SsEY-EeGf87sdqO61AA
Runtime-Version: 2.4.1.201903141547
Save-Time: 3/18/19, 5:10 PM
Tags: selfAUT, ECL_IDE_module, Runtime, TestSuite
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. Press "Stop on First Failure" button in Execution View
2. Run test suite which is contained failed test
3. Test suite is run
4. At the first failure running of tests is stopped
------=_.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/TestSuite" | double-click -nowait
get-editor TestSuite | get-section "Test Cases" | get-table | select "CreateJavaProject \\(MyProject\\)" | double-click
with [get-editor CreateJavaProject | get-section Script | get-text-viewer] {
set-caret-pos 9 2
// key-type Del
type-text 2
key-type "M1+s"
}
get-toolbar -index 11 | key-type "M1+s"
get-editor TestSuite | click
get-view "Execution View" | get-button "Stop on First Failure" | click
exec-with-options -disableJobWaiting -command {
get-editor TestSuite | get-button Execute | click
try -times 60 -delay 500 -command {
with [get-view "Execution View"] {
get-label "1/3" -after [get-label "Runs:"]
get-label "1" -after [get-label "Failures:"]
get-label "2" -after [get-label "Stops:"]
}
}
}
get-view "Execution View" | get-tree | select "TestSuite.*"
with [get-view "Execution View"] {
with [get-tree] {
get-item "TestSuite.*" | get-property caption | equals "TestSuite.*" | verify-true
get-item "TestSuite.*" | get-property childCount | equals 3 | verify-true
}
get-editbox -after [get-label "Message:"] | get-property text | equals "Stopped after previous failure\n"
+ " Scriptlet G2etView not found\n"
+ "\tat g2et-view (/MyProject/CreateJavaProject.test:9)" | verify-true
}
get-view "Execution View" | get-tree | select "TestSuite.*/TestWithContexts.*"
with [get-view "Execution View"] {
get-tree | get-item "TestSuite.*/TestWithContexts.*" | get-property caption
| equals "TestWithContexts.*" | verify-true
get-editbox -after [get-label "Message:"] | get-property text | equals "Stopped after previous failure\n"
+ " Scriptlet G2etView not found\n"
+ "\tat g2et-view (/MyProject/CreateJavaProject.test:9)" | verify-true
}
get-view "Execution View" | get-tree | select "TestSuite.*/CreateJavaProject.*"
with [get-view "Execution View"] {
get-tree | get-item "TestSuite.*/CreateJavaProject.*" | get-property caption
| equals "CreateJavaProject.*" | verify-true
get-editbox -after [get-label "Message:"] | get-property text | equals "Scriptlet G2etView not found\n"
+ "\tat g2et-view (/MyProject/CreateJavaProject.test:9)" | verify-true
}
get-view "Execution View" | get-tree | select "TestSuite.*/WorkspaceIsEmpty.*"
with [get-view "Execution View"] {
get-tree | get-item "TestSuite.*/WorkspaceIsEmpty.*" | get-property caption
| equals "WorkspaceIsEmpty.*" | verify-true
get-editbox -after [get-label "Message:"] | get-property text | is-empty | verify-false
}
get-view "Execution View" | get-tree | select "TestSuite.*"
/*
get-view "Execution View" | get-editbox -after [get-label "Message:"] | get-property text
| equals "Execution failed on line 6 at column 78 (TestSuite.suite:6)\n"
+ "Caused by:\n"
+ "\tAssertion of itemCount failed: expected:<2> but was:<1>." | verify-true
*/
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--