blob: e87391e89cdd609c09b13972acc5884dd8c453a2 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _LipjoO9FEeWazOws8qE-Nw,_j6aQcPA8EeWlEbYJ7IoFCQ,_NN2OQO9SEeW7SP0a5rPzzg,_e2hgwPD1EeW0yqPNDxWanA,_e26iUPD1EeW0yqPNDxWanA
Element-Name: Query Explorer - Result Viewer - Show location (to instance model)
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _s0kPUPD9EeW0yqPNDxWanA
Runtime-Version: 2.0.2.201511100828
Save-Time: 4/11/16 2:39 PM
Testcase-Type: ecl
------=_.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 "Query Explorer" | get-tree -index 1
| select "[platform:\\/resource\\/org.eclipse.viatra.examples.cps.instances\\/demo.cyberphysicalsystem][org.eclipse.viatra.examples.cps.cyberPhysicalSystem.presentation.CyberPhysicalSystemEditorID]/org.eclipse.viatra.examples.cps.queries.finalPattern.*$/The host instance simple.cps.host.SecondHostClass0.inst1 - which has the most hosted applications - has 0 available CPU, 0 available RAM and 0 available HDD"
| get-menu "Show location" | click
with [get-editor "demo.cyberphysicalsystem" | get-tree] {
get-property "selection[0].path[0]"
| equals "platform:/resource/org.eclipse.viatra.examples.cps.instances/demo.cyberphysicalsystem" | verify-true
get-property "selection[0].path[1]" | equals "Cyber Physical System testModel6504822858552" | verify-true
get-property "selection[0].path[2]" | equals "Host Type simple.cps.host.SecondHostClass0" | verify-true
get-property "selection[0].path[3]" | equals "Host Instance simple.cps.host.SecondHostClass0.inst1" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--