Difference between revisions of "PppTestCases"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 139: Line 139:
 
* that the preview shows the correct layout
 
* that the preview shows the correct layout
 
* that the print result is the same like the preview.  
 
* that the print result is the same like the preview.  
 +
 +
== Options page ==
 +
 +
=== Basic view ===
 +
 +
All check boxes are disabled by default
 +
 +
==== Print to file ====
 +
* Check the hot-key “f” for enable/disable print to file
 +
→ When you enable print to file, the “Print” button will change to “Print to File...”
 +
* Create single print jobs for collated output
 +
* Check the hot-key “c” for enable/disable single print jobs<br>Useful for duplex printing with odd pages<br>
 +
Currently doesn't work; See: [http://www.openoffice.org/issues/show_bug.cgi?id=108326 Issue 108326]
 +
 +
==== Print in reverse page order ====
 +
 +
* Check the hot-key “r” for enable/disable the reverse page order
 +
** Enabled: The print starts with the last page
 +
** Disabled: The print starts with the first page
 +
Only this check box effects the preview on this tab page
 +
 +
==== Use only paper tray from printer preferences ====
 +
 +
* Check the hot-key “u” for enable/disable the paper tray preferences<br>Leaves the paper feed control to the printer driver<br>
 +
Currently doesn't work; See: [http://www.openoffice.org/issues/show_bug.cgi?id=108327 Issue 108327]
 +
 +
=== Next level ===
 +
 +
==== Print to file ====
 +
 +
Note: For this test, you should use a Post Script printer (driver) + Post Script viewer
 +
* Open new Writer document
 +
* Type some text
 +
* Call print dialog – TabPage Options
 +
→ All check boxes are disabled by default
 +
 +
* Enable check box “Print to File...”
 +
→ Print button will change to “Print to File...”
 +
 +
* Click to “Print to File...” button
 +
→ Save as dialog appears
 +
 +
* Give a file name with the extension ps like printtofiletest.ps
 +
* Open the Post Script file with a Post Script viewer to see the result
 +
 +
==== Create single print job for collated output ====
 +
 +
This test is best tested by using banners for each print
 +
 +
* Open or create a writer document
 +
* Call Print dialog
 +
* On the General tab page set the copy count to 2
 +
* Check box Collate should be enabled
 +
* Change to Options tab page and enable “Create single print job for collated output”
 +
* Click Print button
 +
→ Each print copy should have an extra paper or rather a banner
 +
 +
Currently doesn't work; See: [http://www.openoffice.org/issues/show_bug.cgi?id=108326 Issue 108326]
 +
 +
 +
==== Print in reverse page order ====
 +
 +
* Open a new Writer document and create at least two pages
 +
* Call Print dialog (the last opened tab page should appear, in this case the tab page Options)
 +
* All checkboxes should keep the default (disabled)
 +
* At the preview, the first page should shown
 +
* Switch several times the check box on & off for printing in reverse order
 +
→ The preview should change accordingly to the first and last page
 +
* The print copy has to be equal to the preview
 +
 +
==== Use only paper tray from printer preferences ====
 +
 +
Note: For this test, you'll need a printer with at least two paper trays
 +
Example:
 +
 +
* The printer is adjusted to feed the paper from tray 2
 +
* The document is set to tray 1
 +
* If option use only paper tray from printer is disabled
 +
→ Document should be printed from tray 1
 +
* If option use only paper tray from printer is enabled
 +
→ Document should be printed from tray 2
 +
 +
Currently doesn't work; See:[http://www.openoffice.org/issues/show_bug.cgi?id=108327 Issue 108327]
 +
 +
=== Advanced test ===
 +
 +
Do a mix with given options and print it out.
  
 
== Application tab pages ==
 
== Application tab pages ==

Revision as of 15:05, 18 February 2010

Test Case Specifications for new print UI

Please find the following test cases for the different TabPages of the print dialog

General tab page

Basic test

  • Open a new Writer document
  • Type some text
  • Go to Menu File – Print...
    • Your text will be shown in the preview
    • The default printer should be selected
      NOTE: the printer Properties button is not available on Mac OS X!!!
    • Range and Copies is set to „All pages“
    • Number of copies is set to 1
      The check box „Collate“ will be enabled as soon as the value of copies is more than one
    • The “Comments” pull down menu is set to “None (document only)”
      Besides it is disabled, due to no comments available
  • Click Help button
    Related help window should appear
  • Click on Properties button (Button is not available on Mac)
    Here you can adjust the printer settings that are provided by the printer driver
  • Range and Copies options
    As long as no text is selected, the option “Selection” won't be visible but “All pages” and “Pages”
    If you've selected some text before, then the option “Selection” will be enabled and selected by default.
  • Set Number of copies to 2
    See the collate icons changing by activating and deactivating the “Collate” check box
  • Click Cancel button
    Recall and check if everything is set to default again in case it wasn't before canceling

