blob: 6960f3bf77a85da8f593052dc817a4cea5fd45f0 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _LipjoO9FEeWazOws8qE-Nw,_j6aQcPA8EeWlEbYJ7IoFCQ,_NN2OQO9SEeW7SP0a5rPzzg
Element-Name: Query Explorer - Magic Green Button - Load ResourceSet
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Zk7IQPDJEeWxTPL9mFtYmQ
Runtime-Version: 2.0.2.201511100828
Save-Time: 4/11/16 2:39 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Load ResourceSet: You can load the whole ResourceSet which is being edited by the editor (this is the default when pressing the green button)
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
/*******************************************************************************
* Copyright (c) 2010-2016, Tamas Borbas, IncQuery Labs Ltd.
* 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:
* Tamas Borbas - Testing VIATRA GUI
*******************************************************************************/
get-view "Project Explorer" | get-tree
| select "org.eclipse.viatra.examples.cps.instances/demo.cyberphysicalsystem"
| double-click
get-view "Query Explorer" | get-button "Load model" | click -arrow
get-menu "Load ResourceSet" | click
with [get-view "Query Explorer" | get-tree -index 1] {
get-item "\\[platform:\\/resource\\/org.eclipse.viatra.examples.cps.instances\\/demo.cyberphysicalsystem\\]\\[org.eclipse.viatra.examples.cps.cyberPhysicalSystem.presentation.CyberPhysicalSystemEditorID\\]"
| get-property caption
| equals "[platform:/resource/org.eclipse.viatra.examples.cps.instances/demo.cyberphysicalsystem][org.eclipse.viatra.examples.cps.cyberPhysicalSystem.presentation.CyberPhysicalSystemEditorID]"
| verify-true
get-item "\\[platform:\\/resource\\/org.eclipse.viatra.examples.cps.instances\\/demo.cyberphysicalsystem\\]\\[org.eclipse.viatra.examples.cps.cyberPhysicalSystem.presentation.CyberPhysicalSystemEditorID\\]"
| get-property childCount | equals 0 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--