From 61048053fdcb8f8834e412c26f5228639de3b286 Mon Sep 17 00:00:00 2001 From: dakovaci Date: Fri, 3 Feb 2012 13:57:00 +1000 Subject: Moved camera tests Moved camera tests out of Qt5Multimedia Change-Id: I571332217dac885810c8fb7a6d28020d4578e55f Reviewed-by: Natalia Shubina --- tests/systemtests/audio/sys_audio.qtt | 2 +- tests/systemtests/camera/sys_camera.qtt | 133 +------------------------------- 2 files changed, 2 insertions(+), 133 deletions(-) diff --git a/tests/systemtests/audio/sys_audio.qtt b/tests/systemtests/audio/sys_audio.qtt index e984d166b..2a5818e59 100644 --- a/tests/systemtests/audio/sys_audio.qtt +++ b/tests/systemtests/audio/sys_audio.qtt @@ -70,7 +70,7 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing testApplication = "Multimedia - Play Audio File"; testBinary = "BGMPTest01"; testGoal = "Verify that various Audio files can be played."; - testPreconditions = "Audio files in " + extension + " format are available on device."; + testPreconditions = "Audio files in " + extension + " format are available on device. Launch the native Music player to populate the playlist before opening BGMPTest."; testGroups = "BAT"; // Test steps diff --git a/tests/systemtests/camera/sys_camera.qtt b/tests/systemtests/camera/sys_camera.qtt index 4f26d40fe..f2e15b2fe 100644 --- a/tests/systemtests/camera/sys_camera.qtt +++ b/tests/systemtests/camera/sys_camera.qtt @@ -41,135 +41,4 @@ //TESTED_COMPONENT=src/multimedia -testcase = { - -/* Notes -*/ - initTestCase: function() - { - }, - - take_a_photo: function() - { - // Test meta data - testApplication = "Multimedia - Still Camera"; - testBinary = "declarative camera"; - testGoal = "Verify that a photo can be taken with the camera."; - testPreconditions = ""; - testGroups = "BAT"; - - // Test steps - prompt(twiki("---+++ " + testApplication + "

- *Goal:* " + testGoal + "
- *Pre-Requisites:* " + testPreconditions + "
- *Tested Binary:* " + testBinary + "
- - | *Step* | *Verification* | - | Launch " + testBinary + " | App launches normally | - | If device has lens cover, make sure it is open | | - | Select Image tab to put camera in still mode | Verify the intended scene is reproduced in the preview pane/viewfinder | - | Select Capture Photo | Verify that image is shown on screen for preview | - | | Verify that a new file is in the Images folder and accessabble with the image viewer | - | Select given image | Verify that it is a true representation of the intended sceen | - | | Verify the image has no unintended artifacts and noise and is properly formatted | - ")); - }, - -change_camera_settings: function() -{ - // Test meta data - testApplication = "Multimedia - Still Camera"; - testBinary = "declarative camera"; - testGoal = "Verify that the camera can change its Still Camera settings successfully."; - testPreconditions = ""; - testGroups = "BAT"; - - // Test steps - prompt(twiki("---+++ " + testApplication + "

- *Goal:* " + testGoal + "
- *Pre-Requisites:* " + testPreconditions + "
- *Tested Binary:* " + testBinary + "
- - | *Step* | *Verification* | - | Launch " + testBinary + " | App launches normally | - | If device has lens cover, make sure it is open | | - | Select the primary camera device from Menu/Devices | Verify the viewfinder is displaying the scene from the main camera device | - | Select Capture Photo | Verify that a photo was taken and that a preview image is shown on screen | - | Select the secandary camera device from Menu/Devices | Verify the viewfinder is displaying the scene from the secondary camera device | - | Select Capture Photo | Verify that a photo was taken from the secondary camera device and that a preview image is shown on screen | - | Change Exposure Compensatioin on the slider in the main UI | Verify that the change in value affects the picture qwality in expected fashion | - | Select Settings/File/Setrtings | Verify that you have an option to change Image Resolution, Image Format and Quality | - | Change Image Resolution to another supported resolution | Verify that you can take stills with various resolutions | - | Selct Flash always on from the setitngs menu | Verify that when photo is taken, the flash is always triggered | - | Select No Flash on from the menu | Verify that despite the lack of natural light, the flash will not trigger when taking photos | - | Change Image Format to another supported format | Verify that you can take stills with various Image Formats | - | Sellect Settings/Device/Secondary Device | Verify that you can see the view from the Front Facing Camera on the viewfinder | - | | Varify that you can take still images from the Front Facing Camera | - | Select Settings/File/Exit | Verify that the application has now closed | - - ")); -}, - - take_a_video: function() - { - // Test meta data - testApplication = "Multimedia - Video Camera"; - testBinary = "camera"; - testGoal = "Verify that the camera can capture and save an audio/video file."; - testPreconditions = ""; - testGroups = "BAT"; - - // Test steps - prompt(twiki("---+++ " + testApplication + "

- *Goal:* " + testGoal + "
- *Pre-Requisites:* " + testPreconditions + "
- *Tested Binary:* " + testBinary + "
- - | *Step* | *Verification* | - | Launch " + testBinary + " | App launches normally | - | If device has lens cover, make sure it is open | | - | Select Video tab to put camera in video mode | Verify the intended scene is reproduced in the preview/viewfinder | - | Select Record Video | Verify that video is shown on screen for preview | - | Select Pause | Verify that the Recorded counter has stopped | - | Select Record again | Verify that the Recorded counter has continued counting | - | Select Stop | Verify that the recording has now stopped | - | | Verify that a new file is in the Images folder and accessabble with the player | - | Select given video | Verify that it is a true representation of the intended sceen | - | | Verify that the Pause in the recording has happened and that recording continued without an issue after that | - | | Verify the image has no unintended artifacts and noise and is properly formatted | - ")); - }, - - change_video_settings: function() - { - // Test meta data - testApplication = "Multimedia - Video Camera"; - testBinary = "camera"; - testGoal = "Verify that the camera can change its Video settings successfully."; - testPreconditions = ""; - testGroups = "BAT"; - - // Test steps - prompt(twiki("---+++ " + testApplication + "

- *Goal:* " + testGoal + "
- *Pre-Requisites:* " + testPreconditions + "
- *Tested Binary:* " + testBinary + "
- - | *Step* | *Verification* | - | Launch " + testBinary + " | App launches normally | - | If device has lens cover, make sure it is open | | - | Select Video tab to put camera in video mode | Verify the intended scene is reproduced in the preview/viewfinder | - | In the Menu Bar, select Settings/Devices | Verify that you can select Primay and Secondary Camera on Device | - | Select Secondary Camera | Verify that devise is now showing video stram from Front Facing camera | - | Select Settings/File/Settings | Verify that you now have otion to select Audio Codecs, Resolution Sample Rate, Framerate, Quality, Video Codecs and Container Format | - | Change Audio Codecs to another supported Codecs | Verify that camera can record | - | Change Resolutiuon to another supported Resolution | Verify that camera can record | - | Change Sample Rate to another supported Sample Rate | Verify that camera can record | - | Change Framerate to another supported Framerate | Verify that camera can record | - | Change Quality | Verify that camera can record | - | Change Video Codecs to another supported Video Codecs | Verify that camera can record | - | Change Container Format | Verify that camera can record | - | Change Quality | Verify that camera can record | - ")); - }, -} +//These tests have been temporaraly moved -- cgit v1.2.3