Next level

  • Create a text document with at least 3 pages
  • Insert a comment into two pages
  • Select some text
  • Call the printer dialog
    Now all options should be available at this tab page
  • The preview should show 1/1 page with the selected text
  • Click to Pages in the Range area and change it to e.g. 1-2 or enter only one number
    The number of pages below the preview should change accordingly
  • Click All pages in the Range area to test the Comments pull down menu.
    In this case you have three pages. Two of them have one comment each
  • Select “Comments only”
    The preview shows only one page with both comments you set
  • Select “Place at end of document”
    The preview shows four pages. Both comments are summarized on the last page
  • Select “Place at the end of page”
    The preview shows five pages. The comments will be inserted as an additional page, immediately behind the page the comment is part of
  • Set all options back to default
  • Set Number of copies to two, deactivate check box Collate and Print
    The print result should be: 1-1; 2-2; 3-3
  • Repeat the last step, this time with activated Collate check box
    The print result should be: 1-2-3; 1-2-3
  • Check that the Collate check box is persistent
    The preview is good to save paper for the most of this tests but don't trust it implicitly and compare your printed results to it with some print options ;-)

Advanced test

  • Create a text document with at least 8 pages
  • Open print dialog
  • Click “Pages” option and enter following: 1;3;5-7
    Preview shows 1/5 pages
  • Click Print button
    As a result you should get the following pages : 1-3-5-6-7

For the next test, you should use a duplex printer

  • Open print dialog
  • Click “Pages” option and enter the following: 1-3
  • Click the Properties button and enable Print on both sides; Flip on long edge; quit with OK
  • Set the Number of copies to 2, enable the check box Collate and click Print.
    You should get 4 pages: first page for the numbers 1 & 2; second page for number 3; third page again for 1 & 2 and the fourth page for number 3

Now you are familiar enough to do additional tests by your own taste :-)

Page layout

Basic view

  • Open a new Writer document
  • Type some text
  • Select Menu File – Print
  • Change to tab page “Page Layout”
    • Following default should be set:
      • Layout:
        • Control “Pages per sheet” is selected with value 1
        • Order is “left to right, then down”
        • The layout preview shows the number 1 (1 column; 1 row)
        • Check box “Draw a border around each page” is disabled
    • Control “Brochure” is disabled and is set to “Left to right script”

NOTE: If CTL support (in Tools->Options->Languages) is disabled, the drop down menu for the option brochure won't show.

    • Page sides
      • “Include” is set to All pages

Next level

Layout

Here we have a great playground in particular to print multiple pages on one page Each setting should be visible in the preview

  • Open or create a document with 20 pages including page numbers at the footer.
  • Call Print dialog
  • Change to tab page “Page Layout”

→ Print preview shows page 1/20

  • Select “4” at Pages per sheet option

->Print preview shows page 1/5 now ->Layout preview shows in left to right direction
1 2
3 4

  • Change order drop down menu to “top to bottom, then right”

->Layout preview shows in left to right direction
1 3
2 4

Do the same test with 6, 9 and 16 pages per sheet Keep a check to the page count at the left preview and make at least one hard copy print test. Use at times the option “Draw a border around each page”

Brochure Issue 108740
  • Click to option Brochure

→ Pages per sheet option is reset to 1 → Print preview shows page 1/6, the page is in landscape mode with text at the right part.

BTW. A duplex printer would be fine for this test. So you'll need 6 paper sheets for 20 pages to print. After the print, take all paper and fold them at the middle to have a small DIN A5 book. Now you can check the correct page order number by turn over the pages.

  • Select “Right to left script” at Brochure drop down menu

→ Print preview shows the text in the left part now

Note: This setting is not available, when you disable the CTL enhanced language support at Tools – Options – Language Settings – Languages

  • Page sides

This option can be combined with “Pages per sheet” or with “Brochure” option Here you can decide to print either all, the even pages, or the odd pages → The page count at the left preview will divide in half accordingly by choosing

  • “Back sides / left pages” or “Front sides / right pages”

The hard copy print test should bring the same result like the preview.

Advanced test

  • Select “Custom” at Pages per sheet option

→ The dialog will enhance with further options

Now you have nearly unlimited possibilities. As test example, set all 20 pages on one page. Play with distance and margin settings and monitor the preview Check the Orientation drop down menu

  • Automatic orientation:
    • Set Pages to 2 by 1

→ The preview should change to landscape

    • Set Pages to 2 by 2

→ The preview should change to portrait

  • Portrait orientation:
    • Set Pages to 4 by 1

→ Preview should stay in portrait mode

  • Landscape orientation:
    • Set Pages to 1 by 4

→ Preview should stay in landscape mode

Your turn Just combine all settings as you like and check:

  • that the preview shows the correct layout
  • that the print result is the same like the preview.

Options page

Basic view

All check boxes are disabled by default

Print to file

  • Check the hot-key “f” for enable/disable print to file

→ When you enable print to file, the “Print” button will change to “Print to File...”

  • Create single print jobs for collated output
  • Check the hot-key “c” for enable/disable single print jobs
    Useful for duplex printing with odd pages

Currently doesn't work; See: Issue 108326

Print in reverse page order

  • Check the hot-key “r” for enable/disable the reverse page order
    • Enabled: The print starts with the last page
    • Disabled: The print starts with the first page

Only this check box effects the preview on this tab page

Use only paper tray from printer preferences

  • Check the hot-key “u” for enable/disable the paper tray preferences
    Leaves the paper feed control to the printer driver

Currently doesn't work; See: Issue 108327

Next level

Print to file

Note: For this test, you should use a Post Script printer (driver) + Post Script viewer

  • Open new Writer document
  • Type some text
  • Call print dialog – TabPage Options

→ All check boxes are disabled by default

  • Enable check box “Print to File...”

→ Print button will change to “Print to File...”

  • Click to “Print to File...” button

→ Save as dialog appears

  • Give a file name with the extension ps like printtofiletest.ps
  • Open the Post Script file with a Post Script viewer to see the result

Create single print job for collated output

This test is best tested by using banners for each print

  • Open or create a writer document
  • Call Print dialog
  • On the General tab page set the copy count to 2
  • Check box Collate should be enabled
  • Change to Options tab page and enable “Create single print job for collated output”
  • Click Print button

→ Each print copy should have an extra paper or rather a banner

Currently doesn't work; See: Issue 108326


Print in reverse page order

  • Open a new Writer document and create at least two pages
  • Call Print dialog (the last opened tab page should appear, in this case the tab page Options)
  • All checkboxes should keep the default (disabled)
  • At the preview, the first page should shown
  • Switch several times the check box on & off for printing in reverse order

→ The preview should change accordingly to the first and last page

  • The print copy has to be equal to the preview

Use only paper tray from printer preferences

Note: For this test, you'll need a printer with at least two paper trays Example:

  • The printer is adjusted to feed the paper from tray 2
  • The document is set to tray 1
  • If option use only paper tray from printer is disabled

→ Document should be printed from tray 1

  • If option use only paper tray from printer is enabled

→ Document should be printed from tray 2

Currently doesn't work; See:Issue 108327

Advanced test

Do a mix with given options and print it out.

Application tab pages

Writer

Basic view

  • Open a new Writer document
  • Type some text
  • Select Menu File – Print
  • Change to tab page “OpenOffice Writer”
    • Following check boxes are enabled or disabled by default
      • Enabled check boxes
        • Page background
        • Pictures and objects
        • Form controls
        • Print automatically inserted blank pages
      • Disabled check boxes:
        • Hidden text
        • Text placeholder
        • Print text in black

Whenever you call the print dialog, these defaults should never change
Whenever opening the print dialog the last visited tab page (that was visible the last time the dialog was left using either Print or Cancel) should appear

Contents printing

  • Page Background
    Check the hot-key “c” to enable/disable the background
    This means ONLY the PAGE-BACKGROUND!
    A defined page background can be turned off for the time of the print job.
    The difference should be visible in the preview
  • Pictures and objects Issue 108649
    Check the hot-key “p” to enable/disable Pictures and objects
    • Open a text document with a picture before opening the print dialog
    • Disable the check box for Pictures and compare with the preview
    • The same is expected in the printed document
  • Hidden text
    • Check the hot-key “x” to enable/disable hidden text
    • Enable this option to print hidden text, an example will follow
  • Text placeholder
    • Check the hot-key “t” to enable/disable text placeholders
    • Enable this option to print placeholders, an example will follow
  • Form controls
    • Check the hot-key “s” to enable/disable form controls
    • Enable this option to print form controls, an example will follow

