Skip to content

Instantly share code, notes, and snippets.

@ShubhamJain7
Last active August 27, 2020 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShubhamJain7/4dc491012df567519c19d84356ddd621 to your computer and use it in GitHub Desktop.
Save ShubhamJain7/4dc491012df567519c19d84356ddd621 to your computer and use it in GitHub Desktop.

Testing

Installation

  • Add-on installs without any errors
    • Add-on can be installed from add-ons manager menu
    • Add-on can be directly installed from the .nvda-addon file

Normal function

  • Add-on responds to the gesture set by the user
  • Add-on scripts can be found in the input gestures menu
  • Recognition works
    • Single gesture press speaks results
    • Double gesture press presents results in a virtual window
    • Result in the virtual window is accessible through navigation keys
    • Pressing the escape key or changing element under focus closes the virtual result window
    • New detection cannot be started until the virtual result window is closed
    • Cached result is presented for both single and double gesture press on a previously recognized image
    • All the above tests pass in photo viewer apps and browsers
    • All the above tests pass with both Focus and Browse modes

Error handling

  • Fails with appropriate log message if one or more required files are missing
  • Appropriate messages are presented when no result is obtained
  • Elements with roles other than ROLE_GRAHIC are not recognized when filter non-graphic is set to True and an appropriate message is presented to the user
  • Elements with height or width lesser than the ThresholdSize are not recognized and an appropriate message is presented to the user
  • A new recognition process is not allowed to start while the previous recognition process is still running and an appropriate message is presented to the user

Bounding Boxes

  • Bounding boxes are displayed along with the spoken result on a single gesture press

  • Bounding boxes are displayed in the correct locations and are of different colours

  • Object labels are announced properly

    • Object label is announced when the user moves mouse pointer/finger inside a bounding box (mouse tracking must be enabled)
    • Object label is only announced again after the user leaves and then re-enters the bounding box
  • Bounding boxes disappear when the element in focus changes

  • Bounding boxes are cleared before recognition is started on the same image again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment