summaryrefslogtreecommitdiff
path: root/tests/systemtests
diff options
context:
space:
mode:
authordakovaci <daniel.kovacic@nokia.com>2012-06-28 16:38:44 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-03 00:40:59 +0200
commitf717e5f49ae7117de043a8d771a9ced4582f8514 (patch)
tree2b0c65afcebfb92e7ed327207b12982d90b06fcc /tests/systemtests
parentdde8dc46f013eb5eb1e47f481e7dd61c203eb469 (diff)
downloadqtmultimedia-f717e5f49ae7117de043a8d771a9ced4582f8514.tar.gz
Removed some system tests not applicatple to tier 1 platforms
Change-Id: I24ab04409593f4b046aec55a1e467e3bb4b08464 Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Diffstat (limited to 'tests/systemtests')
-rw-r--r--tests/systemtests/audio/sys_audio.qtt357
1 files changed, 148 insertions, 209 deletions
diff --git a/tests/systemtests/audio/sys_audio.qtt b/tests/systemtests/audio/sys_audio.qtt
index 43dc48aba..a9cdd5528 100644
--- a/tests/systemtests/audio/sys_audio.qtt
+++ b/tests/systemtests/audio/sys_audio.qtt
@@ -49,67 +49,68 @@ Ensure a valid m3u file referring to locations where indicated media is availabl
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
-SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
*/
initTestCase: function()
{
},
play_an_audio_file_data: {
- // mp3:[".mp3", "filename", "mpeg audio layer 3"],
- // wav:[".wav", "filename", "waveform audio"],
+ 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"]
+ 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
- testApplication = "Multimedia - Play Audio File";
- testBinary = "BGMPTest01";
+ 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";
+ testGroups = "BAT, 5.0";
// Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
+ 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 |
+ | *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"],
+ 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"]
+ 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
- testApplication = "Multimedia - Audio Player Controls";
- testBinary = "BGMPTest01";
- testGoal = "Verify basic API for controlling audio playback ";
- 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>
+ // 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 |
@@ -130,29 +131,30 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
"));
},
- hardware_volume_controls_for_audio_data: {
- // mp3:[".mp3", "filename", "mpeg audio layer 3"],
- // wav:[".wav", "filename", "waveform audio"],
+ hardware_volume_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"]
+ 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
- testApplication = "Multimedia - Audio Player Controls";
- testBinary = "BGMPTest01";
- testGoal = "Verify hardware volume control of audio playback ";
- 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>
+ // 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 |
@@ -166,28 +168,29 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
basic_playlist_controls_for_audio_data: {
- // mp3:[".mp3", "filename", "mpeg audio layer 3"],
- // wav:[".wav", "filename", "waveform audio"],
+ 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"]
+ 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
- testApplication = "Multimedia - Audio Player Controls";
- testBinary = "BGMPTest01";
- testGoal = "Verify basic API for controlling playlist playback ";
- 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>
+ // 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 |
@@ -220,28 +223,29 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
},
seek_controls_for_audio_data: {
- //mp3:[".mp3", "filename", "mpeg audio layer 3"],
- //wav:[".wav", "filename", "waveform audio"],
+ 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"]
+ 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
- testApplication = "Multimedia - Audio Seek Controls";
- testBinary = "AudioPlayer";
- testGoal = "Verify FastForward and Rewind functionality of the API";
- 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>
+ // 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 |
@@ -264,101 +268,37 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
//*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
- testApplication = "Multimedia - Content Streaming";
- testBinary = "player";
- testGoal = "Verify playback of streaming audio media";
- testPreconditions = "";
- 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 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 |
- "));
- },
-
- lock_screen_controls_for_audio: function()
- {
-
- // Test meta data
- testApplication = "Multimedia - Background Audio";
- testBinary = "BGPlayback";
- testGoal = "Verify LockScreen controls for Background Audio Playback.";
- testPreconditions = "";
- testGroups = "BAT, 1.2";
-
- // Test steps
- prompt(twiki("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
-
- | *Step* | *Verification* |
- | Launch " + testBinary + " | Verify app launches normally |
- | Swipe application off screen | Verify that audio is still playing |
- | Hit hardware Home key | Verify that the screen has locked |
- | Double tap or hit the hardware Home key | Verify that you are now presented with the lock screen |
- | | Verify that player controls are present on the lock screen: Back, Play and Next |
- | | Verify that the currently playing track is displayed as well as artist |
- | Tap the Pause button | Verify that the track has paused |
- | | Verify that the Pause control has changed in to a Play control |
- | Tap the Play control | Verify that the track has continued playing from the previous position |
- | Tap the Next control | Verify that the next track is now playing from the start |
- | Tap the Previous control | Verify that the original track is playing once again |
- | Tap Pause and then Next | Verify that the next tracks details are displayed, but that the track is still paused and remains so |
- | Reopen the BGPlayback app | Verify that the same track is selected as in the previous step |
- | Return to lock screen and continue background playback | Verify that audio is playing |
- | Interrupt playback with a phone call to the device | Verify that the audio pauses and that the ringtone is played |
- | Stop the phone call | Verify that the background audio is now paused |
- | Tap Play | Verify that the audio continues playing from the previously paused position |
-
- "));
- },
-
- headset_removal: function()
- {
-
- // Test meta data
- testApplication = "Multimedia - Removal of headset";
- testBinary = "Audio Player";
- testGoal = "Verify correct handling of headset removal.";
- testPreconditions = "";
- testGroups = "BAT, 1.2";
+ // 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("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
+ // 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 |
- | Select Play on the application UI | Verify that audio is audible |
- | Insert headset in to device | Verify that audio is no longer heard through the speakers, but is routed to the headset |
- | Remove headset | Verify that playback has paused |
- | Select Play on the application UI | Verify that audio is hears once again through the speakers |
- | Turn volume down and then insert headset | Verify that sound is once again routed through headset, and that new volume setting is preserved |
- | Close application | Verify that the application closes without issues |
+ | *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 |
"));
},
@@ -367,25 +307,22 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
{
// Test meta data
- testApplication = "Multimedia - SoundEffects Playback";
- testBinary = "BeatBox";
+ 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("---+++ " + testApplication + "<br><br>
+ prompt(twiki("---+++ " + testTitle + "<br><br>
*Goal:* " + testGoal + "<br>
*Pre-Requisites:* " + testPreconditions + "<br>
*Tested Binary:* " + testBinary + "<br>
| *Step* | *Verification* |
| Launch " + testBinary + " | Verify app launches normally |
- | Touch red rectangle | Verify that a sound effect is audible |
- | Touch blue rectangle | Verify that a sound effect is audible |
- | Touch green rectangle | Verify that a sound effect is audible |
- | Touch yellow rectangle | Verify that a sound effect is audible |
- | Touch a combination of rectangles in quick succession | Verify that sound effects trigger on each touch |
+ | play soundeffect | Verify that a sound effect is audible |
| Close application | Verify that the application closes without issues |
"));
},
@@ -394,14 +331,15 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
{
// Test meta data
- testApplication = "Multimedia - SoundEffects Playback";
- testBinary = "BeatBox";
+ 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("---+++ " + testApplication + "<br><br>
+ prompt(twiki("---+++ " + testTitle + "<br><br>
*Goal:* " + testGoal + "<br>
*Pre-Requisites:* " + testPreconditions + "<br>
*Tested Binary:* " + testBinary + "<br>
@@ -419,30 +357,31 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
play_sound_effects_over_compressed_audio: function()
{
- // Test meta data
- testApplication = "Multimedia - SoundEffects Playback";
- testBinary = "BeatBox";
- testGoal = "Verify playback of sound effects over audio track.";
- testPreconditions = "BGMPTest01 application to provide background playback";
- testGroups = "BAT, 1.2";
+ // 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("---+++ " + testApplication + "<br><br>
- *Goal:* " + testGoal + "<br>
- *Pre-Requisites:* " + testPreconditions + "<br>
- *Tested Binary:* " + testBinary + "<br>
+ // Test steps
+ prompt(twiki("---+++ " + testTitle + "<br><br>
+ *Goal:* " + testGoal + "<br>
+ *Pre-Requisites:* " + testPreconditions + "<br>
+ *Tested Binary:* " + testBinary + "<br>
- | *Step* | *Verification* |
- | Launch BGMPTest01, start playback of playlist | Audio should be heard from the device |
- | Swipe to background BGMPTest01 | Audio should still be heard from BGMPTest01 |
- | 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 BGMPTest01 is still playing audio tracks |
+ | *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 |
"));
}
}