19
|
1 |
/* ===========================================================================
|
|
2 |
* Copyright © 2006-2007 Nokia Corporation.
|
|
3 |
* This material, including documentation and any related
|
|
4 |
* computer programs, is protected by copyright controlled by
|
|
5 |
* Nokia Corporation. All rights are reserved. Copying,
|
|
6 |
* including reproducing, storing, adapting or translating, any
|
|
7 |
* or all of this material requires the prior written consent of
|
|
8 |
* Nokia Corporation. This material also contains confidential
|
|
9 |
* information which may not be disclosed to others without the
|
|
10 |
* prior written consent of Nokia Corporation.
|
|
11 |
* ============================================================================
|
|
12 |
*/
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
[Test]
|
|
17 |
title Get_ALL_Application
|
|
18 |
create tappmgrprovider foobar
|
|
19 |
foobar getlisttest Application NULL NULL 0 TempAll 0
|
|
20 |
delete foobar
|
|
21 |
[Endtest]
|
|
22 |
|
|
23 |
//----------------------------------------------------------------------
|
|
24 |
[Test]
|
|
25 |
title Get_MimeType_gif
|
|
26 |
create tappmgrprovider foobar
|
|
27 |
foobar getlisttest Application NULL image/gif 0 Temp1 0
|
|
28 |
delete foobar
|
|
29 |
[Endtest]
|
|
30 |
|
|
31 |
//---------------------------------------------------------------------
|
|
32 |
[Test]
|
|
33 |
title Get_applicationtype_3gp
|
|
34 |
create tappmgrprovider foobar
|
|
35 |
foobar getlisttest Application NULL video/3gpp 0 Temp2 0
|
|
36 |
delete foobar
|
|
37 |
[Endtest]
|
|
38 |
|
|
39 |
[Test]
|
|
40 |
title Get_Application_Txt
|
|
41 |
create tappmgrprovider foobar
|
|
42 |
foobar getlisttest Application c:\data\test.txt NULL 0 Temp3 0
|
|
43 |
delete foobar
|
|
44 |
[Endtest]
|
|
45 |
|
|
46 |
|
|
47 |
//-----------------------------------------------------------------------
|
|
48 |
[Test]
|
|
49 |
title Get_Document_Handler
|
|
50 |
create tappmgrprovider foobar
|
|
51 |
foobar getlisttest Application c:\data\test.txt NULL 0 Temp 0
|
|
52 |
delete foobar
|
|
53 |
[Endtest]
|
|
54 |
|
|
55 |
//-------------------------------------------------------------------------
|
|
56 |
[Test]
|
|
57 |
title LaunchApp_Image_viewer
|
|
58 |
create tappmgrprovider foobar
|
|
59 |
foobar launchApp s60uid: 0x101f4d90 NULL NULL NULL NULL NULL 0
|
|
60 |
delete foobar
|
|
61 |
[Endtest]
|
|
62 |
|
|
63 |
|
|
64 |
----------------------------------------------------------------
|
|
65 |
[Test]
|
|
66 |
title LaunchApp_Real_Player_Neagtive
|
|
67 |
create tappmgrprovider foobar
|
|
68 |
foobar launchApp s60uid: 10005a3e NULL NULL NULL NULL NULL -1
|
|
69 |
delete foobar
|
|
70 |
[Endtest]
|
|
71 |
|
|
72 |
----------------------------------------------------------------
|
|
73 |
[Test]
|
|
74 |
title LaunchApp_JarFile_Negative
|
|
75 |
create tappmgrprovider foobar
|
|
76 |
foobar launchApp s60uid: 0x10137302 NULL NULL NULL NULL NULL -1
|
|
77 |
delete foobar
|
|
78 |
[Endtest]
|
|
79 |
----------------------------------------------------------------
|
|
80 |
[Test]
|
|
81 |
title LaunchApp_Recorder_Positive
|
|
82 |
create tappmgrprovider foobar
|
|
83 |
foobar launchApp s60uid: 0x100058ca NULL NULL NULL NULL NULL 0
|
|
84 |
delete foobar
|
|
85 |
[Endtest]
|
|
86 |
|
|
87 |
//-----------------------------------------------------------------
|
|
88 |
[Test]
|
|
89 |
title LaunchApp_Messaging
|
|
90 |
create tappmgrprovider foobar
|
|
91 |
foobar launchApp s60uid: 0x100058c5 NULL NULL NULL NULL NULL 0
|
|
92 |
delete foobar
|
|
93 |
[Endtest]
|
|
94 |
|
|
95 |
|
|
96 |
[Test]
|
|
97 |
title LaunchDoc_Path_Chained_Neg
|
|
98 |
create tappmgrprovider foobar
|
|
99 |
//path handle MimeType mode callback expectedresult
|
|
100 |
foobar launchDoc c:\Data\Images\sapi.jpg NULL NULL Chained NULL -1
|
|
101 |
delete foobar
|
|
102 |
[Endtest]
|
|
103 |
|
|
104 |
|
|
105 |
[Test]
|
|
106 |
title LaunchDoc_Path_stand_alone
|
|
107 |
create tappmgrprovider foobar
|
|
108 |
//path handle MimeType mode callback expectedresult
|
|
109 |
foobar launchDoc c:\Data\Images\pict.jpg NULL NULL NULL NULL 0
|
|
110 |
delete foobar
|
|
111 |
[Endtest]
|
|
112 |
|
|
113 |
[Test]
|
|
114 |
title LaunchDoc_Path_bmp_Negative
|
|
115 |
create tappmgrprovider foobar
|
|
116 |
foobar launchDoc c:\Data\Images\test1.bmp NULL NULL NULL NULL -1
|
|
117 |
delete foobar
|
|
118 |
[Endtest]
|
|
119 |
|
|
120 |
// ---------------Automates Test cases ==========================================
|
|
121 |
[Test]
|
|
122 |
title Get_ApplicationList_Postive
|
|
123 |
create tappmgrprovider foobar
|
|
124 |
//content Document MimeType ExpectedResult FileName NoOfUids
|
|
125 |
foobar getlisttest Application NULL NULL 0 Result3 3 0x10005901 0x10008d39 0x101f8512
|
|
126 |
delete foobar
|
|
127 |
[Endtest]
|
|
128 |
|
|
129 |
|
|
130 |
[Test]
|
|
131 |
title Get_ApplicationList_Negative
|
|
132 |
create tappmgrprovider foobar
|
|
133 |
//content Document MimeType ExpectedResult FileName NoOfUids(output)
|
|
134 |
foobar getlisttest Application NULL NULL -1 temp 3 0x10008d39 0x10005955 0x11111111
|
|
135 |
delete foobar
|
|
136 |
[Endtest]
|
|
137 |
|
|
138 |
[Test]
|
|
139 |
title Get_Application_Browser_AppMgr
|
|
140 |
create tappmgrprovider foobar
|
|
141 |
//content Document MimeType ExpectedResult FileName NoOfUids(output)_
|
|
142 |
foobar getlisttest Application NULL NULL 0 temp 2 0x10008d39 0x101f8512
|
|
143 |
delete foobar
|
|
144 |
[Endtest]
|
|
145 |
|
|
146 |
[Test]
|
|
147 |
title Get_Application_MediaP_Messaging
|
|
148 |
create tappmgrprovider foobar
|
|
149 |
//content Document MimeType ExpectedResult FileName NoOfUids(output)_
|
|
150 |
foobar getlisttest Application NULL NULL 0 temp 2 0x10008d39 0x101f8512
|
|
151 |
delete foobar
|
|
152 |
[Endtest]
|
|
153 |
|
|
154 |
[Test]
|
|
155 |
title Get_Application_Calendar
|
|
156 |
create tappmgrprovider foobar
|
|
157 |
//content Document MimeType ExpectedResult FileName NoOfUids(output)_
|
|
158 |
foobar getlisttest Application NULL NULL 0 temp 1 0x10005901
|
|
159 |
delete foobar
|
|
160 |
[Endtest]
|
|
161 |
|
|
162 |
|
|
163 |
[Test]
|
|
164 |
title Get_PackageList
|
|
165 |
create tappmgrprovider foobar
|
|
166 |
foobar getlisttest UserInstalledPackage NULL NULL 0 Temp 0
|
|
167 |
delete foobar
|
|
168 |
[Endtest]
|