os/security/cryptomgmtlibs/securityutils/test/trecog/scripts/trecogjava.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 //
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of the License "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 //! @file
    17 // Recog unit (integration) tests
    18 PRINT Run Java Recog test
    19 
    20 LOAD_SUITE trecogserver
    21 
    22 START_TESTCASE SEC-JAVATRECOG-0001
    23 
    24 //! @SYMTestCaseID 		SEC-JAVATRECOG-0001
    25 //! @SYMTestCaseDesc 		to recognize a small jad file
    26 //! 				(recognizeSmallJad)
    27 //! @SYMDEF 			DEF071593
    28 //! @SYMTestPriority 		Critical
    29 //! @SYMTestActions 		1. to recognize a small JAD passed by File Name
    30 //! 				2. to recognize a small JAD passed by Handle
    31 //! 				3. to recognize a small JAD passed by name/buffer
    32 //! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
    33 //! @SYMDevelopedForRelease 	Mike
    34 
    35 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameSmallJad
    36 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleSmallJad
    37 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferSmallJad
    38 
    39 END_TESTCASE SEC-JAVATRECOG-0001
    40 
    41 START_TESTCASE SEC-JAVATRECOG-0004
    42 
    43 //! @SYMTestCaseID 		SEC-JAVATRECOG-0004
    44 //! @SYMTestCaseDesc 		to recognize a large jad file
    45 //! 				(recognizeLargeJad)
    46 //! @SYMDEF 			DEF071593 INC093580
    47 //! @SYMTestPriority 		Critical
    48 //! @SYMTestActions 		1. to recognize a large JAD passed by File Name (DEF071593)
    49 //! 				2. to recognize a large JAD passed by Handle (DEF071593)
    50 //! 				3. to recognize a large JAD passed by name/buffer (DEF071593)
    51 //! 				4. to recognize a large JAD passed by name/short buffer (INC093580)
    52 //! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
    53 //! @SYMDevelopedForRelease 	Mike
    54 
    55 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameLargeJad
    56 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleLargeJad
    57 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferLargeJad
    58 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByShortBufferLargeJad
    59 
    60 END_TESTCASE SEC-JAVATRECOG-0004
    61 
    62 START_TESTCASE SEC-JAVATRECOG-0008
    63 
    64 //! @SYMTestCaseID 		SEC-JAVATRECOG-0008
    65 //! @SYMTestCaseDesc 		to recognize a very large JAD passed by name
    66 //! 				(recognizeVeryLargeJad)
    67 //! @SYMDEF 			INC092383 	Invalid JAD File Causes Phone To Freeze/Hang
    68 //! @SYMTestPriority 		Critical
    69 //! @SYMTestActions 		to recognize a very large jad file (without reading entire file
    70 //! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
    71 //! @SYMDevelopedForRelease 	Mike
    72 
    73 // Note very short timeout on the following step to check if entire file is being read.
    74 RUN_UTILS CopyFile c:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
    75 RUN_UTILS CopyFile z:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
    76 RUN_TEST_STEP 10 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameVeryLargeJad
    77 RUN_UTILS DeleteFile c:\trecog\verylargejad.jad
    78 
    79 END_TESTCASE SEC-JAVATRECOG-0008