summaryrefslogtreecommitdiffstats
path: root/tests/systemtests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/systemtests')
-rw-r--r--tests/systemtests/audio_playback/sys_audio.qtt374
-rw-r--r--tests/systemtests/audio_recording/sys_audio_recording.qtt64
-rw-r--r--tests/systemtests/radio/sys_radio.qtt286
-rw-r--r--tests/systemtests/still_camera/sys_camera.qtt162
-rw-r--r--tests/systemtests/video_playback/sys_video.qtt180
5 files changed, 0 insertions, 1066 deletions
diff --git a/tests/systemtests/audio_playback/sys_audio.qtt b/tests/systemtests/audio_playback/sys_audio.qtt
deleted file mode 100644
index 64629e8fc..000000000
--- a/tests/systemtests/audio_playback/sys_audio.qtt
+++ /dev/null
@@ -1,374 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//TESTED_COMPONENT=src/multimedia
-
-testcase = {
-
-/* Notes
-Ensure various mp3, wav, ogg, oga, spx and flac audio files available for playback
-Ensure a valid m3u file referring to locations where indicated media is available on the device
-Ensure the device can ping destinations on the network (if applicable)
-Have an audio stream url available (e.g. http://202.6.74.107:8060/triplej.mp3 for example)
-Ensure access to Internet available to device either via 3G and WiFi
-*/
- initTestCase: function()
- {
- },
-
- play_an_audio_file_data: {
- mp3:[".mp3", "filename", "mpeg audio layer 3"],
- wav:[".wav", "filename", "waveform audio"],
- ogg:[".ogg", "filename", "container format"],
- vorbis:[".oga", "filename", "audio compression format"],
- speex:[".spx", "filename", "speech audio format"],
- flac:[".flac", "filename", "audio file format"]
- },
-
- play_an_audio_file: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Play Audio File";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify that various Audio files can be played.";
- testPreconditions = "Audio files in " + extension + " format are available on device. Launch the native Music player to populate the playlist before opening BGMPTest.";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Verify that the playlist has populated the application | |
- | Select the desired "+filename+extension+" and press play | Verify that the " + format + " file is audible on device |
-
- "));
- },
-
- basic_player_controls_for_audio_data: {
- mp3:[".mp3", "filename", "mpeg audio layer 3"],
- wav:[".wav", "filename", "waveform audio"],
- ogg:[".ogg", "filename", "container format"],
- vorbis:[".oga", "filename", "audio compression format"],
- speex:[".spx", "filename", "speech audio format"],
- flac:[".flac", "filename", "audio file format"]
- },
-
- basic_player_controls_for_audio: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Audio Player Controls";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify basic API for controlling audio playback ";
- testPreconditions = "a test "+extension+" file is available on device";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select the desired "+filename+extension+" in playlist and press [Play] | Verify that file plays properly from the start |
- | | Verify that the correct track details are displayed in the playlist |
- | Select [Pause] | Verify that file has paused |
- | Select [Play] | Verify that file continues to play properly from where previously paused. |
- | | Verify that the progress bar tracks the progression of the file playback |
- | Select [Next] control | Verify that next file in playlist is playing from start |
- | | Verify that the correct playlist title is highlighted and that the details are correct to reflect the selected audio track |
- | Select [Stop] control | Verify that file has stopped playing |
- | Select [Play] | Verify that file continues to play from start of file. |
- | With file playing, verify that UI volume control slider can change volume up and down | |
- | Select volume at 50% (or thereabout) | |
- | Select [Mute] | Verify that sound is muted while file is playing |
- | | Verify that [Mute] control is displaying the Muted icon |
- | Select [Mute] control again | Verify that sound has reverted back to level selected prior to muting |
- "));
- },
-
- hardware_volume_controls_for_audio_data: {
- mp3:[".mp3", "filename", "mpeg audio layer 3"],
- wav:[".wav", "filename", "waveform audio"],
- ogg:[".ogg", "filename", "container format"],
- vorbis:[".oga", "filename", "audio compression format"],
- speex:[".spx", "filename", "speech audio format"],
- flac:[".flac", "filename", "audio file format"]
- },
-
- hardware_volume_controls_for_audio: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Audio Player Controls";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify hardware volume control of audio playback ";
- testPreconditions = "a test "+extension+" file is available on device";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select the desired "+filename+extension+" in playlist and press [Play] | Verify that file plays properly from the start |
- | Press the hardware volume keys to increase the volume to the maximum | Verify that the device now plays at maximum volume |
- | Using hardware volume keys, select volume at about 50% | Verify that the device is now playing at about 50% volume |
- | Using hardware keys, take volume down to 0% | Verify that sound is muted while file is playing |
- | Using hardware keys, increase volume | Verify that sound is once again playing from device |
- "));
- },
-
-
- basic_playlist_controls_for_audio_data: {
- mp3:[".mp3", "filename", "mpeg audio layer 3"],
- wav:[".wav", "filename", "waveform audio"],
- ogg:[".ogg", "filename", "container format"],
- vorbis:[".oga", "filename", "audio compression format"],
- speex:[".spx", "filename", "speech audio format"],
- flac:[".flac", "filename", "audio file format"]
- },
-
- basic_playlist_controls_for_audio: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Audio Player Controls";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify basic API for controlling playlist playback ";
- testPreconditions = "a test "+extension+" file is available on device";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select 'Sequential' as the Play Mode | |
- | Select the desired "+filename+extension+" in playlist and press [Play] | Verify that file plays properly from the start |
- | | Verify that the correct track details are displayed in the playlist |
- | Select [Next] | Verify that the next file in the playlist is highlighted |
- | | Verify that the correct audio file is being played from the beginning of the track |
- | | Verify that there are no audible artifacts or undue lag during this change of track |
- | After some time (10-20 sec), select [Prev] icon | Verify that the previous file in the playlist is being played from start |
- | Let file play till end | Verify player continues playing the next file in the playlist window |
- | After some arbitrary time, Select [Stop] | |
- | Select [Next File] control | Verify that next file in playlist is highlighted |
- | | Verify that file is not automatically playing |
- | Select [Prev] control | Verify that previous file in playlist is highlighted |
- | Select file in playlist | Verify that file plays in player. |
- | Select number of files greater than can be displayed without scrolling in to playlist | Verify that list can be scrolled through |
- | Navigate to the last file in the playlist and select [Next] | Verify that no other track is played |
- | Select 'Loop' as the Play Mode | |
- | Select [Next] | Verify that the next song played is the first song in the playlist |
- | While first song is playing select [Prev] | Verify that the last song in the playlist is now playing |
- | Select [current Loop] from Play Mode | Verify that the same song now plays in a loop |
- | | Verify that selecting [Prev] or [Next] has no effect on the tune played |
- | Select [Current Only] in the Play Mode | Verify that only the selected song plays and stops at the end |
- | Select [Shuffle] | Verify that the playlist is now shuffled in a random fashion |
- | Select [Shuffle] again | Verify that the playlist is again shuffled in a random fashion |
- | Select [Reset] | Verify that the playlist is now back to its original order |
- "));
-
- },
-
- seek_controls_for_audio_data: {
- mp3:[".mp3", "filename", "mpeg audio layer 3"],
- wav:[".wav", "filename", "waveform audio"],
- ogg:[".ogg", "filename", "container format"],
- virbis:[".oga", "filename", "audio compression format"],
- speex:[".spx", "filename", "speech audio format"],
- flac:[".flac", "filename", "audio file format"]
- },
-
- seek_controls_for_audio: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Audio Seek Controls";
- testBinary = "AudioPlayer";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify FastForward and Rewind functionality of the API";
- testPreconditions = "a test "+extension+" file is available on device";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select [Play] to play the file | |
- | Click on the [Move Forward] control | Verify that file playback has moved forward 5 seconds |
- | Select [Pause] | Verify that the file has paused the playback |
- | Click on the [Move Forward] control | Verify that the file has moved 5 seconds forward, but is still paused |
- | Select [Play] | Verify that file is now playing from new position |
- | Click on the [Move Backwards] control | Verify that file playback has moved back 5 seconds |
- | Select [Pause] | Verify that the file has paused the playback |
- | Click on the [Move Backwards] control | Verify that the file has moved 5 seconds backwards, but is still paused |
- | Select [Play] | Verify that file is now playing from new position |
- "));
- },
-
-
-
- basic_controls_for_streamed_audio_content: function()
- {
-
-//*Note* For this test you need a playlist of streaming media urls. Suggest: http://202.6.74.107:8060/triplej.mp3 ; http://www.abc.net.au/streaming/triplej.asx ; rtsp://media1.abc.net.au/broadcast/triplej.rm ; mms://media3.abc.net.au/triplej ; depending on your platform and backend support.
-
- // Test meta data
- testTitle = "Multimedia - Content Streaming";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify playback of streaming audio media";
- testPreconditions = "";
- testGroups = "BAT, 5.0";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | In player application, Select or Tap [Open] | |
- | In [Open File] navigate and highlight test (streaming) playlist file | |
- | Select or Tap on selected file to return to player UI | Verify selected file has populated playlist |
- | Highlight file in playlist by selecting or clicking it | |
- | Select [Play] | Verify that stream is playing on device |
- | Select [Pause] | Verify that stream is paused on device |
- | | Verify that the [Pause] button has changed to a [Play] button |
- | Select [Play] again | Verify that stream is playing on device |
- | Select [Stop] | |
- | Open local mp3 file in to play list and select it to play | Verify that the mp3 plays while the stream name is still present in the playlist |
- | Re-select the stream in the playlist | Verify that the stream starts playing again |
- | Select [Next File] | Verify that the player started playing the next file in the playlist |
- | Select [Previous File] | Verify that the original stream is playing again |
- | During stream playback, have headphones connected to device | Verify that the sound is now playing through the headphones |
- | Invoke a system notification on the device (such as an incoming SMS) | Verify that the device correctly transmits the audible system notification through the devices speakers and then returns to playing the stream through the headphones |
- "));
- },
-
-
- play_sound_effects: function()
- {
-
- // Test meta data
- testTitle = "Multimedia - SoundEffects Playback";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify playback of sound effects.";
- testPreconditions = "";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | Verify app launches normally |
- | play soundeffect | Verify that a sound effect is audible |
- | Close application | Verify that the application closes without issues |
- "));
- },
-
- change_volume_of_sound_effects: function()
- {
-
- // Test meta data
- testTitle = "Multimedia - SoundEffects Playback";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Change volume of sound effects.";
- testPreconditions = "";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | Verify app launches normally |
- | Set volume of device to maximum | Verify that sound effect now plays at maximum volume |
- | Set volume of device to about 50% volume | Verify that the sound effect now plays at half volume |
- | Set volume of device to minimum | Verify that there is now no audio from device when sound effect is played |
- | Close application | Verify that the application closes without issues |
- "));
- },
-
-
- play_sound_effects_over_compressed_audio: function()
- {
-
- // Test meta data
- testTitle = "Multimedia - SoundEffects Playback";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimedia/examples/player";
- testGoal = "Verify playback of sound effects over audio track.";
- testPreconditions = "player application to provide background playback";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch player, start playback of playlist | Audio should be heard from the device |
- | Swipe to background player | Audio should still be heard from player |
- | Launch " + testBinary + " | Verify app launches normally |
- | Touch red rectangle | Verify that a sound effect is audible together with the background track |
- | Touch blue rectangle | Verify that a sound effect is audible together with the background track |
- | Touch green rectangle | Verify that a sound effect is audible together with the background track |
- | Touch yellow rectangle | Verify that a sound effect is audible together with the background track |
- | Touch a combination of rectangles in quick succession | Verify that sound effects trigger on each touch and that the background track can still be heard |
- | Close application | Verify that the application closes without issues |
- | | Verify that player is still playing audio tracks |
- "));
- }
-}
diff --git a/tests/systemtests/audio_recording/sys_audio_recording.qtt b/tests/systemtests/audio_recording/sys_audio_recording.qtt
deleted file mode 100644
index 504e0c994..000000000
--- a/tests/systemtests/audio_recording/sys_audio_recording.qtt
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//TESTED_COMPONENT=src/multimedia
-
-testcase = {
-
- initTestCase: function()
- {
- },
-
-
- record_an_audio_file: function(extension, filename, format)
- {
- // Test meta data
- testTitle = "Multimedia - Record Audio File";
- testBinary = "player";
- testSource = "$QTDIR/qtmultimediia/examples/audiorecorder";
- testGoal = "Verify that various Audio files can be recorded.";
- testPreconditions = "";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select Default for Input Device, Audio Codec, File Container and Sample rate | |
- | Select Constant Quality for Encoding mode | |
- | Select output file and hit Record | Verify that Audio Level is responding to audio input |
- | Navigate to created audio file and play | Verify that audio is of intended quality |
- | Close application | Verify application closes cleanly |
-
- "));
- }
-}
diff --git a/tests/systemtests/radio/sys_radio.qtt b/tests/systemtests/radio/sys_radio.qtt
deleted file mode 100644
index 81e911c2d..000000000
--- a/tests/systemtests/radio/sys_radio.qtt
+++ /dev/null
@@ -1,286 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//TESTED_COMPONENT=src/multimedia
-
-testcase = {
-
-/* Notes
-Ensure radio reception is available in testing area
-Most tier 1 platforms require a radio module
-A device specific headset is required to be connected to device for radio testing
-*/
-
- initTestCase: function()
- {
- },
-
- play_a_radio_transmission: function()
- {
- // Test meta data
- testTitle = "Multimedia - Play Radio Transmission";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that radio stations can be played.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Device must have a suppported radio module.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | | If not first time running application on image, verify that you are presented with a list of previously scanned radio stations |
- | Select a radio station from the list | Verify that the station is properly selected |
- | Select the power icon next to the station name | Verify that audio from the radio station is now heard through the headphones |
- | Deselect the power icon next to the station name | Verify that audio from the radio station is no longer heard through the headphones |
- | Exit the radio application | Verify that the radio application closes cleanly |
- "));
- },
-
- change_a_radio_station: function()
- {
- // Test meta data
- testTitle = "Multimedia - Radio: Change radio station";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that radio station can be changed from station playlist.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select a radio station from the list | Verify that the station is heard through the headphones |
- | If in the visualization view, select the down icon to return to the station selection view | Verify that you are presented with the list of stations |
- | Select a different station | Verify that you are now listening to a different radio station |
- | Deselect the power icon next to the station name | Verify that audio from the radio station is no longer heard through the headphones |
- | Exit the radio application | Verify that the radio application closes cleanly |
- "));
- },
-
- manually_tune_radio_station: function()
- {
- // Test meta data
- testTitle = "Multimedia - Manually tune radio station";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that user can manually change radio station.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select a radio station from the list | Verify that the station is heard through the headphones |
- | Select the up icon to be presented to the visualization view | |
- | Select the Plus icon on the menu bar | Verify that you are presented with the frequency dial |
- | Note the current selected frequency | |
- | Select the dot indicator on the frequency dial, and move finger to right | Verify that the frequency on the indicator is now rising and that the audio has gone off the previous station |
- | Keep moving selector until a radio station is heard | Verify that the frequency of the selected station is higher than the originally selected station |
- | | Verify that the station is playing properly |
- | Select to save the selected radio station frequency | Verify that the station is saved in the radio station playlist |
- | Exit the radio application | Verify that the radio application closes cleanly |
- "));
- },
-
- scan_up_and_down: function()
- {
- // Test meta data
- testTitle = "Multimedia - Scan up and down the frequency";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that radio can scan up and down the FM frequency.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select a radio station from the list | Verify that the station is heard through the headphones |
- | Select the up icon to be presented to the visualization view | |
- | Select the Plus icon on the menu bar | Verify that you are presented with the frequency dial |
- | Note the current selected frequency | |
- | Select the Scan Up Frequency control | Verify that application has located a new station and that the frequency displayed is of the new station |
- | | Verify that the station is playing properly |
- | Select to save the selected radio station frequency | Verify that the station is saved in the radio station playlist |
- | Select the Scan Down Frequency control | Verify that application has located the original station and that the frequency displayed is of the original station |
- | | Verify that the station is playing properly |
- | Select to save the selected radio station frequency | Verify that the station is saved in the radio station playlist |
- | Exit the radio application | Verify that the radio application closes cleanly |
- "));
- },
-
- scan_for_multiple_radio_stations: function()
- {
- // Test meta data
- testTitle = "Multimedia - Radio: Scan for multiple radio station";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that radio can scan for multiple stations at once.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | On the menu, select Find new station | In the Radio Dialog Scanning view, observe the number of stations found |
- | Exit the radio application | Verify that the radio application closes cleanly |
- "));
- },
-
- save_radio_station_list: function()
- {
- // Test meta data
- testTitle = "Multimedia - Radio: Save station playlist";
- testBinary = "radio";
- testSource ="qt5/qtmultimedia/examples/radio"
- testGoal = "Verify that radio can save station playlist.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select to scan for multiple stations | Verify that multiple stations have been found |
- | Select to save station playlist | |
- | Close application | Verify that the application closes |
- | Reopen " + testBinary + " | Verify that the app launches normally |
- | Go to station playlist | Verify that the stations from the previous search are listed |
- | Select various stations from playlist | Verify that radio station play properly |
- | Close application | Verify that radio application closes properly |
- "));
- },
-
-
- radio_interrupted_by_system_notification: function()
- {
- // Test meta data
- testTitle = "Multimedia - Radio interrupted by System Notification";
- testBinary = "radio";
- testSource ="$QTDIR/qtmultimediakit/examples/Radio"
- testGoal = "Verify that radio can recover audio playback from various system notifications.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Locate a strong radio station signal by scanning up/down | |
- | While on a strong and audible radio signal, evoke a system notification on device (eg: alarm notification) | Verify that the radio has muted, and after the system notification has been delivered, the radio reverts to outputting the audio signal back through the headphones |
- | While on a strong and audible radio signal, call the device | Verify that the radio has been muted, and stays muted during the duration of the call, and resumes once the call has ended |
- | Close application | Verify that radio application closes properly |
- "));
- },
-
- radio_volume_control: function()
- {
- // Test meta data
- testTitle = "Multimedia - Radio Volume Control";
- testBinary = "radio";
- testGoal = "Verify that the radio volume can be controlled via volume controls.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Locate a strong radio station signal by scanning up or down the frequency | |
- | While on a strong and audible radio signal, move volume slider to the right | Verify that the audio volume of the radio station is amplified |
- | Move volume slider to the left | Verify that the audio volume is lowered |
- | Move the volume slider all the way to the left | Verify that the sound is now completely muted |
- | Return the volume to a value above 50% and click the Mute/unmute command | Verify that the audio changes from being muted to unmuted and back |
- "));
- },
-
- display_radio_metadata: function()
- {
- // Test meta data
- testTitle = "Multimedia - Display Radio Meta data";
- testBinary = "radio";
- testGoal = "Verify that the radio API can display properly formatted meta data.";
- testPreconditions = "1. Radio reception should be available in the test area.<br>2. Wired headphones act as an antenna to the device and must be connected.";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Locate a strong radio station signal by scanning up or down the frequency | Verify that the Frequency field is populated with the correct frequency for the given radio station |
- | | Verify that the Volume field is displaying the proper volume % |
- | Click on the Mute/Unmute command | Verify that Muted field changes from 'false' to 'true' and back |
- | | If applicable, confirm that the Station Name field is properly displayed |
- | | If applicable, confirm that the Station Id field is properly displayed |
- | | If applicable, confirm that the Program Type field is properly displayed |
- | | If applicable, confirm that the Radio Text field is properly displayed |
- "));
- },
-}
diff --git a/tests/systemtests/still_camera/sys_camera.qtt b/tests/systemtests/still_camera/sys_camera.qtt
deleted file mode 100644
index e2d885f44..000000000
--- a/tests/systemtests/still_camera/sys_camera.qtt
+++ /dev/null
@@ -1,162 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//TESTED_COMPONENT=src/multimedia
-
-testcase = {
-
-/* Notes
-*/
- initTestCase: function()
- {
- },
-
- take_a_photo: function()
- {
- // Test meta data
- testTitle = "Multimedia - Still Camera";
- testBinary = "camera";
- testSource = "qt5/qtmultimedia/examples/camera"
- testGoal = "Verify that a photo can be taken with the camera.";
- testPreconditions = "None";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testTitle + " | 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 accessible with the image viewer |
- | Select given image | Verify that it is a true representation of the intended screen |
- | | Verify the image has no unintended artifacts and noise and is properly formatted |
- "));
- },
-
- change_camera_settings: function()
- {
- // Test meta data
- testTitle = "Multimedia - Still Camera, Change Settings";
- testBinary = "camera";
- testSource = "qt5/qtmultimedia/examples/camera"
- testGoal = "Verify that the camera can change its Still Camera settings successfully.";
- testPreconditions = None";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *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 secondary 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 Compensation on the slider in the main UI | Verify that the change in value affects the picture quality in expected fashion |
- | Select Settings/File/Settings | 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 |
- | Select Flash always on from the settings 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 |
- | Select Settings/Device/Secondary Device | Verify that you can see the view from the Front Facing Camera on the viewfinder |
- | | Verify 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
- testTitle = "Multimedia - Video Camera, Take Video";
- testBinary = "camera";
- testSource = "qt5/qtmultimedia/examples/camera"
- testGoal = "Verify that the camera can capture and save an audio/video file.";
- testPreconditions = "None";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select Video icon 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 Stop | Verify that the recording has now stopped |
- | | Verify that the video file is available in the camera preview pane |
- | Select given video | Verify that it is a true representation of the intended screen |
- | | Verify the image has no unintended artifacts and noise and is properly formatted |
- "));
- },
-
- change_video_settings: function()
- {
- // Test meta data
- testApplication = "Multimedia - Video Camera, Change Video Settings";
- testBinary = "camera";
- testSource = "qt5/qtmultimedia/examples/camera"
- testGoal = "Verify that the camera can change its Video settings successfully.";
- testPreconditions = "None";
- testGroups = "BAT";
-
- // Test steps
- prompt(twiki("---+++ " + testTitle + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *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 Primary and Secondary Camera on Device |
- | Select Secondary Camera | Verify that devise is now showing video stream from Front Facing camera |
- | Select Settings/File/Settings | Verify that you now have the option 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 Resolution 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 |
- "));
- },
-}
diff --git a/tests/systemtests/video_playback/sys_video.qtt b/tests/systemtests/video_playback/sys_video.qtt
deleted file mode 100644
index 0cf375937..000000000
--- a/tests/systemtests/video_playback/sys_video.qtt
+++ /dev/null
@@ -1,180 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//TESTED_COMPONENT=src/multimedia
-
-testcase = {
-
-/* Notes
-Ensure 2 test .mp4 files are available on device
-Ensure the device can ping destinations on the network (if applicable)
-Have a video stream url available (e.g. http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4)
-Ensure access to Internet available to device
-Ensure an active SIM card is available on the device. As some video streaming tests are carrier specific, it is recommended in Australia to have access to Testra, Optus and Vodafone SIM's.
-*/
- initTestCase: function()
- {
- },
-
- play_a_video_file_data: {
- mp4:[".mp4", "filename", "mpeg video layer 4"]
- },
-
- play_a_video_file: function(extension, filename, format)
- {
- // Test meta data
- testApplication = "Multimedia - Play Video File";
- testBinary = "player";
- testGoal = "Verify that local, networked and carrier streamed video files can be played. ";
- testPreconditions = "1. A test "+extension+" file is available on device.<br>2. Internet access is enabled on the device.<br>3. Operator SIM cards are available to the device";
- testGroups = "BAT";
-
- // Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select [Open] | |
- | In [Open File] select the "+filename+extension+" file to return to player UI | |
- | Select [Play] to play the file | Verify selected file has populated playlist |
- | Highlight file in playlist by clicking on it | |
- | Select [Play] | Verify that .MP4 file is playing on device |
- "));
- },
-
- basic_controls_for_video_data: {
- mp4:[".mp4", "filename", "mpeg video layer 4"]
- },
-
- basic_controls_for_video: function(extension, filename, format)
- {
- // Test meta data
- testApplication = "Multimedia - Video Controls";
- testBinary = "player";
- testGoal = "Verify the API for basic video playback functionality";
- testPreconditions = "a test "+extension+" file is available on device.";
- testGroups = "BAT";
-
- // Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | Select [Open] | |
- | In [Open File] select the "+filename+extension+" file to return to player UI | |
- | Select [Play] to play the file | |
- | Select [Pause] | Verify that file has paused |
- | | Verify that the [Pause] icon has changed to a [Play] icon |
- | Select [Play] | Verify that the [Play] icon has changed to a [Pause] icon |
- | | Verify that file continues to play from where previously paused. |
- | Select [Next File] | Verify that next file in playlist is playing from start |
- | After some time (10-20 sec) Select [Beginning of File] control | Verify that current file is being played from start |
- | Let arbitrary time pass, then Select [Beginning of File] control twice in quick succession.| Verify that previous file in playlist is playing from start |
- | Select [Stop] | Verify that file has stopped playing |
- | Select [Play] | Verify that file continues to play from start of file. |
- | Let file play till end | Verify player stops at end of file. |
- | Start playing file. | |
- | After arbitrary time, Select [Stop] | |
- | Select [Next File] | Verify that next file in playlist is highlighted |
- | | Verify that file is not automatically playing |
- | Select [Beginning of File] | Verify that previous file in playlist is highlighted |
- | Select file in playlist | Verify that file plays in player. |
- | Select number of files greater than can be displayed without scrolling in to playlist | Verify that list can be scrolled through |
- | With file playing, verify that hardware keys can change volume up and down | |
- | With file playing, verify that UI volume control slider can change volume up and down | |
- | Select volume at 50% (or thereabout) | |
- | Select [Mute] control | Verify that sound is muted while file is playing |
- | | Verify that [Mute] control is displaying the Muted icon |
- | Select [Mute] control again | Verify that sound has reverted back to level selected prior to muting |
- | Drag positional slider to right, then release | Verify that player continues to play file at later part of file |
- | Drag positional slider to left, then release | Verify that player continues to play file at earlier part of file |
- | Start playing file | |
- | Select [FullScreen] control | Verify that video is now playing in Fullscreen mode |
- | When at end of current file | Verify that next file in playlist is being played |
- | When at last file in playlist and at end of file | Verify that fullscreen mode is exited and user returned to player interface and that [FullScreen] is no longer selected. |
- "));
- },
-
- seek_controls_for_video: function()
- {
- // Test meta data
- testApplication = "Multimedia - Video Seek";
- testBinary = "player";
- testGoal = "Verify the API for Fast Forward/Rewind functionality.";
- testPreconditions = "Video files are available for testing on the device.";
- testGroups = "BAT";
-
- // Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | While playing a video file, Select or Tap on Forward control | Verify that playback has moved five seconds forward |
- | Select or Tap Back control | Verify that playback has moved 5 seconds back |
- "));
- },
-
- basic_controls_for_streamed_content: function()
- {
-
-//*Note* For this test you need a playlist of streaming media urls. Suggest: http://202.6.74.107:8060/triplej.mp3 ; http://www.abc.net.au/streaming/triplej.asx ; rtsp://media1.abc.net.au/broadcast/triplej.rm ; mms://media3.abc.net.au/triplej ; depending on your platform and backend support. A stream that I have found that works is: http://chaos.troll.no/~tavestbo/webkit/mediaelement/transformers640.ogg
-
- // Test meta data
- testApplication = "Multimedia - Content Streaming";
- testBinary = "Video player";
- testGoal = "Verify various forms of video streaming.";
- testPreconditions = "For now you need to eddit the .qml file and hardcode the following URI: http://chaos.troll.no/~tavestbo/webkit/mediaelement/transformers640.ogg";
- testGroups = "BAT";
-
- // Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | App launches normally |
- | In Video player application, Select or Tap Play | Verify that the video stream plays in the application |
- | Select [Pause] | Verify that stream is paused on device |
- | | Verify that the [Pause] button has changed to a [Play] button |
- | Select [Play] again | Verify that stream is playing on device |
- | Select [Stop] | |
- | During stream playback, have headphones connected to device | Verify that the sound is now playing through the headphones |
- | Invoke a system notification on the device (such as an incoming SMS) | Verify that the device correctly transmits the audible system notification through the devices speakers and then returns to playing the stream through the headphones |
- "));
- },
-}