cryptomgmtlibs/securityutils/test/trecog/scripts/trecogjava.script
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 recognizeSmallJad
       
    23 
       
    24 //! @SYMTestCaseID SEC-JAVATRECOG-1
       
    25 //! @SYMTestCaseDesc to recognize a small JAD passed by File Name
       
    26 //! @SYMDEF DEF071593
       
    27 //! @SYMTestPriority Critical
       
    28 //! @SYMTestActions to recognize a small jad file
       
    29 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    30 //! @SYMDevelopedForRelease Mike
       
    31 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameSmallJad
       
    32 
       
    33 //! @SYMTestCaseID SEC-JAVATRECOG-2
       
    34 //! @SYMTestCaseDesc to recognize a small JAD passed by Handle
       
    35 //! @SYMDEF DEF071593
       
    36 //! @SYMTestPriority Critical
       
    37 //! @SYMTestActions to recognize a small jad file
       
    38 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    39 //! @SYMDevelopedForRelease Mike
       
    40 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleSmallJad
       
    41 
       
    42 //! @SYMTestCaseID SEC-JAVATRECOG-3
       
    43 //! @SYMTestCaseDesc to recognize a small JAD passed by name/buffer
       
    44 //! @SYMDEF DEF071593
       
    45 //! @SYMTestPriority Critical
       
    46 //! @SYMTestActions to recognize a small jad file
       
    47 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    48 //! @SYMDevelopedForRelease Mike
       
    49 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferSmallJad
       
    50 
       
    51 END_TESTCASE recognizeSmallJad
       
    52 
       
    53 START_TESTCASE recognizeLargeJad
       
    54 
       
    55 //! @SYMTestCaseID SEC-JAVATRECOG-4
       
    56 //! @SYMTestCaseDesc to recognize a large JAD passed by File Name
       
    57 //! @SYMDEF DEF071593
       
    58 //! @SYMTestPriority Critical
       
    59 //! @SYMTestActions to recognize a large jad file
       
    60 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    61 //! @SYMDevelopedForRelease Mike
       
    62 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameLargeJad
       
    63 
       
    64 //! @SYMTestCaseID SEC-JAVATRECOG-5
       
    65 //! @SYMTestCaseDesc to recognize a large JAD passed by Handle
       
    66 //! @SYMDEF DEF071593
       
    67 //! @SYMTestPriority Critical
       
    68 //! @SYMTestActions to recognize a large jad file
       
    69 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    70 //! @SYMDevelopedForRelease Mike
       
    71 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleLargeJad
       
    72 
       
    73 //! @SYMTestCaseID SEC-JAVATRECOG-6
       
    74 //! @SYMTestCaseDesc to recognize a large JAD passed by name/buffer
       
    75 //! @SYMDEF DEF071593
       
    76 //! @SYMTestPriority Critical
       
    77 //! @SYMTestActions to recognize a large jad file
       
    78 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    79 //! @SYMDevelopedForRelease Mike
       
    80 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferLargeJad
       
    81 
       
    82 //! @SYMTestCaseID SEC-JAVATRECOG-7
       
    83 //! @SYMTestCaseDesc to recognize a large JAD passed by name/short buffer
       
    84 //! @SYMDEF INC093580
       
    85 //! @SYMTestPriority Critical
       
    86 //! @SYMTestActions to recognize a large jad file
       
    87 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
    88 //! @SYMDevelopedForRelease Mike
       
    89 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByShortBufferLargeJad
       
    90 
       
    91 END_TESTCASE recognizeLargeJad
       
    92 
       
    93 START_TESTCASE recognizeVeryLargeJad
       
    94 //! @SYMTestCaseID SEC-JAVATRECOG-7
       
    95 //! @SYMTestCaseDesc to recognize a very large JAD passed by name
       
    96 //! @SYMDEF INC092383 	Invalid JAD File Causes Phone To Freeze/Hang
       
    97 //! @SYMTestPriority Critical
       
    98 //! @SYMTestActions to recognize a very large jad file (without reading entire file
       
    99 //! @SYMTestExpectedResults text/vnd.sun.j2me.app-descriptor
       
   100 //! @SYMDevelopedForRelease Mike
       
   101 // Note very short timeout on the following step to check if entire file is being read.
       
   102 RUN_UTILS CopyFile c:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
       
   103 RUN_UTILS CopyFile z:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
       
   104 RUN_TEST_STEP 10 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameVeryLargeJad
       
   105 RUN_UTILS DeleteFile c:\trecog\verylargejad.jad
       
   106 END_TESTCASE recognizeVeryLargeJad