Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

Visual Tagging Tool

Unit Tests

The following test cases are performed as unit tests for VTT. Each test consists of an input file under the directory of "${VTT}/data/vtt/TestCases/".

  • File Open Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttBasic VTT file
  • Vtt->Open
  • Should be opened successfully
  • Pass
    test.pureText.txtPure text file
  • Vtt->Open
  • Should be opened successfully
  • Pass
    test.format.vttDifferent vtt format
  • Vtt->Open
  • Should be opened successfully
  • Pass
    test.wrongTagFormat.vttWrong tags format
  • Vtt->Open
  • Display an error message with wrong tag information
  • Pass
    test.wrongMarkupFormat.vttWrong markups format
  • Vtt->Open
  • Display an error message with wrong markup information
  • Pass
    test.scroll.vttScroll long text
  • Vtt->Open
  • Scroll up and down
  • The init position should be at the beginning
  • Scroll function
  • Pass
    test.noFile.vttFile not exist
  • Vtt->Open
  • Display an error message with no file exist information
  • Pass

  • Other File/Application Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttSave operation
  • Vtt->Save
  • Provide confirmation dialog
  • Should be saved successfully
  • Pass
    test.vttSave as operation
  • Vtt->Save As
  • Provide input dialog for the file to save to
  • Should be saved as successfully
  • Pass
    test.print.vttPrint text with bigger font size
  • Vtt->Print
  • Provide input dialog for auto adjustment print
  • Print function with auto font size (<=10) adjustment
  • Pass
    test.vttClose operation
  • Vtt->Close
  • Close current window if multiple files open
  • Close current file if no change
  • Provide confirm dialog if there are changes
  • Pass
    test.vttExit operation
  • Vtt->Exit
  • Close all opened files
  • Exit application
  • Pass

  • Text Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttBold
  • Text->Bold
  • Bold not tagged text
  • Pass
    test.vttItalic
  • Text->Italic
  • Italic not tagged text
  • Pass
    test.vttUnderline
  • Text->Underline
  • Underline not tagged text
  • Pass
    test.vttFont set
  • Text->Font
  • Select font for not tagged text
  • Pass
    test.vttFont size
  • Text->Font Size
  • Select font size for not tagged text
    • 12
    • +2
    • -2
  • Pass
    test.vttDefault Font Style
  • Text->Default Font Style
  • Reset style for not tagged text to default
  • Pass
    test.vttHighlight Text Color
  • Text->Highlight Text Color
  • Select color for highlight foreground text
  • Pass
    test.vttHighlight Background Color
  • Text->Highlight Background Color
  • Select color for highlight background text
  • Pass
    test.vttTags Help
  • Text->Text ?
  • Show detail help documents on Text
  • Pass

  • Tags Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttSetup operation
  • Tags->Setup
  • Add
  • Delete
  • Edit
  • Arrange order: sort, up, down
  • Map order to quick keys
  • Pass
    test.vttDisplay filter
  • Tags->Display Filter
  • Select name to display
  • Select category to display
  • Display All
  • Display None
  • Pass
    test.vttQuick keys
  • Tags->Quick Keys Mapping
  • Assign the quick keys to tag by name|category
  • Pass
    test.vttSave & import
  • Tags->Save & Import
  • Save
  • Save as
  • Import
  • Pass
    test.vttTags Help
  • Tags->Tags ?
  • Show detail help documents on Tags
  • Pass

  • Markups Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttLogs Details
  • Markups->Logs Details
  • Show details of markups
  • Pass
    test.vttReports
  • Markups->Reports
  • Show Reports of markups
  • Pass
    test.vttUndo/Redo logs
  • Markups->Undo Manager Logs
  • Show logs of Undo/Redo manager
  • Pass
    test.vttDelete
  • Markups->Delete
  • Delete the selected markup
  • Pass
    test.vttDelete all
  • Markups->Delete All
  • Provides a confirm dialog
  • Delete all markups
  • Pass
    test.vttUndo
  • Markups->Undo
  • Undo the last Markup tagging operation
  • Pass
    test.vttRedo
  • Markups->Redo
  • Redo the previous Markup tagging operation
  • Pass
    test.vttOverlap
  • Markups->Overlap
  • Allow overlap tagging among markups when is checked
  • deleted all overlap markups then tag when it is not checked
  • Pass
    test.vttMarkups Help
  • Markups->Markups ?
  • Show detail help documents on Markups
  • Pass

  • Options Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttLook & Feel
  • Options->Look and Feel
  • Select Look and Feel:
    • System
    • Metal
    • Motif
    • Window
    • GTK
  • Pass
    test.vttZoom in/out
  • Options->Zoom +/-
  • Zoom in
  • Zoom out
  • Reset
  • Pass
    test.vttFind
  • Options->Find
  • Find String in both direction with match case option
  • Pass
    test.linewrap.vttLine wrapping for long line text
  • Options->Line Wrapping
  • Line wrapped for long line text
  • Only work for VTT format
  • Pass
    test.vttVTT Status
  • Options->Show Status
  • Show VTT status
    • Markup Overlap
    • Highlight
    • Selected Markup index
    • Caret position
  • Pass
    test.vtt &
    test.diffText.vtt
    Compare different text
  • Options->Compare to
  • Compare different text
    • View Data Diff
    • Stats Reports
    • Difference
    • Raw Data
  • Pass
    test.vtt &
    test.diffTags.vtt
    Compare different tags
  • Options->Compare to
  • Compare different tags
    • View Tags Diff
    • View Data Diff
    • Stats Reports
    • Difference
    • Raw Data
  • Pass
    test.scroll.vtt &
    test.diffMarkups.vtt
    Compare different markups
  • Options->Compare to
  • Compare different tags
    • View Markups Diff
    • View Data Diff
    • Stats Reports
    • Difference
    • Raw Data
  • Pass
    test.vttConfiguration setup
  • Options->Config Setup
  • Setup VTT configuration
    • Save
    • Reset
    • Setup
    Pass

  • Help Related Tests
    Input FileDescriptionMenu/ActionDesired ResultsStatus
    test.vttAbout
  • Help->About
  • Show VTT version & build information
  • Pass
    test.vttKey Mapping Table
  • Help->Key Mapping Table
  • Show mapping table for all keys
  • Pass
    test.vttHelp menu
  • Help->Documents
  • Show VTT user documents
  • Pass