| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _LipjoO9FEeWazOws8qE-Nw,_E-YjgPBEEeWlEbYJ7IoFCQ |
| Element-Name: Create Query Project |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _IagsIPBEEeWlEbYJ7IoFCQ |
| Runtime-Version: 2.0.2.201511100828 |
| Save-Time: 4/13/16 8:42 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| This test case creates an Viatra Query project with name "org.eclipse.viatra.examples.cps.testqueries". |
| |
| Asserts: |
| * caption of "org.eclipse.viatra.examples.cps.testqueries" |
| * "org.eclipse.viatra.examples.cps.testqueries/src" childCount equals 0 |
| * "org.eclipse.viatra.examples.cps.testqueries/src-gen" childCount equals 0 |
| ------=_.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-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 | get-item "org.eclipse.viatra.examples.cps.testqueries" | get-property caption |
| | equals "org.eclipse.viatra.examples.cps.testqueries" | verify-true |
| with [get-view "Project Explorer" | get-tree] { |
| get-item "org.eclipse.viatra.examples.cps.testqueries/src" | get-property childCount | equals 0 | verify-true |
| get-item "org.eclipse.viatra.examples.cps.testqueries/src-gen" | get-property childCount | equals 0 | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |