blob: 5381c5d3eae0b8624e7e5394b0fa40ebc59e4f54 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_LhMUsNH1EeCvZZdPZOPlnw
Element-Name: GenerateSecondPomFileInProject
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _WXXeIK42EeKG-dRk9kbnJA
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
Tags: Project, Q7Explorer, GeneratePom
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Copyright (c) 2009, 2014 Xored Software Inc and others.
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:
Xored Software Inc - initial creation and/or initial documentation
--------------------------------------------------------------------------------
TEST STEPS:
1. Generate pom.xml file in Q7 project
2. Try generate pom.xml again
3. Make sure that error message is displayed and file is not re-generated
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Test Explorer" | get-tree | select "p1/scenario1" | get-menu "Q7/Generate pom.xml" | click
get-view "Test Explorer" | get-tree | get-item "p1/pom.xml" | get-property index | equals 5 | verify-true
get-view "Test Explorer" | get-tree | select "p1/pom.xml" | double-click
with [get-editor "pom.xml"] {
with [get-text-viewer] {
set-caret-pos 1 1
key-type Enter
key-type Up
type-text "test_second_generation_pomFile"
key-type "M1+s"
}
close
}
with [get-view "Test Explorer"] {
click
get-tree | select "p1/group1" | get-menu "Q7/Generate pom.xml" | click
}
get-window "Error generating POM file" | get-label "pom.xml already exists in project \'p1\'" | get-property caption
| equals "pom.xml already exists in project \'p1\'" | verify-true
get-window "Error generating POM file" | get-button OK | click
get-view "Test Explorer" | get-tree | select "p1/pom.xml" | double-click
get-editor "pom.xml" | get-editbox | get-property text | contains "test_second_generation_pomFile" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--