phonesrv_plat/voice_mailbox_number_api/tsrc/conf/ui_vmbxenginetest.cfg
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 [Test]
       
     2 title Test "Connect and Close VMBX engine"
       
     3 create vmbxenginetest test
       
     4 
       
     5 // Connecting and closing. If this fails nothing can be tested.
       
     6 test Connect
       
     7 test Close
       
     8 
       
     9 delete test
       
    10 [Endtest] 
       
    11 
       
    12 [Test]
       
    13 title Test "GetNumFromSpecialMem 111111"
       
    14 create vmbxenginetest test
       
    15 
       
    16 test Connect
       
    17 bringtoforeground
       
    18 
       
    19 test InitGetNumFromSpecialMem 111111 // save a number to the sim/phone memory
       
    20 test TestGetNumFromSpecialMem 111111 // get the number we had just saved from the sim/phone memory,
       
    21                                    // if not, the number should be saved to the incorect location in last step.
       
    22 
       
    23 test CleanupGetNumFromSpecialMem // revert the source number to sim/phone memory 
       
    24 
       
    25 sendtobackground
       
    26 test Close
       
    27 delete test
       
    28 [Endtest] 
       
    29 
       
    30 [Test]
       
    31 title Test "SelectTypeL" 
       
    32 create vmbxenginetest test
       
    33 
       
    34 test Connect
       
    35 bringtoforeground
       
    36 
       
    37 test SelectTypeL 
       
    38 
       
    39 sendtobackground
       
    40 test Close
       
    41 delete test
       
    42 [Endtest] 
       
    43 
       
    44 [Test]
       
    45 title Test "Editing allowed" (Default configuration)
       
    46 create vmbxenginetest test
       
    47 
       
    48 test Connect
       
    49 bringtoforeground
       
    50 
       
    51 test ConfCenRepForEditAllowedL
       
    52 
       
    53 allownextresult 1 // must return 1 as user is  allowed to change number
       
    54 test AllowedToChangeTheNumber 
       
    55 
       
    56 sendtobackground
       
    57 test Close
       
    58 delete test
       
    59 [Endtest] 
       
    60 
       
    61 // This case can be never passed on emulator,  
       
    62 // because the updating central repository is not supported by emulator.
       
    63 // It has to be done on hardware.
       
    64 [Test]
       
    65 title Test "Editing not allowed" (Configuration needed)
       
    66 create vmbxenginetest test
       
    67 
       
    68 test ConfCenRepForEditNotAllowedL // cenreq configuration need to be set '1' 
       
    69 
       
    70 test Connect
       
    71 bringtoforeground
       
    72 
       
    73 allownextresult 0 // must return 0 as user is not allowed to change number
       
    74 test AllowedToChangeTheNumber 
       
    75 
       
    76 sendtobackground
       
    77 test Close
       
    78 
       
    79 test RevertCenRepEditNotAllowedL // revert cenreq key
       
    80 
       
    81 delete test
       
    82 [Endtest] 
       
    83 
       
    84 // This case can be never passed on emulator, because sim feature is not supported.
       
    85 // And the updating central repository is not supported by emulator.
       
    86 // It has to be done on hardware.
       
    87 [Test]
       
    88 title Test "SIM only + note" (Operator configuration)
       
    89 create vmbxenginetest test
       
    90 
       
    91 test ConfCenRepForEditNotAllowedL // cenreq configuration need to be set '1'
       
    92 
       
    93 test Connect
       
    94 bringtoforeground
       
    95 
       
    96 allownextresult 1 
       
    97 test IsSimMemory // should return 1 in this config
       
    98 
       
    99 allownextresult 0 
       
   100 test AllowedToChangeTheNumber // must return 0 as user is not allowed to change number
       
   101 
       
   102 test InitGetNumFromSpecialMem  // This method should save a empty number to trigger a note to UI
       
   103 
       
   104 allownextresult -1
       
   105 test TestGetNumFromSpecialMem
       
   106 
       
   107 test CleanupGetNumFromSpecialMem // revert the source number to sim/phone memory
       
   108 
       
   109 sendtobackground
       
   110 test Close
       
   111 
       
   112 test RevertCenRepEditNotAllowedL // revert cenreq key
       
   113 
       
   114 delete test
       
   115 [Endtest] 
       
   116 
       
   117 // This case can be never passed on emulator, because sim feature is not supported.
       
   118 // And the updating central repository is not supported by emulator.
       
   119 // It has to be done on hardware.
       
   120 [Test]
       
   121 title Test "SIM only: Saving number to the sim memory according to simulate OMA" (Operator configuration)
       
   122 create vmbxenginetest test
       
   123 
       
   124 test ConfCenRepForEditNotAllowedL // cenreq configuration need to be set '1'
       
   125 
       
   126 test Connect
       
   127 bringtoforeground
       
   128 
       
   129 allownextresult 1 
       
   130 test IsSimMemory // should return 1 in this config
       
   131 
       
   132 allownextresult 0 
       
   133 test AllowedToChangeTheNumber // must return 0 as user is not allowed to change number
       
   134 
       
   135 test InitGetNumFromSpecialMem 123456 // save the number to sim memory
       
   136 test TestGetNumFromSpecialMem 123456 // get the number we had just saved from the sim memory,
       
   137                                    // if not, the number should be saved to the incorect location in last step.
       
   138 test CleanupGetNumFromSpecialMem // revert the source number to sim memory
       
   139 
       
   140 sendtobackground
       
   141 test Close
       
   142 
       
   143 test RevertCenRepEditNotAllowedL // revert cenreq key
       
   144 
       
   145 delete test
       
   146 [Endtest]
       
   147 
       
   148 // This case can be never passed on emulator, because sim feature is not supported.
       
   149 // And the updating central repository is not supported by emulator.
       
   150 // It has to be done on hardware.
       
   151 [Test]
       
   152 title Test "SIM only: QueryVideoMbxNumber" (Operator configuration)
       
   153 create vmbxenginetest test
       
   154 
       
   155 test ConfCenRepForEditNotAllowedL // cenreq configuration need to be set '1'
       
   156 
       
   157 test Connect
       
   158 bringtoforeground
       
   159 
       
   160 allownextresult -21 
       
   161 test QueryVideoMbxNumber 0 // Should leave with KErrAccessDenied
       
   162 
       
   163 sendtobackground
       
   164 test Close
       
   165 
       
   166 test RevertCenRepEditNotAllowedL // revert cenreq key
       
   167 
       
   168 delete test
       
   169 [Endtest] 
       
   170 
       
   171 // This case can be never passed on emulator, because sim feature is not supported.
       
   172 // And the updating central repository is not supported by emulator.
       
   173 // It has to be done on hardware.
       
   174 [Test]
       
   175 title Test "SIM only: QueryNumberL" (Operator configuration)
       
   176 create vmbxenginetest test
       
   177 
       
   178 test ConfCenRepForEditNotAllowedL // cenreq configuration need to be set '1'
       
   179 
       
   180 test Connect
       
   181 bringtoforeground
       
   182 
       
   183 allownextresult -21 
       
   184 test QueryNumberL 0 // Should leave with KErrAccessDenied
       
   185 
       
   186 sendtobackground
       
   187 test Close
       
   188 
       
   189 test RevertCenRepEditNotAllowedL // revert cenreq key
       
   190 
       
   191 delete test
       
   192 [Endtest]
       
   193 
       
   194 // This case can be never passed on emulator, 
       
   195 // because the video feature is not supported.
       
   196 // It has to be done on hardware.
       
   197 [Test]
       
   198 title Test "GetVideoMbxNumber"
       
   199 create vmbxenginetest test
       
   200 
       
   201 test Connect
       
   202 bringtoforeground
       
   203 
       
   204 test GetVideoMbxNumber
       
   205 
       
   206 sendtobackground
       
   207 test Close
       
   208 delete test
       
   209 [Endtest]
       
   210