| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_bD7OYe5zEeCWFp5-_cxtIw |
| Element-Name: ReplaceInScript |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _-dIi8O8IEeCWFp5-_cxtIw |
| Runtime-Version: 1.5.0.201407101239 |
| Save-Time: 8/5/14 7:27 PM |
| Tags: SearchReplace, TestCase |
| 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. Open Q7Search dialog; |
| 2. Select "Script"; |
| 3. Enter containing text, press "Replace" button; |
| 4. Enter replacing text, press "OK"; |
| 4. Make sure that replacement was performed in script ; |
| ------=_.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 "Q7Project1/TestCase1" | double-click -nowait |
| get-button Search | click -arrow |
| get-menu "1 Q7 Search" | click |
| with [get-window Search] { |
| get-group "Search in" | get-button Script | click |
| get-combo -after [get-label "Containing text:"] | set-text key |
| get-button "Replace..." | click |
| with [get-window "Replace Text Matches"] { |
| get-editbox -after [get-label "With:"] | set-text KEY |
| get-button OK | click |
| |
| } |
| } |
| get-editor TestCase1 | get-section Script | get-editbox | get-property value | equals "script_KEY" | verify-true |
| get-tab-folder | get-property "pages[0]" | equals "*TestCase1" | verify-true |
| get-view "Test Explorer" | get-tree | select "Q7Project1/TestCase2" | double-click -nowait |
| get-editor TestCase2 | get-section Script | get-editbox | get-property value | equals "script_KEY" | verify-true |
| get-view "Test Explorer" | get-tree | select "Q7Project2/Folder/TestCase1" | double-click -nowait |
| get-editor TestCase1 | get-section Script | get-editbox | get-property value | equals "script_KEY" | verify-true |
| get-view "Test Explorer" | get-tree | select "Q7Project2/Folder/TestCase2" | double-click -nowait |
| get-editor TestCase2 | get-section Script | get-editbox | get-property value | equals "script_KEY" | verify-true |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |