blob: 7afd5b52412100d03fb84db2fcb0972a7c49f2f0 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_n1a-kfriEeCQa9Xqo-1T3A
Element-Name: ImportedContextFromFileEqualsExported
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _aZp10PsKEeCQa9Xqo-1T3A
Q7-Runtime-Version: 1.5.0.qualifier
Save-Time: 6/14/14 2:11 PM
Tags: ImportExport, File
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. Export a test case to a file;
2. Import this test case;
3. Check that imported contexts equals exported contexts.
------=_.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 "Q7Project/TC1" | get-menu "Export/Test Portable Format" | click
with [get-window "Export"] {
get-button "Export to File" | click
set-dialog-result File "platform:/resource/q.test"
get-button "Browse..." | click
get-button Finish | click
}
get-view "Test Explorer" | get-tree | select Q7Project3 | get-menu "Import/Test Portable Format" | click
with [get-window "Import"] {
get-button "Import from File" | click
set-dialog-result File "platform:/resource/q.test"
get-button "Browse..." -index 1 | click
get-button Finish | click
}
get-view "Test Explorer" | get-tree | select "Q7Project3/EclContext" | double-click -nowait
get-editor EclContext | get-section Description | click -nowait
with [get-editor EclContext] {
get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true
get-section Description | get-editbox | get-property text | equals contextDescription | verify-true
get-section Script | get-editbox | get-property text | equals contextScript | verify-true
}
get-view "Test Explorer" | get-tree | select "Q7Project3/DebugContext" | double-click -nowait
get-editor DebugContext | get-section Description | click -nowait
get-view "Test Explorer" | get-tree | select "Q7Project3/WbContext" | double-click -nowait
get-editor WbContext | get-section Description | click -nowait
with [get-editor WbContext] {
get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true
get-section Description | get-editbox | get-property text | equals ContextDescription | verify-true
}
get-view "Test Explorer" | get-tree | select "Q7Project3/GroupContext" | double-click -nowait
get-editor GroupContext | get-section Description | click -nowait
with [get-editor GroupContext] {
get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true
get-section Description | get-editbox | get-property text | equals contextDescription | verify-true
get-section Contexts | get-table | get-property itemCount | equals 5 | verify-true
}
get-view "Test Explorer" | get-tree | select "Q7Project3/WsContext" | double-click -nowait
get-editor WsContext | get-section Description | click -nowait
with [get-editor WsContext] {
get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true
get-section Description | get-editbox | get-property text | equals contextDescription | verify-true
get-section Workspace | get-tree | get-property itemCount | equals 1 | verify-true
get-section Description | get-editbox | get-property text | equals contextDescription | verify-true
get-section Workspace | get-tree | get-item project1 | get-property caption | equals project1 | verify-true
}
get-view "Test Explorer" | get-tree | select "Q7Project3/PrefContext" | double-click -nowait
get-editor PrefContext | get-section Description | click -nowait
with [get-editor PrefContext] {
get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true
get-section Description | get-editbox | get-property text | equals contextDescription | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--