Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Current »

Decapod 0.5 Import-Export Test Plan

Environments

  • OS: Ubuntu 10.04
  • Browser: Firefox 12

General QA Guidelines

General Use

  • Does the tool behave the way that you would expect
  • Are you surprised by anything
  • Does something take longer than you would expect
  • When the tool does something unexpected or takes too long to do something, does the tool provide appropriate feedback
On This Page
Specification

QA Tests

Protocol
Perform the following tests using each browser/system environment

Report issues at: http://issues.fluidproject.org/secure/Dashboard.jspa

Please search for issues before reporting them, so as to limit the number of duplicate entries.

Decapod Jira Filter



Unit Test: UI

Protocol
Launch the following in a browser (paths relative to the decapod-ui directory).
Note: You may need to adjust the security permissions to allow local ajax. (see: Browser settings to support local Ajax calls)

Decapod Test Suite:

  • tests/accordion/html/accordion-test.html
  • tests/dataSource/html/dataSource-test.html
  • tests/eventBinder/html/eventBinder-test.html
  • tests/exporter/html/exporter-test.html
  • tests/exporter/html/exporterType-test.html
  • tests/exporter/html/importStatus-test.html
  • tests/visSwitcher/html/visSwitcher-test.html

Unit Tests: Server

Protocol
From the decapod-server/tests directory launch the following through python (e.g. python test.py).
Note: Ensure that the Decapod Server is not running when the tests are being executed

Test Suites:

  • test.py

or

Individual Tests:

  • test_book.py
  • test_decapod_utilities.py
  • test_imageImport.py
  • test_pdf.py
  • test_resourcesource.py
  • test_server.py

State Tests

Description
Ensures that the component properly traverses through the various states. 

Protocol
Run through Tests 1-6, then 7-12 in order.
Run through Tests 7-12 a second time using Orca.

Decapod Server:

Mouse

Test 1: Load Application

  • Procedure
    1. Load the application in a web browser
  • Results
    • The message "Select 'Browse files' to choose images to export." should appear towards the top
    • The 'Browse files' button should be enabled
    • The "Image PDF", "Image PDF with OCR Text" and "Computer Traced PDF with OCR Text" export options should be listed

Test 2: Mouse, Expand Export Options

  • Procedure
    1. Complete Test 1
    2. Using the mouse, click on any of the export types
  • Results
    • The options for the export should expand below the export's description
    • The "Output Image resolution" textfield should be disabled, and showing 200 dpi
    • The 'Start Export' button should be disabled

Test 3: Mouse, Add Images to Import

  • Procedure
    1. Complete Test 2
    2. Using the mouse, click on the 'Browse files' button
    3. Select 1 or more images to import
  • Results
    • The message area above the 'Browse files' button should indicate the number of files added and if there were errors adding any of them to the queue.
    • The 'Browse files' button should be renamed to 'Add more'
    • The 'Start Export' button under each of the export types should be enabled

Test 4: Mouse, Export

  • Procedure
    1. Complete Test 3
    2. Using the mouse, click on any of the export types to expand its options
    3. Using the mouse, click the 'Start Export' button
  • Results
    • The 'Add More' button should be disabled
    • The other export options should be disabled
    • The 'Start Export' button should be replaced by a progress indicator
    • After the export is finished, the progress indicator should be replaced by a "Download" and "Start Over" link

Test 5: Mouse, Download

  • Procedure
    1. Complete Test 4
    2. Using the mouse, click the "Download" link
  • Results
    • The interface should remain unchanged
    • A PDF, of the type selected, should be downloaded through the web browser

Test 6: Mouse, Start Over

  • Procedure
    1. Complete Test 5
    2. Using the mouse, click the "Start Over" link
  • Results
    • The interface should be reset to its initial state (See: Test 1)

Keyboard

Test 7: Load Application

  • Procedure
    1. Load the application in a web browser
  • Results
    • The message "Select 'Browse files' to choose images to export." should appear towards the top
    • The 'Browse files' button should be enabled
    • The "Image PDF", "Image PDF with OCR Text" and "Computer Traced PDF with OCR Text" export options should be listed

Test 8: Keyboard, Expand Export Options

  • Procedure
    1. Complete Test 7
    2. Using the keyboard, tap the 'Tab' key until one of the export types has focus
    3. Using the keyboard, tap the up or down arrow keys to focus a different export type if desired
    4. Using the keyboard, tap the "Enter/Return" key to select the focused export type
  • Results
    • The options for the export should expand below the export's description
    • The "Output Image resolution" textfield should be disabled, and showing 200 dpi
    • The 'Start Export' button should be disabled

Test 9: Keyboard, Add Images to Import

  • Procedure
    1. Complete Test 8
    2. Using the keyboard, tap the "Tab" key until the 'Browse files' button has focus
    3. Using the keyboard, tap the "Enter" key to activate the 'Browse files' button and open the file picker
    4. Select 1 or more images to import
  • Results
    • The message area above the 'Browse files' button should indicate the number of files added and if there were errors adding any of them to the queue.
    • The 'Browse files' button should be renamed to 'Add more'
    • The 'Start Export' button under each of the export types should be enabled

Test 10: Keyboard, Export

  • Procedure
    1. Complete Test 9
    2. Using the keyboard, tap the 'Tab' key until one of the export types has focus
    3. Using the keyboard, tap the up or down arrow keys to focus a different export type if desired
    4. Using the keyboard, tap the "Enter/Return" key to select the focused export type
    5. Using the keyboard, tap the "Tab" key until the 'Start Export' button has focus
    6. Using the keyboard, tap the "Enter/Return" key to activate the 'Start Export' button
  • Results
    • The 'Add More' button should be disabled
    • The other export options should be disabled
    • The 'Start Export' button should be replaced by a progress indicator
    • After the export is finished, the progress indicator should be replaced by a "Download" and "Start Over" link

Test 11: Keyboard, Download

  • Procedure
    1. Complete Test 10
    2. Using the keyboard tap the "Tab" key until the "Download" link has focus
    3. Using the keyboard tap the "Enter/Return" key to activate the "Download" link
  • Results
    • The interface should remain unchanged
    • A PDF, of the type selected, should be downloaded through the web browser

Test 12: Keyboard, Start Over

  • Procedure
    1. Complete Test 11
    2. Using the keyboard tap the "Tab" key until the "Start Over" link has focus
    3. Using the keyboard tap the "Enter/Return" key to activate the "Start Over link
  • Results
    • The interface should be reset to its initial state (See: Test 1)

Task Oriented Functional Tests

Description
Ensures that the component is able to handle expected input.

Protocol
Perform these tasks on the following site.
Perform these tasks a second time using Orca.

Decapod Server:

Test 1: Reset after adding images

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Trigger the reset link
  • Results
    • The interface should be reset to its initial state
    • The message "Select 'Browse files' to choose images to export." should appear towards the top
    • The 'Browse files' button should be enabled
    • The "Image PDF", "Image PDF with OCR Text" and "Computer Traced PDF with OCR Text" export options should be listed
  • Stop Test
    • Stop the server and close the browser

Test 2: Generate an Image PDF

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Expand the "Image PDF" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • An image PDF, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Test 3: Generate an Image PDF with OCR Text

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Expand the "Image PDF with OCR Text" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • An image PDF with OCR text, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Test 4: Generate a Computer Traced PDF with OCR Text

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Expand the "Computer Traced PDF with OCR Text" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • A computer traced PDF with OCR text, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Boundary Tests

________________________________________________________

Description
Ensures proper functionality at the input limits 

Protocol
Perform these tasks on the following site.
Perform these tasks a second time using Orca.

Decapod Server:

Test 1: Reset before import

  • Procedure
    1. Start the server and load the application
    2. Trigger the reset button
  • Results
    • The interface should be reset to its initial state
    • The message "Select 'Browse files' to choose images to export." should appear towards the top
    • The 'Browse files' button should be enabled
    • The "Image PDF", "Image PDF with OCR Text" and "Computer Traced PDF with OCR Text" export options should be listed
  • Stop Test
    • Stop the server and close the browser

Test 2: Add more images

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Add more images to import
    4. Trigger "Start Export" for one of the export types
  • Results
    • A PDF of the selected export type should be generated containing all of the imported pages.
  • Stop Test
    • Stop the server and close the browser

Test 3: Start Over

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Trigger "Start Export" for one of the export types
    4. After the export has finished, trigger the "Start Over" link
  • Results
    • The interface should be reset to its initial state
    • The message "Select 'Browse files' to choose images to export." should appear towards the top
    • The 'Browse files' button should be enabled
    • The "Image PDF", "Image PDF with OCR Text" and "Computer Traced PDF with OCR Text" export options should be listed
  • Stop Test
    • Stop the server and close the browser

Test 4: Large File

  • Procedure
    1. Start the server and load the application
    2. Add a 100MB image file
    3. Trigger "Start Export" for one of the export types
  • Results
    • A PDF for the type of export selected should be generated
  • Stop Test
    • Stop the server and close the browser

Test 5: With a large number of images generate an Image PDF

  • Procedure
    1. Start the server and load the application
    2. Add 100+ images to import
    3. Expand the "Computer Traced PDF with OCR Text" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • An image PDF, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Test 6: With a large number of images generate an Image PDF with OCR Text

  • Procedure
    1. Start the server and load the application
    2. Add 100+ images to import
    3. Expand the "Computer Traced PDF with OCR Text" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • An image PDF with OCR text, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Test 7: With a large number of images generate a Computer Traced PDF with OCR Text

  • Procedure
    1. Start the server and load the application
    2. Add 100+ images to import
    3. Expand the "Computer Traced PDF with OCR Text" export type and trigger the "Start Export" button
    4. After the export has completed, download the PDF
  • Results
    • A computer traced PDF with OCR text, representing the imported images, should be produced
  • Stop Test
    • Refresh the browser to return the page to its initial state

Test-to-Fail

________________________________________________________

Description
Tests which should cause errors or not be accepted as input 

Protocol
Perform these tasks on the following site.
Perform these tasks a second time using Orca.

Decapod Server:

Test 1: Export Before Import

  • Procedure
    1. Start the server and load the application
    2. Attempt to trigger the "Start Export" button for any of the export types
  • Results
    • The "Start Export" button should be disabled and nothing should happen
  • Stop Test
    • Stop the server and close the browser

Test 2: Add more after export

  • Procedure
    1. Start the server and load the application
    2. Add images to import
    3. Trigger "Start Export" for one of the export types
    4. Attempt to add more images to import
  • Results
    • The "Add More" button should be disabled and nothing should happen
  • Stop Test
    • Stop the server and close the browser

Test 3: Import non-image files

  • Procedure
    1. Start the server and load the application
    2. Add non-image files to import
    3. Trigger "Start Export" for one of the export types
  • Results
    • A "415 unsupported Media Type" error should be returned from the server
  • Stop Test
    • Stop the server and close the browser

Test 4: Image files that exceed the size limit

  • Procedure
    1. Start the server and load the application
    2. Add an image file that is larger than 100MB
  • Results
    • An error message indicating that the size limit has been exceeded should be displayed.
  • Stop Test
    • Stop the server and close the browser
  • No labels