Update contrib.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 // Recog unit (integration) tests
18 PRINT Run Java Recog test
20 LOAD_SUITE trecogserver
22 START_TESTCASE SEC-JAVATRECOG-0001
24 //! @SYMTestCaseID SEC-JAVATRECOG-0001
25 //! @SYMTestCaseDesc to recognize a small jad file
26 //! (recognizeSmallJad)
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
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
39 END_TESTCASE SEC-JAVATRECOG-0001
41 START_TESTCASE SEC-JAVATRECOG-0004
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
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
60 END_TESTCASE SEC-JAVATRECOG-0004
62 START_TESTCASE SEC-JAVATRECOG-0008
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
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
79 END_TESTCASE SEC-JAVATRECOG-0008