1 ######################################## 2 # Test Get 3 ######################################## 4 5 startCounter 6 7 get . 8 get ./DevInfo/DevId 9 10 createi ./SyncML/DMAcc/UniTest 11 createl ./SyncML/DMAcc/UniTest/ServerId 1.1.1.1 12 get ./SyncML/DMAcc/UniTest/ServerId 13 replace ./SyncML/DMAcc/UniTest/ServerId 2.2.2.2 14 delete ./SyncML/DMAcc/UniTest 15 get . 16 17 ######################################## 18 # Test dump tree 19 ######################################## 20 21 dump ./DevInfo 22 dump ./SyncML 23 dump ./DevDetail 24 25 ######################################## 26 # Test rollback 27 # 1 failure 28 ######################################## 29 30 begin 31 createi ./SyncML/Con/x 32 get ./SyncML/Con/x 33 rollback 34 35 # Next should fail 36 get ./SyncML/Con/x 37 38 ######################################## 39 # Plugin Tests 40 ######################################## 41 42 # data plugin 43 # 0 failure 44 45 get ./TestPluginNode 46 get ./TestPluginNode/a 47 get ./TestPluginNode/b 48 dump ./TestPluginNode 49 50 ######################################## 51 # Script tests 52 ######################################## 53 54 processscript unittest/dm11/testgetscript.xml 55 processscript unittest/dm11/testexecscript.xml 56 processscript unittest/dm11/testexecscript2.xml 57 58 processscript unittest/dm11/testalertconfirmatomic.xml 59 processscript unittest/dm11/testalertmultiplechoice.xml 60 processscript unittest/dm11/testalertconfirm.xml 61 processscript unittest/dm11/testalertsinglechoice.xml 62 processscript unittest/dm11/testalertdisplay.xml 63 processscript unittest/dm11/testalerttextinput.xml 64 65 ######################################## 66 # Binary Script tests 67 ######################################## 68 processscript unittest/dm11/testget.wbxml 1 69 processscript unittest/dm11/testadd.wbxml 1 70 processscript unittest/dm11/testdelete.wbxml 1 71 processscript unittest/dm11/testreplace.wbxml 1 72 73 ######################################## 74 # SuperAgent Test and Build HMAC Cred 75 ######################################## 76 hmaccred scts 77 78 ######################################## 79 # Factory Boostrap Credential Generation for 1.1.2 80 ######################################## 81 createi ./SyncML/DMAcc/SampleServer 82 createl ./SyncML/DMAcc/SampleServer/ServerId Scts 83 createl ./SyncML/DMAcc/SampleServer/Addr http://127.0.0.1:80/Manage 84 createl ./SyncML/DMAcc/SampleServer/AddrType 1 85 createl ./SyncML/DMAcc/SampleServer/ConRef 86 createl ./SyncML/DMAcc/SampleServer/Name SampleServer 87 createl ./SyncML/DMAcc/SampleServer/ServerPW SampleServer 88 createl ./SyncML/DMAcc/SampleServer/UserName SampleServer 89 createl ./SyncML/DMAcc/SampleServer/ClientPW SampleServer 90 createl ./SyncML/DMAcc/SampleServer/PortNbr 80 91 createl ./SyncML/DMAcc/SampleServer/ServerNonce MTIzNDEyMzQxMjM0MTIzNA== 92 createl ./SyncML/DMAcc/SampleServer/ClientNonce 123abc 93 createl ./SyncML/DMAcc/SampleServer/AuthPref syncml:auth-basic 94 95 connectsid Scts 96 97 dump ./SyncML/DMAcc/SampleServer 98 99 delete ./SyncML/DMAcc/SampleServer 100 101 ######################################## 102 # Exec test 103 ######################################## 104 Exec . ls 105 106 ######################################## 107 # Commit plug-in test for indirect update 108 # and for fk: and child: MA 109 ######################################## 110 createi ./UnitTest/Profiles11/1 111 createl ./UnitTest/Profiles11/1/CurProfile 12 112 createi ./UnitTest/Profiles11/2 113 createl ./UnitTest/Profiles11/2/CurProfile 12 114 115 createi ./SyncML/DMAcc/12 116 createl ./SyncML/DMAcc/12/ServerId some 117 118 createl ./UnitTest/Profiles11/1/CurProfile 12 119 createl ./UnitTest/Profiles11/2/CurProfile 12 120 121 replace ./SyncML/DMAcc/12/ServerId some3 122 createl ./SyncML/DMAcc/12/AppID some 123 124 # should fail since child: constraint 125 delete ./SyncML/DMAcc/12 126 127 # clean-up 128 delete ./UnitTest/Profiles11/1 129 delete ./UnitTest/Profiles11/2 130 delete ./SyncML/DMAcc/12 131 132 dump ./TestRWPluginNode 133 134 ######################################## 135 # Create a char type ESN 136 ######################################## 137 createl ./TEST/lob 138 setESN ./TEST/lob unittest/dm11/testlobdata1.dat 139 get ./TEST/lob 140 141 ######################################## 142 # Replace a char type ESN data 143 ######################################## 144 145 setESN ./TEST/lob unittest/dm11/testlobdata2.dat 146 get ./TEST/lob 147 148 ######################################## 149 # Clone a char type ESN 150 ######################################## 151 delete ./CLONE 152 clone ./TEST CLONE 153 get ./CLONE/lob 154 155 ######################################## 156 # Remove a char type ESN 157 ######################################## 158 159 delete ./TEST/lob 160 delete ./CLONE/lob 161 get ./TEST/lob 162 163 ######################################## 164 # Rollback an char type ESN 165 ######################################## 166 begin 167 createl ./TEST/lob 168 setESN ./TEST/lob unittest/dm11/testlobdata1.dat 169 rollback 170 get ./TEST/lob 171 172 ######################################## 173 # Create a binary type ESN 174 ######################################## 175 createlb ./TEST/lobbin 176 setESN ./TEST/lob unittest/dm11/testlobdata1.dat 177 get ./TEST/lobbin 178 179 ######################################## 180 # Replace a binary type ESN data 181 ######################################## 182 183 setESN ./TEST/lobbin unittest/dm11/testlobdata2.dat 184 get ./TEST/lobbin 185 186 ######################################## 187 # Clone a binary type ESN 188 ######################################## 189 delete ./CLONE 190 clone ./TEST CLONE 191 get ./CLONE/lobbin 192 193 ######################################## 194 # Remove a binary type ESN 195 ######################################## 196 197 delete ./TEST/lobbin 198 delete ./CLONE/lobbin 199 get ./TEST/lobbin 200 201 ######################################## 202 # Rollback an binary type ESN 203 ######################################## 204 begin 205 createlb ./TEST/lobbin 206 setESN ./TEST/lobbin unittest/dm11/testlobdata1.dat 207 rollback 208 get ./TEST/lobbin 209 210 ######################################## 211 # Create a char type ESN 212 ######################################## 213 delete ./TestRWPluginNode/branch1/lob 214 createl ./TestRWPluginNode/branch1/lob 215 setESN ./TestRWPluginNode/branch1/lob unittest/dm11/testlobdata1.dat 216 get ./TestRWPluginNode/branch1/lob 217 218 ######################################## 219 # Replace a char type ESN data 220 ######################################## 221 222 setESN ./TestRWPluginNode/branch1/lob unittest/dm11/testlobdata2.dat 223 get ./TestRWPluginNode/branch1/lob 224 225 ######################################## 226 # Create a binary type ESN 227 ######################################## 228 delete ./TestRWPluginNode/branch1/lobbin 229 createlb ./TestRWPluginNode/branch1/lobbin 230 setESN ./TestRWPluginNode/branch1/lobbin unittest/dm11/testlobdata1.dat 231 get ./TestRWPluginNode/branch1/lobbin 232 233 ######################################## 234 # Replace a binary type ESN data 235 ######################################## 236 237 setESN ./TestRWPluginNode/branch1/lobbin unittest/dm11/testlobdata2.dat 238 get ./TestRWPluginNode/branch1/lobbin 239 240 241 ######################################## 242 # Clone a char type ESN 243 ######################################## 244 delete ./TestRWPluginNode/clone 245 clone ./TestRWPluginNode/branch1 clone 246 get ./TestRWPluginNode/clone/lob 247 get ./TestRWPluginNode/clone/lobbin 248 249 ######################################## 250 # Remove a char type ESN 251 ######################################## 252 253 delete ./TestRWPluginNode/clone 254 delete ./TestRWPluginNode/branch1/lob 255 delete ./TestRWPluginNode/branch1/lobbin 256 get ./TestRWPluginNode/clone/lobbin 257 get ./TestRWPluginNode/branch1/lob 258 get ./TestRWPluginNode/branch1/lobbin 259 260 ######################################## 261 # Rollback an char type ESN 262 ######################################## 263 begin 264 createl ./TestRWPluginNode/branch1/lob 265 setESN ./TestRWPluginNode/branch1/lob unittest/dm11/testlobdata1.dat 266 rollback 267 get ./TestRWPluginNode/branch1/lob 268 269 ######################################## 270 # Rollback an binary type ESN 271 ######################################## 272 begin 273 createlb ./TestRWPluginNode/branch1/lobbin 274 setESN ./TestRWPluginNode/branch1/lobbin unittest/dm11/testlobdata1.dat 275 rollback 276 get ./TestRWPluginNode/branch1/lobbin 277 278 getCounter 279 280 quit 281