Integration test - Version 2.0

The purpose of this test is to validate that an installation of the wowza plugin was successful.

Prerequisites

  1. An MCM session validation server must run. This test assumes that the MCM validation server mock is used. See Setup MCM mock version 2 for instructions on how to set the server up.

  2. Setup plugin to use the mock. The file: /conf/chaos/chaos-streaming-server-plugin.properties

    GeneralMCMServerURL=http://172.18.224.234:9998/Portal/API/PortalService.svc
  3. Setup db-server

    StatisticsLoggingLocallyInDB=true
    StatisticsLoggingJDBCDriver=org.postgresql.Driver
    StatisticsLoggingDBConnectionURL=jdbc:postgresql://triton:5432/larm-devel
    StatisticsLoggingDBUser=larm
    StatisticsLoggingDBPassword=larm1234

Integration tests

Test the validation module

Confirm that video streams are validated correctly.

Validate that a video can be played

  1. Start Wowzas SimpleVideoStreaming client:

    1. Linux: file:///usr/local/WowzaMediaServer/examples/SimpleVideoStreaming/client/simplevideostreaming.html.

    2. Mac: file:///Library/WowzaMediaServer/examples/SimpleVideoStreaming/client/simplevideostreaming.html.

    3. Windows: ...
  2. Insert parameters:

    Server: rtmp://iapetus:1936/chaos?sessionID=6e1245e9-2114-4c14-912e-5896fc8b1aa6.mp3&objectID=976&includeFiles=true
    Stream: mp3:6e1245e9-2114-4c14-912e-5896fc8b1aa6.mp3
  3. Success: The media file is played in the browser.

Validate that a video is rejected

  1. Insert parameters:
    1. Server: rtmp://iapetus:1935/chaos?sessionID=invalid&objectID=976&includeFiles=true

    2. Stream: mp3:6e1245e9-2114-4c14-912e-5896fc8b1aa6.mp3
  2. Success: Nothing is played in the browser.

Test eventlogging

Confirm that events are logged correctly.

Test that events are sent to MCM

  1. Generate event sequence by doing the following
    1. Start video playback by pressing the Play button
      1. Wait 3 seconds
    2. Pause playback
    3. Resume playback
      1. Wait 4 seconds
    4. Rewind
      1. Wait 6 seconds
    5. Seek to somewhere in the middle
      1. Wait 3 seconds
    6. Pause playback
    7. Seek to somewhere in the middle
    8. Resume playback
      1. Wait 3 seconds
    9. Pause playback
    10. Stop playback
  2. The result in MCM is expected to be (Event, start, stop):
    1. (PLAY, 0, 0)
    2. (PAUSE, 0, 3.000)
    3. (REWIND, 3.000, 7.000)
    4. (PAUSE, 0, 6.000)
    5. (PAUSE, 200.000, 203.000)
    6. (PAUSE, 100.000, 103.000)
    7. (STOP, 0, 0)
  3. Verify that the same result can be found in the db.

Test that local logging can be turned off globally

  1. Set property StatisticsLoggingLocallyInDB=false.

  2. Generate a few event.
  3. Check that events are logged in MCM
  4. Check that events are missing in local DB.

Test that local logging can be turned off per session

  1. Set property StatisticsLoggingLocallyInDB=true.

  2. Start Wowzas SimpleVideoStreaming client:

    1. Linux: file:///usr/local/WowzaMediaServer/examples/SimpleVideoStreaming/client/simplevideostreaming.html.

    2. Mac: file:///Library/WowzaMediaServer/examples/SimpleVideoStreaming/client/simplevideostreaming.html.

    3. Windows: ...
  3. Insert parameters:

    Server: rtmp://iapetus:1935/chaos?sessionID=6e1245e9-2114-4c14-912e-5896fc8b1aa6.mp3&objectID=976&includeFiles=true&statistics=off
    Stream: mp3:6e1245e9-2114-4c14-912e-5896fc8b1aa6.mp3
  4. Success: The statistics module does not log anything in the db or the MCM-mock.

Integration test - version 2.0 (last edited 2012-01-16 08:12:41 by heb)