blob: 35747407a509ccd3bed31685472786c37f4c2e14 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_vp_JkIHtEeC8fpRZXBpN8g
Element-Name: OpenTestFromToolbar
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _4sy4QM7YEeCw4ppgsBRMGg
Runtime-Version: 1.5.3.201409120955
Save-Time: 9/22/14 10:47 AM
Tags: Toolbar, Dialog
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. Press on "Open Context" button in toolbar
2. Make sure that "Select Test Case" dialog is displayed, this dialog contains all test cases from all available projects
3. Select test case and press "Ok" button
4. Selected test case is opened
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-button "Open Test Case (RCPTT)" | click
get-window "Select Test Case" | get-table | select "scenario1 \\(p1\/scenario1.scenario\\)"
with [get-window "Select Test Case"] {
with [get-table] {
get-property itemCount | equals 3 | verify-true
get-item "scenario1 \\(p1\/scenario1.scenario\\)" | get-property caption | equals "scenario1 (p1/scenario1.scenario)" | verify-true
get-item "scenario2 \\(p2\/scenario2.scenario\\)" | get-property caption | equals "scenario2 (p2/scenario2.scenario)" | verify-true
get-item "scenario3 \\(p3\/scenario3.scenario\\)" | get-property caption | equals "scenario3 (p3/scenario3.scenario)" | verify-true
}
get-editbox -after [get-label "Enter file path to open or select file from the one of the workspace contexts"]
| get-property value | equals "" | verify-true
}
with [get-window "Select Test Case"] {
get-table | select "scenario2 \\(p2\/scenario2.scenario\\)"
get-button OK | click
}
get-editor scenario2
get-button "Open Test Case (RCPTT)" | click
get-window "Select Test Case" | get-table | select "scenario3 \\(p3\/scenario3.scenario\\)" | click -nowait -default
get-editor scenario3 | get-section Contexts | mouse-release 70 23 button1 524288
get-editor scenario2
get-editor scenario3
get-button "Open Test Case (RCPTT)" | click
get-window "Select Test Case" | get-table | select "scenario1 \\(p1\/scenario1.scenario\\)"
get-window "Select Test Case" | get-table | get-property itemCount | equals 3 | verify-true
get-window "Select Test Case" | get-button Cancel | click
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--