blob: e6999da649a97c42aa464fd9b1db4c2371ea6f14 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _byweYBOEEeO4t6fOTB-8xg,_4zI9AWpgEeCzId1Gnkds9A,_ZQYygK2sEeCqBbDEJWufvQ
Element-Name: AddVerificationIntoTestCase
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _KiWwwBOIEeOQfY3M4mNcSA
Runtime-Version: 2.4.3.201905310008
Save-Time: 6/4/19 1:33 PM
Tags: selfAUT, verification
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/TC" | double-click
with [get-editor TC | get-section Verifications] {
click
get-button "Add..." | click
}
with [get-window "Select verification"] {
get-editbox -after [get-label "Enter verification name prefix or pattern (*, ?):"] | set-focus
get-table | select "TextVerification \\(MyProject\\)" "TimeVerification \\(MyProject\\)"
get-button OK | click
}
with [get-editor TC | get-section Verifications | get-table] {
get-property itemCount | equals 2 | verify-true
get-item "TextVerification \\(MyProject\\)" | get-property caption | equals "TextVerification (MyProject)"
| verify-true
get-item "TimeVerification \\(MyProject\\)" | get-property caption | equals "TimeVerification (MyProject)"
| verify-true
}
get-editor TC | get-button Replay | click
get-window "Save Resource" | get-button Save | click
set-q7-option jobTreatAsSleepingTimeout 60000
with [get-view "Execution View"] {
get-editbox -after [get-label "Message:"] | get-property text | equals "Widget text verification \'TextVerification'\ failed:\n"
+ "Expected text is \"\", but it was \"TC\"." | verify-true
with [get-tree] {
get-item "TC.*" | get-property childCount | equals 7 | verify-true
get-item "TC.*/TimeVerification Start.*" | get-property caption
| equals "TimeVerification Start.*" | verify-true
get-item "TC.*/WsCntx.*" | get-property caption | equals "WsCntx.*"
| verify-true
get-item "TC.*/WbCntx.*" | get-property caption | equals "WbCntx.*"
| verify-true
get-item "TC.*/TimeVerification Run.*" | get-property caption
| equals "TimeVerification Run.*" | verify-true
get-item "TC.*/TC.*" | get-property caption | equals "TC.*" | verify-true
get-item "TC.*/TextVerification Finish.*" | get-property caption
| equals "TextVerification Finish.*" | verify-true
get-item "TC .*/TimeVerification Finish.*" | get-property caption | equals "TimeVerification Finish"
| verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--