Skip to main content

How to use DVR Test Runner

5 replies [Last post]
scottkell
Offline
Joined: 2007-04-04
Points: 0

I would like to test DVR in 1.1.4 alpha. I know the qa xlets have a DVR Test Runner which I tried to run, but I have no idea if its working.

Here's what I did:
- I copied env/qa/hostapp.properties to env/.
- Started the RI with ri.bat
- Selected DVR Test Service.
- I was presented with 4 menu choices.
- Selected the DVRTestMonApp. Menu went away. What happened?
- Hit Menu. Selected 'DVRTestRunner.
- Presented with several groups. Hit '3' to try group 3.
- Some logging happened. but not sure if the test passed or what to expect

How do I configure this to run?
How do I know the DVR tests are working? Steps? Expected result?
Do I need to recompile MPE to have 2 tuners?

Thanks for any help

Message was edited by: scottkell

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cpratt
Offline
Joined: 2008-12-18
Points: 0

I've updated the runRI.sh script to make running DVRTestRunner easier (rev 7908).

If you run the runRI.sh script with the "-dvrtestrunner -setup" options, DVRTestRunner will come up when the RI starts.

csweeney
Offline
Joined: 2009-04-11
Points: 0

We are currently using a different XLet for DVR test/exercising. Configuration steps:

copy
$OCAPROOT/apps/qa/org/cablelabs/xlet/DvrExerciser/hostapp.properties
to
$OCAPROOT/bin/$OCAPTC/env/hostapp.properties

copy
$RICOMMONROOT/resources/tunedata/config.properties
to
$OCAPROOT/bin/$OCAPTC/env/qa/xlet/config.properties

Make sure
OCAP.xait.ignore=true
in
$OCAPROOT/bin/$OCAPTC/env/final.properties

Start the RI (runRI.bat). Instructions for use are onscreen.
There is also a command file mechanism for automation purposes.
Further documentation is in
$OCAPROOT/apps/qa/org/cablelabs/xlet/DvrExerciser/command_files/readme.txt

(forgot the readme.txt filename)

Message was edited by: csweeney

scottkell
Offline
Joined: 2007-04-04
Points: 0

Thanks Chris. I'll give that a try.

cpratt
Offline
Joined: 2008-12-18
Points: 0

Scott,

Some of the tests in DVRTestRunner are written for 2 tuners. But there are many that are not.

Here are some basic tests from the "TestBasicRecordingAndPlayback" group (group 3):

TestScheduledDigitalRecording (Test 3): Schedules a 30-second recording, ensure that it completes.

TestRecordingPlayback (Test 5): Schedules a recording, lets it complete, and then plays it back via a ServiceContext

TestRecordingPlaybackUsingJMF (Test 6): Schedules a recording, lets it complete, and then plays it back via a stand-alone JMF Player

TestRecordingPlaybackSetMediaTime (Test 7): Schedules a recording, lets it complete, plays it back via a ServiceContext, and then jumps back to media time of 10 seconds.

All these tests print out progress information along with either a PASS or FAIL at the end of the test.

Let me know if you'd like some pointers for some more test scenarios.

hth,

cp

cpratt
Offline
Joined: 2008-12-18
Points: 0

BTW, you need to copy the config.properties from $OCAPROOT/apps/qa/org/cablelabs/xlet/DvrTest/config.properties to $OCAPROOT/bin/$OCAPTC/env/qa/xlet. This file tells DVRTestRunner what Services it should utilize in its testing.

I'll update the runRI.sh script to add a -dvrtestrunner -setup option to simplify the config process.