cryptomgmtlibs/securityutils/test/trecog/scripts/trecogjava.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 24 Nov 2009 09:06:03 +0200
changeset 29 ece3df019add
parent 8 35751d3474b7
permissions -rw-r--r--
Revision: 200948 Kit: 200948

//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "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: 
//
//! @file
// Recog unit (integration) tests
PRINT Run Java Recog test

LOAD_SUITE trecogserver

START_TESTCASE SEC-JAVATRECOG-0001

//! @SYMTestCaseID 		SEC-JAVATRECOG-0001
//! @SYMTestCaseDesc 		to recognize a small jad file
//! 				(recognizeSmallJad)
//! @SYMDEF 			DEF071593
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		1. to recognize a small JAD passed by File Name
//! 				2. to recognize a small JAD passed by Handle
//! 				3. to recognize a small JAD passed by name/buffer
//! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
//! @SYMDevelopedForRelease 	Mike

RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameSmallJad
RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleSmallJad
RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferSmallJad

END_TESTCASE SEC-JAVATRECOG-0001

START_TESTCASE SEC-JAVATRECOG-0004

//! @SYMTestCaseID 		SEC-JAVATRECOG-0004
//! @SYMTestCaseDesc 		to recognize a large jad file
//! 				(recognizeLargeJad)
//! @SYMDEF 			DEF071593 INC093580
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		1. to recognize a large JAD passed by File Name (DEF071593)
//! 				2. to recognize a large JAD passed by Handle (DEF071593)
//! 				3. to recognize a large JAD passed by name/buffer (DEF071593)
//! 				4. to recognize a large JAD passed by name/short buffer (INC093580)
//! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
//! @SYMDevelopedForRelease 	Mike

RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameLargeJad
RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByHandleLargeJad
RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByBufferLargeJad
RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogjava.ini PassByShortBufferLargeJad

END_TESTCASE SEC-JAVATRECOG-0004

START_TESTCASE SEC-JAVATRECOG-0008

//! @SYMTestCaseID 		SEC-JAVATRECOG-0008
//! @SYMTestCaseDesc 		to recognize a very large JAD passed by name
//! 				(recognizeVeryLargeJad)
//! @SYMDEF 			INC092383 	Invalid JAD File Causes Phone To Freeze/Hang
//! @SYMTestPriority 		Critical
//! @SYMTestActions 		to recognize a very large jad file (without reading entire file
//! @SYMTestExpectedResults 	text/vnd.sun.j2me.app-descriptor
//! @SYMDevelopedForRelease 	Mike

// Note very short timeout on the following step to check if entire file is being read.
RUN_UTILS CopyFile c:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
RUN_UTILS CopyFile z:\midpfiles\newhuge.jar c:\trecog\verylargejad.jad
RUN_TEST_STEP 10 trecogserver RecogStep c:\trecog\trecogjava.ini PassByNameVeryLargeJad
RUN_UTILS DeleteFile c:\trecog\verylargejad.jad

END_TESTCASE SEC-JAVATRECOG-0008