summaryrefslogtreecommitdiffstats
path: root/tests/systemtests/sys_multimedia/sys_multimedia.qtt
blob: 54bc5166645bfbd0dc8437ccce1d8f4677d6b99c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/

//TESTED_COMPONENT=src/multimedia

testcase = {

/* Notes
Ensure 2 test .mp4 files are available on device
Ensure 2 test .mp3 file available on device
Ensure 2 test .wav file available on device
Ensure a number of .jpg, .gif and .png files are available on device
Ensure a valid m3u file referring to locations of 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)
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 radio reception is available in testing area
A device specific headset is required to be connected to device for radio testing
*/
    initTestCase: function()
    {
    },

    play_an_audio_file_data: {
        mp3:[".mp3", "filename", "mpeg audio layer 3"],
        wav:[".wav", "filename", "waveform audio"]
    },

    play_an_audio_file: function(extension, filename, format)
    {
        // Test meta data
        testTitle = "Multimedia - Play Audio File";
        testBinary = "player";
        testSource = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that Audio files can be played.";
        testPreconditions = "Audio files in " + extension + " format are available on device.";
        testGroups = "BAT_MOBILITY";
        testRequirements = " ";

        // 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 [Open] | |
           | In [Open File] select the "+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 |
         "));
    },

    basic_player_controls_for_audio_data: {
        mp3:[".mp3", "filename", "mpeg audio layer 3"],
    },

    basic_player_controls_for_audio: function(extension, filename, format)
    {
         // Test meta data
         testTitle = "Multimedia - Audio Player Controls";
         testBinary = "player";
         testSource = "$MOBILITYDIR/demos/player";
         testGoal = "Verify that Audio files can be controled.";
         testPreconditions = "a test "+extension+" file is available on device";
         testGroups = "BAT_MOBILITY";
         testRequirements = " ";

         // 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 [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 [Pause] control has now changed to [Play] control |
            | Select [Play] | Verify that file continues to play from where previously paused. |
            | | Verify that [Play] icon is now a [Pause] icon |
            | Select [Next File] control | 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 some 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] 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 |
            | 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 |
         "));

// Note: [Color Option] is not implemented so far in player
// Note: [Full Screen] opens a blank screen with no content

    },

    seek_controls_for_audio_data: {
        mp3:[".mp3", "filename", "mpeg audio layer 3"],
    },

    seek_controls_for_audio: function(extension, filename, format)
    {
        // Test meta data
        testTitle = "Multimedia - Audio Seek Controls";
        testBinary = "player";
        testSource = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that audio files can be 'searched'";
        testPreconditions = "a test "+extension+" file is available on device";
        testGroups = " ";
        testRequirements = " ";

        // 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 [Open] | |
           | In [Open File] select the "+filename+extension+" file to return to player UI | |
           | Select [Play] to play the file | |
           | Select the [1.0] (Multiplier) control. | |
           | Select [2.0] | |
           | 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.0] |
           | | Verify that the audio is playing at normal speed |
           | Select [Multiplier] control. | |
           | Select [0.5] | 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.0] |
           | | Verify that the audio is playing at normal speed |
      "));
    },

    play_a_video_file_data: {
        mp4:[".mp4", "filename", "mpeg video layer 4"]
    },

    play_a_video_file: function(extension, filename, format)
    {
        // Test meta data
        testTitle = "Multimedia - Play Video File";
        testBinary = "player";
        testSource = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that video files can be played. ";
        testPreconditions = "a test "+extension+" file is available on device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 [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
        testTitle = "Multimedia - Video Controls";
        testBinary = "player";
        testSource = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that video file replay can be start/stop/paused";
        testPreconditions = "a test "+extension+" file is available on device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 [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
        testTitle = "Multimedia - Video Seek";
        testBinary = "player";
        testSource = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that video files can be played at various replay speeds (search mode).";
        testPreconditions = "Video files are available for testing on the device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 |
            | While playing a video file, Select or Tap on [1.0] (Multiplier) control | |
            | Select [2.0] | Verify that file is playing at double speed |
            | Select [Multiplier] control | |
            | Select [0.5] | Verify that file is playing at half speed |
        "));
    },

    basic_controls_for_streamed_content: function()
    {

    //*Note* Functionality for this feature is being implemented due to bugs in .m3u playback on Maemo. Once resolved, this test will revert back to its original form
    //*Note* In order to play stream on Maemo, invoke player with following command from console:
    //run-standalone.sh ./player http://202.6.74.107:8060/triplej.mp3
    //*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 = "$MOBILITYDIR/demos/player";
        testGoal = "Verify that streaming playlist can be played.";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " ";

        // 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_a_radio_transmission: function()
    {
        // Test meta data
        testTitle = "Multimedia - Play Radio Transmission";
        testBinary = "radio";
        testSource = "$MOBILITYDIR/examples/radio";
        testGoal = "Verify that radio stations can be played.";
        testPreconditions = "1. This test requires radio reception and headphones to be connected to device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 0 KHz and No Signal is displayed |
            | Select [Scan Up] | Audible white noise should be heard as the radio searches for a frequency lock. Frequency should be increasing in 100 KHz steps until a strong signal is found |
            | | Verify that a radio signal can be heard. It is possible for the radio to lock on a silent station signal, in that case progress further up the frequencies |
            | Once a strong audible signal is found | Verify that the stations frequency and Got Signal message is displayed |
            | Select [Scan Up] | Verify that the radio has moved off the previous station and in progressing through the frequencies |
            | Once on a radio station, Select [Freq Up] | Verify that the radio frequency has moved off the station by 100KHz and is stationary |
            | Select [Freq Up] again | Verify that the radio frequency has moved up another 100KHz and is stationary |
            | Select [Freq Down] twice | Verify that you are now at the frequency of the previous radio station and that the signal is audible |
            | Select [Scan Down] | Verify that the radio has moved off the previous station, progressing through the frequencies, and finds the original station from this test |
            | Exit the radio application | Verify that the radio station is no longer heard |
         "));
    },

    radio_interrupted_by_system_notification: function()
    {
        // Test meta data
        testTitle = "Multimedia - Play Radio With Interruptions";
        testBinary = "radio";
        testSource = "$MOBILITYDIR/examples/radio";
        testGoal = "Verify that radio play can be interrupted by system notifications.";
        testPreconditions = "1. Audible system notifications should be enabled for this test.<br>2. This test requires radio reception and headphones to be connected to device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 upwards | |
            | While on a strong and audible radio signal, evoke a system notification on device (eg: incoming SMS, alarm notification) | Verify that after the system notification has been delivered, the radio reverts to outputting the audio signal back through the headphones |
         "));
    },

    radio_volume_control: function()
    {
        // Test meta data
        testTitle = "Multimedia - Radio Volume Control";
        testBinary = "radio";
        testSource = "$MOBILITYDIR/examples/radio";
        testGoal = "Verify that the radio volume can be controlled.";
        testPreconditions = "1. This test requires radio reception and headphones to be connected to device.";
        testGroups = " ";
        testRequirements = " ";

        // 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 upwards | |
            | 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 |
       "));
    },

    take_a_photo: function()
    {
         // Test meta data
         testTitle = "Multimedia - Photo Camera";
         testBinary = "camera";
         testSource = "$MOBILITYDIR/examples/camera";
         testGoal = "Verify that a photo can be made with the camera.";
         testPreconditions = "None";
         testGroups = "BAT_MOBILITY";
         testRequirements = " ";

         // 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 Image tab to put camera in still mode | Verify the intended scene is reproduced in the preview/viewfinder |
            | Select Capture Photo | If applicable, verify that flash has triggered |
            | | 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
        testTitle = "Multimedia - Photo Camera";
        testBinary = "camera";
        testSource = "$MOBILITYDIR/examples/camera";
        testGoal = "Verify that the camera can change its Still Camera settings successfully.";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " ";

        // 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 | |
            | 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 |
            | 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
        testTitle = "Multimedia - Video Camera";
        testBinary = "camera";
        testSource = "$MOBILITYDIR/examples/camera";
        testGoal = "Verify that the camera can capture and save an audio/video file.";
        testPreconditions = "None";
        testGroups = "BAT_MOBILITY";
        testRequirements = " ";

        // 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 |
            | 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
        testTitle = "Multimedia - Video Camera";
        testBinary = "camera";
        testSource = "$MOBILITYDIR/examples/camera";
        testGoal = "Verify that the camera can change its Video settings successfully.";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " ";

        // 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 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 |
        "));
    },

    record_an_audio_file: function()
    {

        // Note: On Maemo5, accepting the default for Input Device, Audio Codec, File Container and Sample Rate will produce a valid audio file.
        // Note: Selecting the alternative selection, if available, works as well.

        // Test meta data
        testTitle = "Multimedia - Recording Audio";
        testBinary = "audiorecorder";
        testSource = "$MOBILITYDIR/examples/audiorecorder";
        testGoal = "Verify that audio can be recorded.";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " ";

        // 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 Input Device | |
           | Select Audio Codec | |
           | Select File Container | |
           | Select Sample Rate | |
           | Select Quality and Bitrate | |
           | Select Output... and select location and name of output file | |
           | Select Record | Verify that [Record] button has changed in to [Stop] |
           | | Verify that Duration is counting seconds |
           | | Verify that Recording is displayed |
           | Select Stop | Verify that Duration is now 0 |
           | Select Output File in file browser | Verify that an audio file has been generated |
           | Play output file in media player | Verify that audible audio is recorded in file |
        "));
    },

    pause_recording_an_audio_file: function()
    {
        // Note: On Maemo5, accepting the default for Input Device, Audio Codec, File Container and Sample Rate will produce a valid audio file.
        // Note: Selecting the alternative selection, if available, works as well.

        // Test meta data
        testTitle = "Multimedia - Pause Recording Audio";
        testBinary = "audiorecorder";
        testSource = "$MOBILITYDIR/examples/audiorecorder";
        testGoal = "Verify that audio recordings can be paused.";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " ";

        // 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 Input Device | |
            | Select Audio Codec | |
            | Select File Container | |
            | Select Sample Rate | |
            | Select Quality and Bitrate | |
            | Select Output... and select location and name of output file | |
            | Select Record | Verify that [Record] button has changed in to [Stop] |
            | | Verify that Duration is counting seconds |
            | | Verify that Recording is displayed |
            | Select Pause | Verify that instead of Duration, Paused is displayed |
            | Select Resume | Verify that the counter has resumed the seconds count from where it was previously paused. |
            | After a arbitrary time, Stop the recording. | |
            | Select Output File in file browser | Verify that an audio file has been generated |
            | Play output file in media player | Verify that audible audio is recorded in file and that audio is only recorded for period that Pause was not selected |
            | | Verify there is no audible artifact that separates the two or more recording periods, that is that the joint is seamless |
        "));
    },

    play_a_slideshow: function()
    {
        // Test meta data
        testTitle = "Multimedia - Play Slideshow";
        testBinary = "slideshow";
        testSource = "$MOBILITYDIR/examples/slideshow";
        testGoal = "Verify that a slideshow can be played.";
        testPreconditions = "Some images are in the phone";
        testGroups = " ";
        testRequirements = " ";

        // 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 [Open] Icon | |
            | Select Directory from the list | |
            | Navigate to desired directory | |
            | Select desired directory containing pictures | |
            | Select [Play] | Verify that the slideshow starts |
            | Select [Pause] | Verify that slideshow stops on given image |
            | Select [Play] again | Verify that slideshow resumes |
            | Select [Next File] | Verify that slideshow jumps to next image in directory |
            | Select [Previous File] | Verify that slideshow jumps to previous image in directory |
            | Select [Stop] | Verify that slideshow has stopped |
            | Select [Open] Icon | |
            | Select Playlist from the list | |
            | Select [Play] | Verify that slideshow starts |
            | Select [Pause] | Verify that slideshow stops on given image |
            | Select [Play] again | Verify that slideshow resumes |
            | Select [Next File] | Verify that slideshow jumps to next image in directory |
            | Select [Previous File] | Verify that slideshow jumps to previous image in directory |
            | Select [Stop] | Verify that slideshow has stopped |
        "));
    },

}