Add playlist test
Added some playlist tests and edit some audio Change-Id: I936ef4772be9aebe5baf8f755cedadc93107f9e4 Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
This commit is contained in:
@@ -44,8 +44,7 @@
|
||||
testcase = {
|
||||
|
||||
/* Notes
|
||||
Ensure 2 test .mp3 file available on device
|
||||
Ensure 2 test .wav file available on device
|
||||
Ensure various mp3, wav, ogg, oga, spx and flac audio files availabe 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)
|
||||
@@ -57,16 +56,20 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
|
||||
},
|
||||
|
||||
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"]
|
||||
},
|
||||
|
||||
play_an_audio_file: function(extension, filename, format)
|
||||
{
|
||||
// Test meta data
|
||||
testApplication = "Multimedia - Play Audio File";
|
||||
testBinary = "player";
|
||||
testGoal = "Verify that Audio files can be played.";
|
||||
testBinary = "BGMPTest01";
|
||||
testGoal = "Verify that various Audio files can be played.";
|
||||
testPreconditions = "Audio files in " + extension + " format are available on device.";
|
||||
testGroups = "BAT";
|
||||
|
||||
@@ -78,22 +81,26 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
|
||||
|
||||
| *Step* | *Verification* |
|
||||
| Launch " + testBinary + " | App launches normally |
|
||||
| Select [Open] | |
|
||||
| Click Open, then select desired "+filename+extension+" file to return to player UI | Verify selected file has populated playlist window |
|
||||
| Highlight file in playlist window by clicking on it | |
|
||||
| Select [Play] | Verify that the " + format + " file is audible on device |
|
||||
| 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"],
|
||||
// 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"]
|
||||
},
|
||||
|
||||
basic_player_controls_for_audio: function(extension, filename, format)
|
||||
{
|
||||
// Test meta data
|
||||
testApplication = "Multimedia - Audio Player Controls";
|
||||
testBinary = "player";
|
||||
testBinary = "BGMPTest01";
|
||||
testGoal = "Verify basic API for controling audio playback ";
|
||||
testPreconditions = "a test "+extension+" file is available on device";
|
||||
testGroups = "BAT";
|
||||
@@ -106,48 +113,91 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
|
||||
|
||||
| *Step* | *Verification* |
|
||||
| Launch " + testBinary + " | App launches normally |
|
||||
| Select Open | |
|
||||
| In [Open Files] either double click the desired "+filename+extension+" or highlight and click Open to be returned to the player UI | |
|
||||
| Highlight and click Play or doubleclick to play the file | Verify that file plays properly from the start |
|
||||
| | Verify that the correct track details are displayed on the application title bar |
|
||||
| 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 |
|
||||
| | Verify that [Pause] icon has now changed to a [Play] icon |
|
||||
| Select [Play] | Verify that file continues to play properly from where previously paused. |
|
||||
| | Verify that [Play] icon is now a [Pause] icon again |
|
||||
| Select [Next File] control | Verify that next file in playlist is playing from start |
|
||||
| | Verify that the title bar has changed to reflect the seclected audio track |
|
||||
| After some time (10-20 sec) Select [Beginning of File] icon | Verify that current file is being played from start |
|
||||
| Let some arbitrary time pass, then Select [Beginning of File] control twice in quick succession. | Verify that previous file in playlist is playing from start |
|
||||
| | Verify that the timebar 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 seclected audio track |
|
||||
| Select [Stop] control | 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 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 [Beginning of File] 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 |
|
||||
| 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] | 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 |
|
||||
| Click on Full Screen | Verify that nothing happens when playing an audio file |
|
||||
| Click Color Option | Verify that this has no effect when playing an audio file |
|
||||
"));
|
||||
},
|
||||
|
||||
basic_playlist_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"]
|
||||
},
|
||||
|
||||
basic_playlist_controls_for_audio: function(extension, filename, format)
|
||||
{
|
||||
// Test meta data
|
||||
testApplication = "Multimedia - Audio Player Controls";
|
||||
testBinary = "BGMPTest01";
|
||||
testGoal = "Verify basic API for controling 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>
|
||||
|
||||
| *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 begining of the track |
|
||||
| | Verify that there are no audable 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 fashon |
|
||||
| Select [Shuffle] again | Verify that the playlist is again shuffled in a random fashon |
|
||||
| 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
|
||||
testApplication = "Multimedia - Audio Seek Controls";
|
||||
testBinary = "player";
|
||||
testBinary = "AudioPlayer";
|
||||
testGoal = "Verify FastForward and Rewind functionality of the API";
|
||||
testPreconditions = "a test "+extension+" file is available on device";
|
||||
testGroups = "BAT";
|
||||
@@ -160,23 +210,15 @@ SIM cards from Vodafone and Testra (Australia) needed for 3G streaming testing
|
||||
|
||||
| *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 | |
|
||||
| Click on the [1.0x] (Multiplier) dropbox and select 2.0x | Verify that file is playing at double speed |
|
||||
| With multiplier control set on [2.0], select a new file from the playlist window | Verify that the Multiplier control has reverted back to [1.0x] |
|
||||
| | Verify that the audio is playing at normal speed |
|
||||
| Click on the [Multiplier] control and select 0.5x | Verify that file is playing at half speed |
|
||||
| With multiplier control set on [0.5], select a new file from the playlist window | Verify that the Multiplier control has reverted back to [1.0x] |
|
||||
| | Verify that the audio is playing at normal speed |
|
||||
| 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 |
|
||||
| Click on the [1.0x] (Multiplier) dropbox and select 2.0x | Verify that file is playing at double speed |
|
||||
| Drag positional slider to right, then release | Verify that player continues to play file at later part of file at double speed |
|
||||
| Drag positional slider to left, then release | Verify that player continues to play file at earlier part of file at double speed |
|
||||
| Click on the Multiplier dropbox and select 0.5x | Verify that file is playing at half the speed |
|
||||
| Drag positional slider to right, then release | Verify that player continues to play file at later part of file at half speed |
|
||||
| Drag positional slider to left, then release | Verify that player continues to play file at earlier part of file at half speed |
|
||||
| Click on the [Move Forward] controll | Verify that file playback has moved forward 5 seconds |
|
||||
| Select [Pause] | Verify that the file has paused the playback |
|
||||
| Click on the [Move Forward] controll | 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] controll | Verify that file playback has moved back 5 seconds |
|
||||
| Select [Pause] | Verify that the file has paused the playback |
|
||||
| Click on the [Move Backwards] controll | Verify that the file has moved 5 seconds backwards, but is still paused |
|
||||
| Select [Play] | Verify that file is now playing from new position |
|
||||
"));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user