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
🗷 🗷