Skip to content
Slothsoft edited this page Aug 1, 2020 · 1 revision

This test plan was created for issue #37 Create Test Plan and partially automated in #39 Automate Test Plan.

Note:

  • πŸ—· are automated tests, ☐ means the test has to be executed manually
  • file dialogs are OS resources and cannot be tested by SWTBot - so they are mocked in automated tests
    • so we should test these dialogs at least rudimentary in manual tests

Installation

  • Precondition: Extract the application bundle once per use case.
  • Release Test: all are to be tested manually
# Use Case Windows Linux
I.01 Open newly extracted application
  1. Start the application β†’ the "Init Application" wizard should open
  2. Click "Download" β†’ The file field should be filed with ext/ffmpeg
  3. Click "Finish" β†’ "Window β†’ Preferences β†’ ffmpeg" should now contain the above path; the application folder should contain a filled ext/ folder
☐ ☐
I.02 Open newly extracted application with ffmpeg
  1. Copy the ext/ folder of I.1 into the application folder
  2. Start the application β†’ no wizard should open; "Window β†’ Preferences β†’ ffmpeg" should now contain the path ext/ffmpeg
☐ ☐

Video Splitting

  • Precondition: One of the "Installation" use cases was executed correctly. The application is still open.
  • Automated Test: VideoSplittingTest
  • Release Test: test S.01.a just to be sure
# Use Case Windows Linux
S.01 Open MP4 file directly
  1. Open the file with_chapters.mp4 via "File β†’ Open Video..." β†’ an editor displaying the three chapters, "Zero", "One", "Two" should open
πŸ—· πŸ—·
S.01.a Export chapters on default
  1. Click "Export Chapters Separately" β†’ after a moment the selected folder should open with three files: "1 Zero.mp4", "2 One.mp4", "3 Two.mp4"
πŸ—· πŸ—·
S.01.b Export no chapters
  1. Click "Uncheck all" β†’ all chapters should be unchecked
  2. Click "Export Chapters Separately" β†’ after a moment the selected folder should open without files
πŸ—· πŸ—·
S.01.c Export all chapters
  1. Click "Check all" β†’ all chapters should be checked
  2. Click "Export Chapters Separately" β†’ after a moment the selected folder should open with three files: "1 Zero.mp4", "2 One.mp4", "3 Two.mp4"
πŸ—· πŸ—·
S.02 Open MP4 file from view
  1. Open the file with_chapters.mp4 via double click in the "Video Folder" view β†’ an editor displaying the three chapters, "Zero", "One", "Two" should open
πŸ—· πŸ—·
S.02.a Export merged chapter
  1. Select chapters "Zero and One", click "Merge chapters" β†’ a new chapter "Zero, One" should appear with the both original chapters below it; all should be checked
  2. Click "Export Chapters Separately" β†’ after a moment the selected folder should open with two files: "1 Zero, One.mp4", "2 Two.mp4"
πŸ—· πŸ—·
S.02.b Export split chapters
  1. Select chapter "Zero, One" and click "Split chapters" β†’ the original chapters should be listed: "Zero", "One", "Two"; all should be checked
  2. Click "Export Chapters Separately" β†’ after a moment the selected folder should open with three files: "1 Zero.mp4", "2 One.mp4", "3 Two.mp4"
πŸ—· πŸ—·
S.03 Export chapters twice
  1. Open the file with_chapters.mp4 via "File β†’ Open Video..." β†’ an editor displaying the three chapters, "Zero", "One", "Two" should open
  2. Click "Export Chapters Separately" β†’ after a moment the selected folder should open with three files: "1 Zero.mp4", "2 One.mp4", "3 Two.mp4"
  3. Click "Export Chapters Separately" again and choose the same folder β†’ after a moment the selected folder should open with three additional files: "1 Zero (2).mp4", "2 One (2).mp4", "3 Two (2).mp4"
πŸ—· πŸ—·

Preferences

  • Precondition: One of the "Installation" use cases was executed correctly. The application is still open.
  • Automated Test: PreferencesTest
  • Release Test: no additional testing necessary
# Use Case Windows Linux
P.01 Change video folder
  1. Open the preferences via "Window β†’ Preferences β†’ General" β†’ the preference page gets opened
  2. Replace the file path of "Video Folder"
  3. Click "Apply and Close" β†’ the preference window closes and the view "Video Folder" displays the new folder
πŸ—· πŸ—·

Other Use Cases

  • Precondition: One of the "Installation" use cases was executed correctly. The application is still open.
  • Automated Test: OtherTest
# Use Case Windows Linux
O.01 Open help
  1. Open the help via "Help β†’ Help" β†’ an editor displaying the help from the docs/ folder should open
πŸ—· πŸ—·
O.02 Open online help
  1. Delete the docs/ folder
  2. Open the help via "Help β†’ Help" β†’ an editor displaying the help from https://slothsoft.github.io/mp4-spliterator/ should open
πŸ—· πŸ—·
O.03 Open about dialog
  1. Open the about dialog via "Help β†’ About..." β†’ a window displaying about information should open
πŸ—· πŸ—·
Clone this wiki locally