mpviewplugins/mpplaybackviewplugin/tsrc/MATTI/feature_test_folder/QTMusicPlayer_BAT_playbackview.feature
author hgs
Fri, 11 Jun 2010 19:36:32 -0500
changeset 37 eb79a7c355bf
permissions -rw-r--r--
201023
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
hgs
parents:
diff changeset
     1
Feature: As a test engineer I want to run BAT test cases for QT Music Player
hgs
parents:
diff changeset
     2
  
hgs
parents:
diff changeset
     3
  Scenario: Equalizer_Select a preset from list
hgs
parents:
diff changeset
     4
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
     5
    And I select the song number 1 of the list
hgs
parents:
diff changeset
     6
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
     7
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
     8
    When I select Equaliser from the Options menu
hgs
parents:
diff changeset
     9
    Then the Equaliser pop up is displayed
hgs
parents:
diff changeset
    10
    And Equaliser preset 1 is selected
hgs
parents:
diff changeset
    11
    When I select the Equaliser preset number 3 from the list
hgs
parents:
diff changeset
    12
    And I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    13
    And I select Exit from the Options menu
hgs
parents:
diff changeset
    14
    Then the MusicPlayer application is not active
hgs
parents:
diff changeset
    15
    When the MusicPlayer application is active
hgs
parents:
diff changeset
    16
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    17
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    18
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    19
    When I select Equaliser from the Options menu
hgs
parents:
diff changeset
    20
    Then the Equaliser preset 3 is selected
hgs
parents:
diff changeset
    21
    
hgs
parents:
diff changeset
    22
  Scenario: Repeat
hgs
parents:
diff changeset
    23
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    24
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    25
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    26
    And Repeat is set to ON
hgs
parents:
diff changeset
    27
    Then all songs are played and at the end it goes to the first one and stays in Playing
hgs
parents:
diff changeset
    28
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    29
    And I select Repeat off from the Options menu
hgs
parents:
diff changeset
    30
    And all songs are played and at the end it goes to the first one and stays in Paused
hgs
parents:
diff changeset
    31
    When the application is closed
hgs
parents:
diff changeset
    32
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    33
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    34
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    35
    And Repeat is set to OFF
hgs
parents:
diff changeset
    36
    
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
    
hgs
parents:
diff changeset
    39
    
hgs
parents:
diff changeset
    40
    
hgs
parents:
diff changeset
    41
    
hgs
parents:
diff changeset
    42
    
hgs
parents:
diff changeset
    43
    
hgs
parents:
diff changeset
    44
    
hgs
parents:
diff changeset
    45
    
hgs
parents:
diff changeset
    46
    
hgs
parents:
diff changeset
    47
  Scenario: Audio Effects view - Change settings and Exit
hgs
parents:
diff changeset
    48
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    49
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    50
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    51
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    52
    When I select Audio effects from the Options menu
hgs
parents:
diff changeset
    53
    Then the Audio effects pop up is displayed
hgs
parents:
diff changeset
    54
    And Audio effects settings are Balance 0 and Loudness Off
hgs
parents:
diff changeset
    55
    When I drag the slider to the Right 40 pixels
hgs
parents:
diff changeset
    56
    And I tap the Loudness toggle
hgs
parents:
diff changeset
    57
    Then Audio effects settings are Balance 25 and Loudness On
hgs
parents:
diff changeset
    58
    When the application is closed
hgs
parents:
diff changeset
    59
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    60
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    61
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    62
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    63
    When I select Audio effects from the Options menu
hgs
parents:
diff changeset
    64
    Then the Audio effects pop up is displayed
hgs
parents:
diff changeset
    65
    And Audio effects settings are Balance 25 and Loudness On
hgs
parents:
diff changeset
    66
    
hgs
parents:
diff changeset
    67
  Scenario: Playbackview options menu
hgs
parents:
diff changeset
    68
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    69
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    70
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    71
    When I Tap on Navi pane text area Music
hgs
parents:
diff changeset
    72
    Then the playback view options menu list is shown correctly
hgs
parents:
diff changeset
    73
    
hgs
parents:
diff changeset
    74
  Scenario: Now Playing View Q4- Activate shuffle- go back to Songs view and play another song - check shuffle is ON
hgs
parents:
diff changeset
    75
		Given the MusicPlayer application is active
hgs
parents:
diff changeset
    76
    And I select the song number 1 of the list
hgs
parents:
diff changeset
    77
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    78
    When I set shuffle to ON
hgs
parents:
diff changeset
    79
    Then musicplayer plays the following songs after song 1 randomly
hgs
parents:
diff changeset
    80
    When I press the back button
hgs
parents:
diff changeset
    81
    And I select the song number 4 of the list
hgs
parents:
diff changeset
    82
    Then The song number 4 of the library is shown in playback view
hgs
parents:
diff changeset
    83
    And shuffle is set to ON
hgs
parents:
diff changeset
    84
    
hgs
parents:
diff changeset
    85
  Scenario: Now playing view H1- Shuffle OFF
hgs
parents:
diff changeset
    86
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    87
    And I select the song number 1 of the list 
hgs
parents:
diff changeset
    88
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
    89
    When I set shuffle to OFF
hgs
parents:
diff changeset
    90
    And I wait until the song change
hgs
parents:
diff changeset
    91
    Then The song number 2 of the library is shown in playback view
hgs
parents:
diff changeset
    92
    And I wait until the song change
hgs
parents:
diff changeset
    93
    Then The song number 3 of the library is shown in playback view
hgs
parents:
diff changeset
    94
    Then the application is closed
hgs
parents:
diff changeset
    95
    
hgs
parents:
diff changeset
    96
  Scenario: Playback view control bar to FW,RW,Play-pause.
hgs
parents:
diff changeset
    97
    Given the MusicPlayer application is active
hgs
parents:
diff changeset
    98
    And I select the song number 1 of the list 
hgs
parents:
diff changeset
    99
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
   100
    And the song in the playback view is Playing
hgs
parents:
diff changeset
   101
    When I press the button FW in the PlaybackToolbar
hgs
parents:
diff changeset
   102
    Then The song number 2 of the library is shown in playback view
hgs
parents:
diff changeset
   103
    And the song in the playback view is Playing
hgs
parents:
diff changeset
   104
    When I press the button RW in the PlaybackToolbar twice
hgs
parents:
diff changeset
   105
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
   106
    When I single press the button RW in the PlaybackToolbar and it is playing it starts from the beginning 
hgs
parents:
diff changeset
   107
    When I press the button Pause in the PlaybackToolbar
hgs
parents:
diff changeset
   108
    Then the song in the playback view is Paused
hgs
parents:
diff changeset
   109
    When I press the button FW in the PlaybackToolbar
hgs
parents:
diff changeset
   110
    Then The song number 2 of the library is shown in playback view
hgs
parents:
diff changeset
   111
    Then the song in the playback view is Paused
hgs
parents:
diff changeset
   112
    When I press the button RW in the PlaybackToolbar
hgs
parents:
diff changeset
   113
    Then The song number 1 of the library is shown in playback view
hgs
parents:
diff changeset
   114
    Then the song in the playback view is Paused