mmlibs/mmfw/tsrc/mmvalidationsuite/mvsintegrationtest/scripts/tsi_mvs_videoagent.script
changeset 0 40261b775718
child 54 b68f3e90dca1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmlibs/mmfw/tsrc/mmvalidationsuite/mvsintegrationtest/scripts/tsi_mvs_videoagent.script	Tue Feb 02 01:56:55 2010 +0200
@@ -0,0 +1,215 @@
+@file tsi_mvs_videoagent.script
+// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Creation Date 10/08/2005
+// 
+//
+
+PRINT Run the Multimedia Validation Video Client Agent tests
+PRINT 
+
+//
+LOAD_SUITE tsi_mvs_agents.dll
+
+//////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////// VIDEO CLIENT AGENTS :: Positive Testing ////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0001-HP
+//!@SYMTestCaseDesc           Open a AVI (Xvid) file. Play Pause and Position test.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open an AVI (Xvid) file. 2. Set position 3. Play 4. Pause after 1 second, check if KErrNotSupported is returned. 5. Get
+//! Position 6. Set to some other position (before the current position) 7. Play till end.
+//!@SYMTestExpectedResults    Video file, opened and played successfully, without any errors
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0001-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0002-HP
+//!@SYMTestCaseDesc           Open a AVI (Xvid) file,  Play and Rotation test.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open an AVI (Xvid) file, without giving the Video Controller UID. 2. Set Rotation 3. Play 4. Set Rotation 5. Get the
+//! rotation value and check 6. Stop Playback. 6. Play again till end.
+//!@SYMTestExpectedResults    Video file, opened and played successfully, without any errors
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0002-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0003-HP
+//!@SYMTestCaseDesc           Open a AVI (Xvid) file, Play and Scale test.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open an AVI (Xvid) file. 2. Set Scaling factor. 3. Play from a Start point to an end point. 4. Get the scaling value
+//! and check. 5. Stop Playback after 5 seconds.
+//!@SYMTestExpectedResults    Video file, opened and played successfully, without any errors
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0003-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0004-HP
+//!@SYMTestCaseDesc           Video Playback settings Test
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Video Playback priority 2. Enquire video duration 3. Set the volume to the maximum. 4. Set the display window. 5. Get
+//! meta information 6. Get the Controller implementation info of the active controller.
+//!@SYMTestExpectedResults    The function call completed successfully, with KErrNone
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0004-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0005-HP
+//!@SYMTestCaseDesc           Create a new AVI (X-Vid) file. Record. Play the recorded file.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Create a New MPEG2 file, using Record agent. 2. Set Video Frame rate 3. Set Video Frame size 4. Set Video / Audio Bit
+//! rate 5. Set Audio Enabled 6. Set Video / Audio Type 7. Record, Stop after 5 seconds. 8. Play using play agent 9. After Playing, get the various settings
+//! and compare with the actuals.
+//!@SYMTestExpectedResults    Record completes with KErrNone. The recorded file is played and all callbacks received
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0005-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0006-HP
+//!@SYMTestCaseDesc           Video Record Settings Test
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open a Video File using record agent. 2. Set gain to maximum and enquire. 3. Specify maximum clip size in bytes. 4. Get
+//! Supported Audio / Video types. 5. Get the controller in use.
+//!@SYMTestExpectedResults    The function call completed successfully, with KErrNone.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0006-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0007-HP
+//!@SYMTestCaseDesc           Set meta-information
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open a MPEG2 file. 2. Get the number of meta data entries. 3. Add a meta data entry. 4. Remove a particular metadata
+//! entry. 5. Replace a metadata entry with another value.
+//!@SYMTestExpectedResults    The function calls completed successfully, with KErrNone
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0007-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0010-HP
+//!@SYMTestCaseDesc           Log Verification test for Create a new AVI Video File and Record functionality.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Empty the contents of the log file 2. Create a new AVI File 3. Record for 2 seconds 4. Compare the log file with the
+//! reference log file.
+//!@SYMTestExpectedResults    The Log file is checked for modification dates, and the existance of a sample string.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0010-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0011-HP
+//!@SYMTestCaseDesc           Log Verification test for  Play the recorded AVI Video file functionality.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Empty the contents of the log file 2. Open the recorded AVI File 3. Play using the Video Play Agent 4. Compare the log
+//! file with the reference log file.
+//!@SYMTestExpectedResults    The Log file is checked for modification dates, and the existance of a sample string.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0011-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0021-HP
+//!@SYMTestCaseDesc           Open a AVI (Xvid) file. Play and Set & get crop region test.
+//!@SYMPREQ                   PREQ1714
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open the AVI File 2. Set & get the crop region 3. Play using the Video Play Agent 
+//!@SYMTestExpectedResults    The video plays with the newly set crop region
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0021-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+//////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////// VIDEO CLIENT AGENTS :: Negative Testing ////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0012-HP
+//!@SYMTestCaseDesc           Load corrupted file.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            Attempt to load a file that has been corrupted.
+//!@SYMTestExpectedResults    Any of the predefined error codes.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0012-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0013-HP
+//!@SYMTestCaseDesc           Load a video clip that uses a codec that isn't supported.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            Attempt to load and initilise a file that has an unsupported codec.
+//!@SYMTestExpectedResults    Any of the predefined error codes.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0013-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0014-HP
+//!@SYMTestCaseDesc           Open Unsupported file (text file) and try to record.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            Attempt to load a file containing text data without giving the controller UID
+//!@SYMTestExpectedResults    Invalid File.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0014-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0015-HP
+//!@SYMTestCaseDesc           Load a corrupt file
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            Record to a file which is already corrupt..
+//!@SYMTestExpectedResults    KerrNotSupported
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0015-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+// 
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0016-HP
+//!@SYMTestCaseDesc           Open Unsupported file (text file) and try to record.
+//!@SYMREQ                    REQ5477
+//!@SYMPREQ                   PREQ452
+//!@SYMTestPriority           2
+//!@SYMTestActions            1. Open a text file (*.txt) without giving the controller UID. 2. Start recording 3. Stop recording after two seconds.
+//!@SYMTestExpectedResults    Invalid File.
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0016-HP \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE 
+
+//!@SYMTestCaseID             MM-MVS-VIDEOAGENT-I-0017
+//!@SYMTestCaseDesc           Open a AVI (Xvid) file. Play Pause andResume Recording
+//!@SYMREQ                    REQ6996
+//!@SYMTestPriority           4
+//!@SYMTestActions            1. Open an AVI (Xvid) file. 2. Record                                           3. Pause after 1 second, check if KErrNone
+//! is returned. 4. Start Recording again.               5. Record till end.
+//!@SYMTestExpectedResults    Video file, opened and recorded successfully, without any errors
+RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-VIDEOAGENT-I-0017 \mvs\tsi_mvs_agents.ini
+TEST_COMPLETE