TS 61 BPELPrinting

BPEL Printing Test Specification

Author: Victoria Zhukovskaya
Version: 1.1
Last update: 26 October 2007
Introduction: This specification provides a usecases of printing of the BPEL diagram in the Java Studio Enterprise.
Comments:


Contents


Test suite: BPEL Printing

Purpose:
Setup: TravelReservationService project should be created. Multy-view editor should be opened in design mode. Size of Paper is A4.

  1. Check printing menu items
    1. Invoke 'File' menu item from main menu.
    2. Select Source View for bpel file and invoke 'File' menu item from main menu.
    3. Select project node on 'Project' TAB.
    4. Select bpel file on on 'Project' TAB and select Design View for bpel file.
    • EXPECTED RESULT: 'Page Setup...', 'Print...', 'Print to HTML...' menu items are enabled.
  1. Check invocation of 'Print...'
    1. Invoke 'File' -> 'Print...' for Design view of bpel.
    • EXPECTED RESULT: See 'Print Preview' window.
    1. Press 'Close' button.
    • EXPECTED RESULT: 'Print Preview' window is closed.
  1. Check scroll buttons for 'Print Preview' window
    1. Invoke 'File' -> 'Print...' for Design view of bpel.
    • EXPECTED RESULT: See 'Print Preview' window. 'First Page' and 'Previous Page' buttons are disabled. 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value '1 of N'. Fist page is visible on view.
    1. The number of pages should be great then 3. For correction of pages number press 'Options', enter the 200% zoom f.e and press OK.
    • EXPECTED RESULT: The number of pages should be great then 3.
    1. Press 'Next Page' button.
    • EXPECTED RESULT: 'First Page','Previous Page', 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value '2 of N'. Second page is visible on view.
    1. Press 'Last Page' button.
    • EXPECTED RESULT: 'First Page' and 'Previous Page' buttons are enabled. 'Next Page' and 'Last Page' buttons are disabled. 'Page Number' text field has value 'N of N'. Last page is visible on view.
    1. Press 'Previous Page ' button.
    • EXPECTED RESULT: 'First Page','Previous Page', 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value 'N-1 of N'. Third page is visible on view.
    1. Enter value '1 of N' to 'Page Number' text field. Press 'Enter'. N is the number of pages.
    • EXPECTED RESULT: 'First Page' and 'Previous Page' buttons are disabled. 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value '1 of N'. Fist page is visible on view.
    1. Enter value '2 of N' to 'Page Number' text field. Press 'Enter'. N is the number of pages.
    • EXPECTED RESULT: 'First Page','Previous Page', 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value '2 of N'. Second page is visible on view.
    1. Enter value '***' to 'Page Number' text field. Press 'Enter'.
    • EXPECTED RESULT: 'First Page','Previous Page', 'Next Page' and 'Last Page' buttons are enabled. 'Page Number' text field has value '2 of N'. Second page is visible on view. (There should be warning window.)
    1. Press 'Close' button.
  1. Check Zoom for 'Print Preview' window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Change Scale' button 3 times. Then set value to 'Fit to Widht'.
    3. Select '25 %' value in 'Preview Zoom' combobox.
    4. Select '100 %' value in 'Preview Zoom' combobox.
    5. Press 'Zoom In' button.
    6. Press 'Zoom Out' button.
    7. Enter '25' in 'Preview Zoom' combobox.
    8. Enter 'aaa' in 'Preview Zoom' combobox.
    9. Press 'Change Scale' button. Press 'Show Multiple Pages' button.
    10. Enter '400' in 'Preview Zoom' combobox.
    11. Press 'Change Scale' button. Press 'Show Multiple Pages' button.
    12. Press 'Close' button.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: The page will changwe scale to - Fit to Widht, Fit toHeight, Show All pages.
    • EXPECTED RESULT: Preview zoom scale is changed. It will be smaller then previous scale.
    • EXPECTED RESULT: Preview zoom scale is changed. It will be bigger then previous scale.
    • EXPECTED RESULT: Preview zoom scale is changed. It will be bigger then previous scale.
    • EXPECTED RESULT: Preview zoom scale is changed. It will be smaller then previous scale.
    • EXPECTED RESULT: 'Preview Zoom' combobox has value '25%'. Preview zoom scale is changed for pages.
    • EXPECTED RESULT: 'Preview Zoom' combobox has ald value '25%'.
    • EXPECTED RESULT: Only one page is visible. There is no scroll bars.
    • EXPECTED RESULT: Scroll bars scroll only one active page.
    • EXPECTED RESULT: Scroll bars scroll all pages.
  1. Check Page Setup window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Page Setup' button on 'Print Preview' window.
    3. Change Orientation to Landscape. Press Ok.
    4. Change Orientation to Portrait. Press Ok.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: See 'Page Setup' window.
    • EXPECTED RESULT: Pages have Landscape orientation.
    • EXPECTED RESULT: Pages have Portrait orientation.
  1. Check Print Options for 'Print Options' window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Options' button on 'Print Preview' window.
    3. Uncheck 'Print Border' chackbox. Press Ok.
    4. Press 'Options' button on 'Print Preview' window. Uncheck 'Print Border' chackbox. Press 'Color' button. Select 'AWT Palette' tab on 'Choose Color' window and select 'red'. Press Ok. Press Ok.
    5. Press 'Options' button on 'Print Preview' window. Press 'Page Setup...' button. Select 'Landscape' orientation on 'Page Setup' window. Press 'Ok' button. Press 'Ok' button.
    6. Press 'Print' button.
    7. Press 'Options' button on 'Print Preview' window. Press 'Page Setup...' button. Select 'Portrait' orientation 'Page Setup' window. Press 'Ok' button. Press 'Ok' button.
    8. Press 'Print' button.
    9. Press 'Close' button.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: See 'Print Options' window.
    • EXPECTED RESULT: Pages have not borders.
    • EXPECTED RESULT: Pages have red borders.
    • EXPECTED RESULT: See on Preview - orientation of paper is changed to 'Landscape'.
    • EXPECTED RESULT: The diagram should be printed. Orientation of paper is 'Landscape'.
    • EXPECTED RESULT: See on Preview - orientation of paper is changed to 'Portrait'.
    • EXPECTED RESULT: The diagram should be printed. Orientation of paper is 'Portrait'.
  1. Check Header and Footer options for 'Print Preview...' window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Options' button on 'Print Preview' window.
    3. Uncheck 'Print Header' and 'Print Footer'.
    4. Press Ok.
    5. Press 'Options' button on 'Print Preview' window. Check 'Print Header' and 'Print Footer'. Clear all Header and Footer Pattern editboxes. Press Ok.
    6. Press 'Options' button on 'Print Preview' window. Select Header Pattern text field Footer 'Left'. Press 'The name of area' button.
    7. Select Header Pattern text field Footer 'Center'. Press 'The number of page' button.
    8. Select Header Pattern text field Footer 'Right'. Press 'The last date of modification' button.
    9. Press Ok.
    10. Press 'Options' button on 'Print Preview' window. Select Footer Pattern text field Footer 'Left'. Press 'The last time of modification' button.
    11. Select Header Pattern text field Footer'Center'. Press 'Date of printing' button.
    12. Select Header Pattern text field Footer'Right'. Press 'Time of printing' button.
    13. Press Ok.
    14. Press 'Options' button on 'Print Preview' window. Press 'Color' button for Header and select 'AWT Palette' tab on 'Choose Color' window and select 'red' then press Ok. Press 'Color' button for Footer and select 'AWT Palette' tab on 'Choose Color' window and select 'blue' then press Ok. Press Ok.
    15. Press 'Options' button on 'Print Preview' window. Press 'Font' button for Header and select ' and select 'Bold' on 'Choose Font window then press Ok. Press 'Font' button for Footer and select 'Italic' on 'Choose Font' window then press Ok. Press Ok.
    16. Press 'Print' button.
    17. Press 'Close' button.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: See 'Print Options' window. 'Print Header' and 'Print Footer' checkboxes should be checked. Header Pattern text field 'Center' has value - %NAME%. Footer Pattern text field 'Left' has value - %PAGE%. Footer Pattern text field 'Right' has value - %MODIFIED_DATE%. Header and Footer Pattern buttons are disabled.
    • EXPECTED RESULT: Header and Footer Pattern buttons and editbboxes are disabled.
    • EXPECTED RESULT: Pages have not Header and Footer.
    • EXPECTED RESULT: Pages have not Header and Footer.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Header Pattern text field 'Left' has value - %NAME%.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Header Pattern text field 'Center' has value - %PAGE%.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Header Pattern text field 'Right' has value - %MODIFIED_DATE%.
    • EXPECTED RESULT: Pages have Header with name of area, page numbers and ast date of modification.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Footer Pattern text field 'Left' has value - %MODIFIED_TIME%.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Footer Pattern text field 'Center' has value - %PRINTED_DATE%.
    • EXPECTED RESULT: Header and Footer Pattern buttons are enabled. Footer Pattern text field 'Right' has value - %PRINTED_TIME%.
    • EXPECTED RESULT: Pages have Header with name of area, page numbers and ast date of modification. Pages have Footer with The last time of modification and date and time of printing.
    • EXPECTED RESULT: Pages have red text for Header and blue text for Footer.
    • EXPECTED RESULT: Pages have red text for Header, font is Bold; and blue text for Footer, font is Italic.
    • EXPECTED RESULT: All pages should be printed. Pages have Header with name of area, page numbers and ast date of modification. Pages have Footer with The last time of modification and date and time of printing. Font for Header should be Bold. Font for Footer should be Italic.
  1. Check Zoom options for 'Print Options' window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Options' button on 'Print Preview' window.
    3. Select 'Fit to Page' from 'Zoom' combobox. Press Ok.
    4. Press 'Print' button.
    5. Press 'Options' button on 'Print Preview' window.
    6. Enter '100' to 'Zoom' combobox press enter.
    7. Press Cancel.
    8. Press 'Options' button on 'Print Preview' window.
    9. Enter '100' to 'Zoom' combobox press enter.
    10. Press 'Aply' button. Press 'Cancel' button.
    11. Press 'Print' button.
    12. Press 'Options' button on 'Print Preview' window.
    13. Enter 'aaa' to 'Zoom' combobox press enter.
    14. Press Ok. Press 'Close' button.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: See 'Print Options' window. Zoom should have value '100%'.
    • EXPECTED RESULT: The Diagram should be fitted on one page.
    • EXPECTED RESULT: One page should be printed.
    • EXPECTED RESULT: See 'Print Options' window. Zoom should have value 'Fit to Page'.
    • EXPECTED RESULT: Zoom should have value '100 %'.
    • EXPECTED RESULT: The Diagram should be fitted on one page.
    • EXPECTED RESULT: Zoom should have value '100 %'.
    • EXPECTED RESULT: Zoom should have value 'Fit to Page'.
    • EXPECTED RESULT: There are 6 Page count.
    • EXPECTED RESULT: 6 pages should be printed.
    • EXPECTED RESULT: Zoom should have value '100 %'.
    • EXPECTED RESULT: Zoom should have value '100 %'.
  1. Check Zoom options with help Fit to Width/Height in 'Print Options' window
    1. Press 'Print Preview...' button on Design view.
    2. Press 'Options' button on 'Print Preview' window.
    3. Select '75%' from 'Zoom' combobox. Press 'Apply' button.
    4. Select 'Fit to Width' radio button. Press 'Apply' button.
    5. Select 'Fit to Height' radio button. Press 'Apply' button.
    6. Press 'Close' button.
    • EXPECTED RESULT: See 'Print Preview' window.
    • EXPECTED RESULT: See 'Print Options' window.
    • EXPECTED RESULT: Preview zoom scale is changed. Dialog is not closed.
    • EXPECTED RESULT: Preview zoom scale is changed. Dialog is not closed.
    • EXPECTED RESULT: Preview zoom scale is changed. Dialog is not closed. (Diagramm fitted on one page).


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo