[Define]
URL1 "rtsp:\/\/vishnu.wipsl.com/StarWreck_256.3gp"

3G_IAP "Internet"
EMULATOR_IAP "Ethernet with Daemon Dynamic IP"
[Enddefine]

[Test]
title Setup

create VCXTestUtilModule Util
// Copies some known 3G AP to "Internet" destination with "Internet" name for the AP.
Util CopyMethod "Internet" "Internet" "Internet"
// Disable connection dialog for "Internet" destination.
Util SetConnectionMethodIntAttribute "Internet" "Internet" 507 2 // 507 is ECmSeamlessnessLevel
delete Util

[Endtest]

[Test]
title Create and delete
create FusionMpxPlayer_ApiTest test
test Create
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - OpenLocalFile
create FusionMpxPlayer_ApiTest test
test Create
pause 3000
test OpenRandomFile
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - SetVolume
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test SetVolume 10
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Play
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 4000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - PlayWithFadeIn
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test PlayWithFadeIn
pause 4000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Pause
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test Pause
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Stop
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test Stop
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Pause and Play
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test Pause
pause 2000
test Play
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - PlayPause
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test PlayPause
pause 3000
test PlayPause
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Next
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Next
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Previous
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Previous
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Replay
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Replay
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - StartSeekForward
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test StartSeekForward
pause 2000
test StopSeeking
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - StartSeekBackward
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test StartSeekBackward
pause 2000
test StopSeeking
pause 2000
test ShutdownTester
delete test
[Endtest]


[Test]
title Local file - General seek stress
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
loop 10
test StartSeekForward
pause 1500
test StartSeekBackward
pause 500
endloop
test StopSeeking
pause 2000
test ShutdownTester
delete test
[Endtest]


[Test]
title Local file - DecreaseVolume
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test SetVolume 20
pause 3000
test DecreaseVolume
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - IncreaseVolume
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test IncreaseVolume
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - MuteVolume
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test SetVolume 20
pause 3000
test MuteVolume
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - UnMuteVolume
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test SetVolume 20
pause 2000
test MuteVolume
pause 1000
test UnMuteVolume
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - SetVolume STRESS
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test SetVolume 1
pause 1000
test SetVolume 100
pause 1000
test SetVolume 20
pause 1000
test SetVolume 80
pause 1000
test SetVolume 40
pause 1000
test SetVolume 10
pause 1000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Volume STRESS
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
loop 12
print LOOP_COUNTER
test IncreaseVolume
test DecreaseVolume
endloop

test SetVolume 10

test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Close
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Close
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - ApplyEffect
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test ApplyEffect 2
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - DisableEffect
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test DisableEffect
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - ApplyEffect and DisableEffect
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test ApplyEffect 2
pause 2000
test DisableEffect
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - PreservePosition
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test PreservePosition
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - PreserveState
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test PreserveState
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - CloseItem
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test CloseItem
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - CancelInit
create FusionMpxPlayer_ApiTest test
test Create
test SetCommandCompletionWait 0
test OpenRandomFile
test CancelInit
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - CancelInit after init
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test CancelInit
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - ResetPreserveState
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 2000
test ResetPreserveState
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - UnloadNonActivePlugin
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 2000
test UnloadNonActivePlugin
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - ClearKeyBuffer
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 2000
test ClearKeyBuffer
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoSeekForward
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test VideoSeekForward
pause 2000
test VideoEndSeek
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoSeekBackward
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 3000
test Play
pause 3000
test VideoSeekBackward
pause 2000
test VideoEndSeek
pause 2000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoNaturalAspectRatio
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 3000
test VideoNaturalAspectRatio
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoZoomAspectRatio
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 3000
test VideoZoomAspectRatio
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoStretchAspectRatio
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 3000
test VideoStretchAspectRatio
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoDefaultAspectRatio
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 3000
test VideoDefaultAspectRatio
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - Aspect Ratio STRESS
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 500

loop 5
print LOOP_COUNTER
test VideoNaturalAspectRatio
pause 200
test VideoZoomAspectRatio
pause 200
test VideoStretchAspectRatio
pause 200
endloop

test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoHandleForeground
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 500

test VideoHandleForeground
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Local file - VideoHandleBackground
create FusionMpxPlayer_ApiTest test
test Create
test OpenRandomFile
pause 1000
test Play
pause 500

test VideoHandleBackground
pause 3000
test ShutdownTester
delete test
[Endtest]

[Test]
title Stream test
create FusionMpxPlayer_ApiTest test
test Create
pause 3000
test OpenUrl URL1 3G_AP
pause 2000
test ShutdownTester
delete test
[Endtest]

