| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_bbpo0a2vEeCqpoE1MJ1fFQ,_2rRwEa6lEeCKALiC9hLN7A |
| Element-Name: TakeScreenshot |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _Fd0B8IGSEeKRQ-O0Mh9igg |
| Q7-Runtime-Version: 1.5.0.201406131029 |
| Save-Time: 6/13/14 7:04 PM |
| Tags: selfAUT, q7commands |
| 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. Create q7-test with "take-screenshot" command |
| 2. Run this q7-test |
| 3. Make sure that test is passed and screenshot is saved in test-report |
| ------=_.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/test" | double-click |
| with [get-editor test] { |
| with [get-section Script | get-text-viewer] { |
| type-text "take-s" |
| show-content-assist |
| type-text creenshot |
| key-type Enter |
| key-type "M1+s" |
| } |
| get-button Replay | click |
| } |
| get-view "Execution View" | get-button "Details..." | click |
| with [get-window "Execution details" | get-tab-folder] { |
| get-property tabCount | equals 2 | verify-true |
| get-property activePage | equals Screenshots | verify-true |
| } |
| get-window "Execution details" | get-button OK | click |
| with [get-editor test] { |
| with [get-section Script | get-text-viewer] { |
| set-caret-pos 2 1 |
| type-text "take-screenshot" |
| key-type Enter |
| key-type "M1+s" |
| } |
| get-button Replay | click |
| } |
| with [get-view "Execution View"] { |
| get-label "1/1" | get-property caption | equals "1/1" | verify-true |
| get-label 0 | get-property caption | equals 0 | verify-true |
| } |
| get-view "Execution View" | get-button "Details..." | click |
| with [get-window "Execution details"] { |
| with [get-tab-folder] { |
| get-property activePage | equals Screenshots | verify-true |
| get-property tabCount | equals 2 | verify-true |
| } |
| get-label "Screenshot 1 from 2" | get-property caption | equals "Screenshot 1 from 2" | verify-true |
| } |
| get-window "Execution details" | get-button Next | click |
| with [get-window "Execution details"] { |
| get-label "Screenshot 2 from 2" | get-property caption | equals "Screenshot 2 from 2" | verify-true |
| get-button Next | get-property enablement | equals false | verify-true |
| get-button Previous | get-property enablement | equals true | verify-true |
| } |
| get-window "Execution details" | get-button OK | click |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |