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