Color

  • Print text in black
    • Check the hot-key “k” to enable/disable print text in black
      Actually this means ONLY the text color! It has not any effect for Pictures, objects, highlighting or paragraph backgrounds
  • Type any text in another color than black
  • Print once with disabled and once with enabled check box and compare
    The difference between enabled/disabled should also be visible in the preview


Pages

  • Print automatically inserted blank pages
    • Check the hot-key “a” to enable/disable printing automatically inserted blank pages
      In case your document has two right and/or two left pages directly following each other, writer inserts a invisible empty page. This empty page can be printed by enabling this check box.

Next level

Page background

  • Open new Writer document
  • Menu Format – Page... – TabPage Background
  • Select any Color or graphic as background and click OK button
  • Call print dialog (the last opened tab page should appear)
  • Disable check box “Page background”

→ The preview should not show the page background anymore. Same result expected when printing

Pictures and objects

  • Create or open a writer document with Pictures and/or objects
    Note: This check box affects also OLE-objects!
  • Call print dialog
  • Disable check box “Pictures and objects”

→ All Pictures, diagrams or OLE-objects should disappear in the preview.

The printed copy has to look like the preview

Hidden text

  • Open a new writer document
  • Type some more text, better a sentence
  • Select some text with the mouse
  • Menu Insert – Fields – Other...
  • TabPage Functions
  • Click “Hidden text” in the Type area
  • Enter in the Condition field: Hide==1
  • Click Insert & Close button

→ The selected text should be hidden now

  • Call print dialog (the last opened tab page should appear, in this case the tab page OpenOffice.org Writer)
  • Enable check box “Hidden text”

→ The hidden text should be visible now in the preview.

The printed copy has to look like the preview

Text placeholder

  • Open a new writer document
  • Menu Insert – Fields – Other...
  • TabPage Functions
  • Click “Placeholder” in the Type area
  • Click “Text” in the Format area
  • Enter some text like Text_Placeholder in the field Placeholder
    Note: The Reference field below will only affect the tip help (coming up when moving the mouse over the field), so you don't need to fill it.
  • Do the same with the other placeholders: Table, Frame, Pictures and Object.
  • Close Fields dialog when you finished
  • Call print dialog
  • Enable check box “Text placeholder”

→ All inserted placeholder should be visible now in the preview.

The printed copy has to look like the preview

Form controls Issue 108138

  • Open a new writer document
  • Menu View – Toolbars – Form Controls

→ Toolbar for Form Controls will appear and the design mode should be ON

  • Drag a control with the mouse into your document
  • Call print dialog

→ The controls should be visible in the preview by default

  • Disable check box “Form controls”

→ All inserted controls should not be visible anymore in the preview.

The printed copy has to look like the preview

Print text in black

  • Open a new writer document
  • Type some text or sentence
  • Select one or several words
  • Assign a color to the selected words
  • Call print dialog (the last opened tab page should appear, in this case the tab page OpenOffice.org Writer)

→ The check box “Print text in black” should be disabled by default

  • Enable check box “Print text in black”

→ The colored words should be shown in black now

The printed copy has to look like the preview
Note: The highlighting of text & paragraph background color are not influenced by this feature!

Print automatically inserted blank pages

  • Open a new writer document
  • Fill the page with text until an automatic page break occurs
  • Open the stylist with the hot-key F11
  • In the stylist click on the icon for “Page Styles”
  • Double click on “Right Page” in the list

→ In the status bar below you should see Page 1/3 or 3/3 depending on cursor position and next to it the current page mode “Right Page”

  • Call print dialog

→ The check box “Print automatically inserted blank pages” should be enabled by default

  • Switch several times the check box on & off for printing inserted blank pages → The page amount of the preview should change accordingly
    • 1/3 with enabled Print automatically inserted blank pages
    • 1/2 with disabled Print automatically inserted blank pages

The printed copy has to look like the preview

Advanced test

Choose a mix of the given options and print it.

HTML (aka Writer/Web)

TBD

Impress

TBD

Draw

TBD

Calc

TBD

Formula (aka Math)

TBD

Personal tools