| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_n1a-kfriEeCQa9Xqo-1T3A |
| Element-Name: ImportedContextsEqualsExported |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _7UPMEPsAEeCQa9Xqo-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 clipboard; |
| 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 |
| |
| with [get-view "Test Explorer" | get-tree] { |
| select "Q7Project/TC1" | double-click -nowait |
| select "Q7Project2/Contexts/WsContext" | double-click -nowait |
| select "Q7Project/TC1" | get-menu "Export/Test Portable Format" | click |
| } |
| get-window "Export" | get-button Finish | click |
| get-view "Test Explorer" | get-tree | select Q7Project3 | get-menu "Import/Test Portable Format" | click |
| get-window -from "Window.createShell()" | get-button Finish | click |
| get-view "Test Explorer" | get-tree | select "Q7Project3/WsContext" | double-click -nowait |
| with [get-editor WsContext] { |
| get-section Workspace | get-tree | get-item project1 | get-property caption | equals project1 | verify-true |
| get-editbox -after [get-label "Tags:"] | get-property text | equals contextTag | verify-true |
| } |
| get-editor WsContext | get-section Description | click -nowait |
| get-editor WsContext | get-section Description | get-editbox | get-property text | equals contextDescription |
| | verify-true |
| 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 |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| select "Q7Project3/DebugContext" | double-click -nowait |
| select "Q7Project2/Contexts/DebugContext" | double-click -nowait |
| 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 |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| select "Q7Project3/WsContext" | double-click -nowait |
| 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-- |