blob: 56a2e935292cc598ad3104746a753ca8290fe636 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _LipjoO9FEeWazOws8qE-Nw,_xLFOcO9OEeW7SP0a5rPzzg,_NN2OQO9SEeW7SP0a5rPzzg,_UBBLMO9SEeW7SP0a5rPzzg,_RYkiQO9SEeW7SP0a5rPzzg
Element-Name: Rete Visualizer - Create rete
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _e6LfkO9yEeW7SP0a5rPzzg
Runtime-Version: 2.1.0.201606221726
Save-Time: 4/6/17 5:17 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
*******************************************************************************/
/**
* XXX For some reason, RCPTT does not consider the Zest canvas existing before
* it had any nodes. Workaround: Initialize view with some content than clear it up.
*/
get-view "Rete Visualizer" | click
get-view "Query Explorer" | get-tree -index 1
| select "\[platform:\\/resource\\/org.eclipse.viatra.examples.uml.instances\\/empty-classes.uml\]\[.*\]/uml.emptyclass.superClass.*$"
get-view "Rete Visualizer" | get-button "Clear Graph" | click
get-view "Rete Visualizer" | get-canvas | get-property "getNodes().size()" | equals 0 | verify-true
get-view "Query Explorer" | get-tree -index 1
| select "\[platform:\\/resource\\/org.eclipse.viatra.examples.uml.instances\\/empty-classes.uml\]\[.*\]/uml.emptyclass.superClass.*$"
get-view "Rete Visualizer" | get-canvas | get-property "getItem().getNodes().size()" | equals 9 | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--