|
1 #*********************************************************************************** |
|
2 # |
|
3 # STIF test script file for testing settings database. |
|
4 # |
|
5 #*********************************************************************************** |
|
6 |
|
7 [StifSettings] |
|
8 CapsModifier= IptvTestClientApiCapsMod.exe |
|
9 [EndStifSettings] |
|
10 |
|
11 [Define] |
|
12 INCLUDE c:\testframework\VCXServiceManagementApiTest.inc |
|
13 INCLUDE c:\testframework\VCXServiceUpdating.inc |
|
14 INCLUDE c:\testframework\VCXServiceNames.inc |
|
15 INCLUDE c:\testframework\VCXErrors.inc |
|
16 INCLUDE c:\testframework\VCXDrives.inc |
|
17 [Enddefine] |
|
18 |
|
19 |
|
20 ### SYNC services |
|
21 |
|
22 #************************************************************************************ |
|
23 |
|
24 #------------------------------------------------------------------------------------ |
|
25 # |
|
26 # Test writing and reading settings |
|
27 # |
|
28 #------------------------------------------------------------------------------------ |
|
29 [Test] |
|
30 title ET21001 Create settings file |
|
31 create VCXSettingsDatabaseTest DBtest |
|
32 DBtest Create C_DRIVE "test.dat" |
|
33 DBtest Destroy |
|
34 delete DBtest |
|
35 [Endtest] |
|
36 |
|
37 #------------------------------------------------------------------------------------ |
|
38 # |
|
39 # Test writing and reading settings, with stupid filename |
|
40 # |
|
41 #------------------------------------------------------------------------------------ |
|
42 [Test] |
|
43 title ET21002 Create with long filename |
|
44 create VCXSettingsDatabaseTest DBtest |
|
45 DBtest Create C_DRIVE "Aummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm.dat" |
|
46 DBtest Destroy |
|
47 delete DBtest |
|
48 [Endtest] |
|
49 |
|
50 #------------------------------------------------------------------------------------ |
|
51 # |
|
52 # Test creating settings with odd filename, should produce an error (KErrBadName) |
|
53 # |
|
54 #------------------------------------------------------------------------------------ |
|
55 [Test] |
|
56 title ET21003 Create settings with an odd filename |
|
57 create VCXSettingsDatabaseTest DBtest |
|
58 allownextresult KERRBADNAME |
|
59 DBtest Create C_DRIVE "Badname" |
|
60 DBtest Destroy |
|
61 delete DBtest |
|
62 [Endtest] |
|
63 |
|
64 #------------------------------------------------------------------------------------ |
|
65 # |
|
66 # Test creating settings file on multiple drives. |
|
67 # |
|
68 #------------------------------------------------------------------------------------ |
|
69 [Test] |
|
70 title ET21008 Create file on multiple drives |
|
71 create VCXSettingsDatabaseTest DBtest |
|
72 DBtest Create C_DRIVE "c_test.dat" |
|
73 DBtest Create E_DRIVE "e_test.dat" |
|
74 DBtest Destroy |
|
75 delete DBtest |
|
76 [Endtest] |
|
77 |
|
78 #------------------------------------------------------------------------------------ |
|
79 # |
|
80 # Test settings i/o. |
|
81 # |
|
82 #------------------------------------------------------------------------------------ |
|
83 [Test] |
|
84 title ET21004 Settings normal I/O |
|
85 create VCXSettingsDatabaseTest DBtest |
|
86 DBtest Create C_DRIVE "test.dat" |
|
87 DBtest TestSettings 1 2 3 |
|
88 DBtest TestSettings |
|
89 DBtest TestSettings s9rig djxt9 4mötkl |
|
90 DBtest Destroy |
|
91 delete DBtest |
|
92 [Endtest] |
|
93 |
|
94 #------------------------------------------------------------------------------------ |
|
95 # |
|
96 # Test writing and reading settings |
|
97 # |
|
98 #------------------------------------------------------------------------------------ |
|
99 [Test] |
|
100 title ET21005 Settings I/O max int values |
|
101 create VCXSettingsDatabaseTest DBtest |
|
102 DBtest Create C_DRIVE "test.dat" |
|
103 DBtest TestSettings |
|
104 DBtest Destroy |
|
105 delete DBtest |
|
106 [Endtest] |
|
107 |
|
108 #------------------------------------------------------------------------------------ |
|
109 # |
|
110 # Test writing and reading settings |
|
111 # |
|
112 #------------------------------------------------------------------------------------ |
|
113 [Test] |
|
114 title ET21006 Save and read settings with abnormal values |
|
115 create VCXSettingsDatabaseTest DBtest |
|
116 DBtest Create C_DRIVE "test.dat" |
|
117 DBtest TestSettings s9r23465yrtgh3rgvig djxt9235€${W#%44ty+056 #¤%/&Y¤%4mötkl |
|
118 DBtest Destroy |
|
119 delete DBtest |
|
120 [Endtest] |
|
121 |
|
122 #------------------------------------------------------------------------------------ |
|
123 # |
|
124 # Test last usage |
|
125 # |
|
126 #------------------------------------------------------------------------------------ |
|
127 [Test] |
|
128 title ET21007 Test Last Usage |
|
129 create VCXSettingsDatabaseTest DBtest |
|
130 DBtest Create C_DRIVE "test.dat" |
|
131 DBtest TestLastUsage |
|
132 DBtest Destroy |
|
133 delete DBtest |
|
134 [Endtest] |