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