blob: a932a042cc93c1b5ae4232090e15995f5d1ab6ae [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_tlWZcGphEeCzId1Gnkds9A
Element-Name: CreateTestAndCreateFolder
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _PTqswMoeEeCVO9X7TqWdlg
Q7-Runtime-Version: 1.5.0.qualifier
Save-Time: 6/15/14 4:08 PM
Tags: TestCase, Folder, Create
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
--------------------------------------------------------------------------------
1. Select project
2. Open "New Test Case" window
3. Press on "Browse" button
4. Create folder in q7project
5. Create new test case in this folder
6. Make sure that test case is created in folder, is displayed in Q7 Exlorer
------=_.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 TestQ7Prj | get-menu "New/Other..." | click
with [get-window New] {
get-tree | select "RCP Testing Tool/Test Case"
get-button "Next >" | click
}
get-window "New Test Case" | get-button "Browse..." | click
get-window "New Test Case" | get-window "Select Location" | get-tree | get-property itemCount | equals 1 | verify-true
with [get-window "New Test Case" | get-window "Select Location"] {
get-button "Create new folder" | click
with [get-window "New Folder"] {
get-editbox -after [get-label "Folder name:"] | set-text folder
get-button Finish | click
}
get-tree | select "TestQ7Prj/folder"
get-button OK | click
}
get-window "New Test Case" | get-editbox -after [get-label "Location:"] | get-property value
| equals "/TestQ7Prj/folder" | verify-true
get-window "New Test Case" | get-editbox -after [get-label "Name:"] | set-text scenario
get-window "New Test Case" | get-button Finish | click
with [get-view "Test Explorer" | get-tree] {
get-property itemCount | equals 1 | verify-true
verify-error { get-item "TestQ7Prj/scenario" }
get-item "TestQ7Prj/folder" | get-property caption | equals folder | verify-true
get-item "TestQ7Prj/folder" | get-property childCount | equals 1 | verify-true
get-item "TestQ7Prj/folder/scenario" | get-property caption | equals scenario | verify-true
}
with [get-tab-folder] {
get-property pages -index 0 | equals scenario | verify-true
get-property activePage | equals scenario | verify-true
get-property tabCount | equals 1 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--