| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _LipjoO9FEeWazOws8qE-Nw,_NN2OQO9SEeW7SP0a5rPzzg,_Vv6AoPGcEeW7irRH823xbw |
| Element-Name: Testing Framework - Snapshot - Snapshot Editor - Add new child |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _2y3rQPGcEeW7irRH823xbw |
| 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 "Project Explorer" | get-tree | select "org.eclipse.viatra.examples.cps.queries/snapshots/demo.snapshot" |
| | double-click |
| get-editor "demo.snapshot" | get-tree |
| | get-item "platform:\\/resource\\/org.eclipse.viatra.examples.cps.queries\\/snapshots\\/demo.snapshot/Query Snapshot ResourceSet/Match Set Record org.eclipse.viatra.examples.cps.queries.finalPattern" |
| | get-property childCount | equals 1 | verify-true |
| with [get-editor "demo.snapshot" | get-tree] { |
| get-item "platform:\\/resource\\/org.eclipse.viatra.examples.cps.queries\\/snapshots\\/demo.snapshot/Query Snapshot ResourceSet/Match Set Record org.eclipse.viatra.examples.cps.queries.finalPattern" |
| | click |
| select "platform:\\/resource\\/org.eclipse.viatra.examples.cps.queries\\/snapshots\\/demo.snapshot/Query Snapshot ResourceSet/Match Set Record org.eclipse.viatra.examples.cps.queries.finalPattern" |
| | get-menu "New Child/Matches Match Record" | click |
| } |
| get-button "Save (M1+S)" | click |
| get-editor "demo.snapshot" | get-tree |
| | get-item "platform:\\/resource\\/org.eclipse.viatra.examples.cps.queries\\/snapshots\\/demo.snapshot/Query Snapshot ResourceSet/Match Set Record org.eclipse.viatra.examples.cps.queries.finalPattern" |
| | get-property childCount | equals 2 | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |