| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _LipjoO9FEeWazOws8qE-Nw,_jJW24PBQEeWlEbYJ7IoFCQ |
| Element-Name: Create Query Generator Model |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _img6cPBOEeWlEbYJ7IoFCQ |
| Runtime-Version: 2.0.2.201511100828 |
| Save-Time: 4/13/16 8:41 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test case creates a .vqgen file in "org.eclipse.viatra.examples.cps.testqueries" |
| |
| Asserts: |
| * "generator.vqgen" is created in "org.eclipse.viatra.examples.cps.testqueries" |
| * MANIFEST.MF Required plugins contains "cps" |
| ------=_.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 |
| *******************************************************************************/ |
| |
| // Create Query Project |
| get-menu "File/New/Other..." | click |
| with [get-window New] { |
| get-tree | select "VIATRA/Query Project" |
| get-button "Next >" | click |
| } |
| with [get-window -class WizardDialog] { |
| get-editbox -after [get-label "Project name:"] | set-text "org.eclipse.viatra.examples.cps.testqueries" |
| get-button Finish | click |
| } |
| get-view "Project Explorer" | get-tree | select "org.eclipse.viatra.examples.cps.testqueries" | get-menu "New/Other..." |
| | click |
| with [get-window New] { |
| get-tree | select "VIATRA/Query Generator Model" |
| get-button "Next >" | click |
| } |
| with [get-window -class WizardDialog] { |
| get-table | select "org.eclipse.viatra.examples.cps.testqueries" |
| get-button "Next >" | click |
| get-section "Referenced EMF Generator models" | get-button Add | click |
| with [get-window "Select EMF Generator model"] { |
| get-tree | select "org.eclipse.viatra.examples.cps.model/model/model.genmodel" |
| get-button OK | click |
| } |
| get-button Finish | click |
| } |
| get-editor "generator.vqgen" | get-text-viewer | get-property text | equals "genmodel\n" |
| + "\"platform:/resource/org.eclipse.viatra.examples.cps.model/model/model.genmodel\"" | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |