Decapod 0.4 Pre-Capture Test Plan

Decapod 0.4 Pre-Capture Test Plan

Test Setup

Environments

  • OS: Ubuntu 10.04
  • Browser: Firefox 3.6.x

Hardware Configuration
To complete this test plan, you should have access to:

  • Two matching supported cameras
  • At least one unsupported camera

Remove any memory cards from cameras before attempting these tests. If a memory card is present inside the camera when connecting to the system, Decapod may not properly identify the camera.

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

ProtocolPerform 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

ProtocolLaunch the following website to execute unit tests.

Decapod Test Suite:
unit tests link

State Tests

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

Protocol

Mouse

Test 1: Load Application

Procedure:

  1. Open the application in the browser

Results:

  • The Decapod application should load without errors or exceptions
  • The page should have a "Capture a new book" image in the middle, and "Book Management" in the top-left corner.
  • Pressing "Book Management" should keep you on the same page.
  • Hovering over the "Capture a new Book" image should highlight the image, and mouse cursor should turn into a hand pointer.

Test 2: Capture a New Book

Procedure:

  1. With the page from Test 1 still open, select "Capture a new book"

Results:

  • Pressing "Capture a new book" should load a new page without any errors or exceptions.
  • In the middle of the screen "To get the best results ... " should appear with two selectable options: "Continue to calibration", and "Skip calibration".
  • The top-left bread crumb navigation should show "Book Management > Camera Calibration" with "Camera Calibration" highlighted / emphasized.
  • Pressing "Book Management" should load the page as seen in Test 1.

Test 3: Continue to Calibration

Procedure:

  1. With the page from Test 2 still open, select "Continue to calibration"

Results:

  • Pressing "Continue to calibration" should load a new page without any errors or exceptions.
  • The navigation breadcrumb should show "Book Management > Camera Calibration" with "Camera Calibration" highlighted / emphasized.
  • Pressing "Book Management" should load the page as seen in Test 1.
  • The main title on the page should read: "Adjust page rotation and order". There should be two image boxes and various controls and links on the interface.

Test 4: Camera Calibration - Adjust Page Rotation 1

Procedure:

  1. With the page from Test 3 still open, press the first Rotate Image counter-clockwise button once.

Results:

  • Pressing the button should rotate the left image counter-clockwise 90-degrees.

Test 5: Camera Calibration - Adjust Page Rotation 2

Procedure:

  1. With the page from Test 4 still open, press the first Rotate Image clockwise button once.

Results:

  • Pressing the button should rotate the left image clockwise 90-degrees (back to the original orientation as seen at the start of Test 4).

Test 6: Camera Calibration - Adjust Page Rotation 3

Procedure:

  1. With the page from Test 5 still open, press the second Rotate Image counter-clockwise button twice.

Results:

  • Pressing the button should rotate the right image counter-clockwise 90-degrees twice so the image is now upside down.

Test 7: Camera Calibration - Adjust Page Rotation 4

Procedure:

  1. With the page from Test 6 still open, press the second Rotate Image clockwise button once.

Results:

  • Pressing the button should rotate the right image clockwise 90-degrees.

Test 8: Camera Calibration - Swap pages

Procedure:

  1. With the page from Test 7 still open, press the "Swap Pages" button once.

Results:

  • Pressing the button should move the right image to the left, and the left image to the right.

Test 9: Do another test capture

Procedure:

  1. With the results from Test 8 still open, press the "Do another test capture" link for both right and left images.

Results:

  • Pressing the button should take images from the attached cameras and replace the existing images in the interface.
  • The rotations and page order should remain the same.

Test 10: Finish Calibration

Procedure:

  1. With the results from Test 9 still open, press the "Done. Let's start / continue capturing".

Results:

  • The interface should change to the Capture interface.

Keyboard

Test 11: Load Application

Procedure:

  1. Open the application in the browser

Results:

  • The Decapod application should load without errors or exceptions
  • The page should have a "Capture a new book" image in the middle, and "Book Management" in the top-left corner.
  • Activating "Book Management" should keep you on the same page.
  • Placing focus on the "Capture a new Book" image should highlight the image, and mouse cursor should turn into a hand pointer.

Test 12: Capture a New Book

Procedure:

  1. With the page from Test 11 still open, tab to "Capture a new book"
  2. Using the keyboard, tap the "enter" key

Results:

  • Activating "Capture a new book" should load a new page without any errors or exceptions.
  • In the middle of the screen "To get the best results ... " should appear with two selectable options: "Continue to calibration", and "Skip calibration".
  • The top-left bread crumb navigation should show "Book Management > Camera Calibration" with "Camera Calibration" highlighted / emphasized.
  • Activating "Book Management" should load the page as seen in Test 1.

Test 13: Continue to Calibration

Procedure:

  1. With the page from Test 12 still open, tab to "Continue to calibration"
  2. Using the keyboard, tap the"enter" key

Results:

  • Activating "Continue to calibration" should load a new page without any errors or exceptions.
  • The navigation breadcrumb should show "Book Management > Camera Calibration" with "Camera Calibration" highlighted / emphasized.
  • Activating "Book Management" should load the page as seen in Test 1.
  • The main title on the page should read: "Adjust page rotation and order". There should be two image boxes and various controls and links on the interface.

Test 14: Camera Calibration - Adjust Page Rotation 1

Procedure:

  1. With the page from Test 13 still open, tab to the first Rotate Image counter-clockwise button
  2. Using the keyboard, tap the "enter" key once.

Results:

  • Activating the button should rotate the left image counter-clockwise 90-degrees.

Test 15: Camera Calibration - Adjust Page Rotation 2

Procedure:

  1. With the page from Test 14 still open, tab to the first Rotate Image clockwise button
  2. Using the keyboard, tap the "enter" key once.

Results:

  • Activating the button should rotate the left image clockwise 90-degrees (back to the original orientation as seen at the start of Test 14).

Test 16: Camera Calibration - Adjust Page Rotation 3

Procedure:

  1. With the page from Test 15 still open, tab to the second Rotate Image counter-clockwise button
  2. Using the keyboard, tap the "enter" key twice.

Results:

  • Activating the button should rotate the right image counter-clockwise 90-degrees twice so the image is now upside down (rotated 180-degrees)

Test 17: Camera Calibration - Adjust Page Rotation 4

Procedure:

  1. With the page from Test 16 still open, tab to the second Rotate Image clockwise button
  2. Using the keyboard, tap the "enter" key once.

Results:

  • Activating the button should rotate the right image clockwise 90-degrees.

Test 18: Camera Calibration - Swap pages

Procedure:

  1. With the page from Test 17 still open, press the "Swap Pages" button once.

Results:

  • Activating the button should move the right image to the left, and the left image to the right.

Test 19: Do another test capture

Procedure:

  1. With the results from Test 18 still open, tab to the "Do another test capture" link for both right and left images.
  2. Using the keyboard, tap the "enter" key when focus is on each of the links

Results:

  • Activating the button should take images from the attached cameras and replace the existing images in the interface.
  • The rotations and page order should remain the same.

Test 20: Finish Calibration

Procedure:

  1. With the results from Test 19 still open, tab to the "Done. Let's start / continue capturing".
  2. Using the keyboard, tap the "enter" key

Results:

  • The interface should change to the Capture interface.

Task Oriented Functional Tests

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

Protocol

Test 21: Start a New Book

Procedure:

  1. Connect two supported, matching cameras
  2. Start the server and load the application
  3. Configure cameras
  4. Select "Done. Let's start / continue capturing" when camera configuration is complete.

Results:

  • User is able to adjust image rotation of each camera
  • User is able to adjust the order of images so the images captured by cameras are in proper order.
  • A new book is started and the user can begin capturing pages.

Stop:

  • When finishing the camera configuration and the UI changes to Decapod Capture.

Boundary Tests

DescriptionEnsures proper functionality at the input limits 

Protocol

Test 22: Camera Message - 1 supported camera

Procedure:

  1. Close the browser and open it again.
  2. Open the application in the browser. (i.e. http://localhost:8080)
  3. Attach a single supported camera to the system and turn it on.
  4. Select "Capture a new book" on the UI.

Results:

  • The text "It seems like you have only one camera connected... Decapod requires two matching, supported cameras."
  • There are three clickable links: "supported cameras", "try again", and "skip camera setup".

Test 23: Camera Message - 2 supported, unmatched cameras

Procedure:

  1. With the results from Test 12 still open, attach another supported, but unmatched camera to the system and turn it on.
  2. Select "Try Again" on the UI.

Results:

  • "It seems you have two supported cameras connected, but they do not match..."

Test 24: Camera Message - 1 unsupported camera

Procedure:

  1. With the results from Test 21 still open, remove all attached cameras and attach a single unsupported camera.
  2. Select "Try Again" on the UI.

Results:

  • "It seems you have only one camera connected, and it is incompatible...." message should appear on the screen.

Test 25: Camera Message - 2 unsupported cameras

Procedure:

  1. With the results from Test 14 still open, attach another unsupported camera.
  2. Select "Try Again" on the UI.

Results:

  • "It seems you have two cameras connected, but they are not compatible..." message should appear on the screen.

Test 26: Camera Message - 1 unsupported and 1 supported camera

Procedure:

  1. With the results from test 15 still open, detach an unsupported camera, and attach a supported camera to the system.
  2. Select "Try Again" on the UI.

Results:

  • "It seems you have two cameras connected, but one is not compatible..." message should appear on the screen.

Test 27: Camera Message - 0 cameras attached

Procedure:

  1. With the results from test 16 still open, disconnect any cameras currently attached to the system
  2. Select "Try Again" on the UI.

Results:

  • "It seems like no cameras are connected..." message appears.

Test 28: Skip Calibration

Procedure:

  1. With results from Test 17 still open, press the "Skip camera setup" link.

Results:

  • The UI changes to the Decapod Capture interface.

Test-to-Fail

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

Protocol

Test 29: Connecting a Camera with a Memory Card Installed

Procedure:

  1. Start the server and load the application with no cameras attached.
  2. Once server has started, attach a camera with a memory card installed.
  3. Turn on the camera.
  4. The OS will display a dialog asking the user for an action. Leave this dialog open.
  5. Perform Tests 1 - 3.

Results:

  • Test 3 should fail.