blob: 39cf956b0d14988fa10dbe8bd10d1da68e5047b8 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _B01ToH0KEeO5CYdzFmGe7Q,_4zI9AWpgEeCzId1Gnkds9A,_ZQYygK2sEeCqBbDEJWufvQ
Element-Name: ErrLogVerification_NEGATIVE Case Denied Entry_Message Pattern
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _23J5kH0TEeO5CYdzFmGe7Q
Runtime-Version: 1.5.0.201407012005
Save-Time: 7/2/14 8:35 AM
Tags: verification/Error Log, 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
--------------------------------------------------------------------------------
------=_.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/ErrorLogVerification" | double-click
with [get-editor ErrorLogVerification | get-section Deny] {
get-button "Add..." | click
with [get-table] {
select ".\\*" -column "Plugin Pattern" | activate-cell-edit -column 4
with [get-editbox] {
set-text "Info Entry"
key-type "M1+s"
}
apply-cell-edit -deactivate
}
}
get-view "Test Explorer" | get-tree | select "MyProject/TestCase" | double-click
get-editor TestCase | get-button Replay | click
get-view "Test Explorer" | get-tree | select "MyProject/ErrorLogVerification" | double-click
with [get-editor ErrorLogVerification | get-section Allow | get-table] {
select "org.eclipse.ui" -column "Plugin Pattern" | get-menu Remove | click
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "MyProject/TestCase" | double-click
get-editor TestCase | get-button Replay | click
get-view "Execution View" | get-editbox -after [get-label "Message:"] | get-property text
| equals "Error log verification \'ErrorLogVerification\' failed:\n"
+ "Log entry\n"
+ "Status INFO: org.eclipse.ui code=0 Info Entry null\n"
+ "is denied by predicate\n"
+ "ERROR, WARNING, INFO, message: Info Entry" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--