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