Skip to content

Commit

Permalink
Add manual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eggwhat committed Jan 23, 2024
1 parent ee3ca56 commit 9c1fa24
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/image_processing/test_image_directory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Test scenarios for image directory
This file describes the manual test scenarios for uploading images from a directory to the app.
## Pre-requisites
Run the app using manual provided in README.md file in root directory.
## Test scenarios
To perform this test, upload the directory `tests/image_processing/test_images/manual_test` to the app using
`Upload Image Directory` button.
The result should be a zip file `images.zip` containing processed images from given directory. These
images should be in the directory with the same name as the original directory.
### Test scenario 1
- Given: The app is running
- When: The user uploads the directory with valid image `valid.jpg`
- Then: The app should return a zip file with processed image `valid_image.jpg`
with bounding box and age label ...
### Test scenario 2
- Given: The app is running
- When: The user uploads the directory with invalid image `no_faces.jpg`
that does not contain any faces
- Then: The app should return a zip file with processed image `no_faces.jpg`
without bounding box and age label ...
### Test scenario 3
- Given: The app is running
- When: The user uploads the directory with image `many_faces.jpg` that
contains more than one face
- Then: The app should return a zip file with processed image `many_faces.jpg`
with bounding box for each face and with following age labels: `age_1`, `age_2`, `age_3`
### Test scenario 4
- Given: The app is running
- When: The user uploads the directory with upside down image `upside_down.jpg`
- Then: The app should return a zip file with processed image `upside_down.jpg`
with bounding box and age label ...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions tests/real_time_processing/test_real_time_processing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Tests for real time processing
This file describes the manual tests for real time processing.
## Pre-requisites
Run the app using manual provided in README.md file in root directory.
## Test scenarios
### Test scenario 1
- Given: The app is running and camera is connected
- When: There is a face in front of the camera
- Then: The app should show one camera feed from original stream and one from processed stream containing
bounding box and age label. The delay between original and processed stream should not be noticeable.
### Test scenario 2
- Given: The app is running and camera is connected
- When: There are many faces in front of the camera
- Then: The app should show one camera feed from original stream and one from processed stream with
bounding box and age label for each face. Additionally, processed stream might show slight delay because
of processing time.
### Test scenario 3
- Given: The app is running and camera is connected
- When: There is a face in front of the camera with head tilted to the side by 90 degrees
- Then: The app should show one camera feed from original stream and one from processed stream without
bounding box and age label.
13 changes: 13 additions & 0 deletions tests/video_processing/test_video_processing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Test for video processing
This file describes the manual test for uploading videos to the app.
## Pre-requisites
Run the app using manual provided in README.md file in root directory.
## Testing video processing
To perform this test, upload the video from `tests/video_processing/test_videos/valid_videos/valid_video.mp4`
directory to the app using `Upload Video` button. The result should be a video file `processed_video.mp4`.
### Test scenario
- Given: The app is running
- When: The user uploads the video with valid file extension `valid_video.mp4`
- Then: The app should stop showing camera feed and show waiting screen until the video is processed.
After processing is finished, the app should download the processed video and return to the camera feed.
For given video, the time of processing should take about 30 seconds.

0 comments on commit 9c1fa24

Please sign in to comment.