adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/testfiles/simatk_sendussd.cfg
changeset 4 510c70acdbf6
parent 3 1972d8c2e329
child 5 8ccc39f9d787
equal deleted inserted replaced
3:1972d8c2e329 4:510c70acdbf6
     1 //* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 //* All rights reserved.
       
     3 //* This component and the accompanying materials are made available
       
     4 //* under the terms of the License "Eclipse Public License v1.0"
       
     5 //* which accompanies this distribution, and is available
       
     6 //* at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //*
       
     8 //* Initial Contributors:
       
     9 //* Nokia Corporation - initial contribution.
       
    10 //*
       
    11 //* Contributors:
       
    12 //*
       
    13 //* Description:  
       
    14 
       
    15 // Precondition: 
       
    16 // - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
       
    17 //
       
    18 // Script description:
       
    19 
       
    20 // Proactive command //
       
    21 ///////////////////////
       
    22 
       
    23 // AlphaId (Optional)
       
    24 //  Enter the text inside the quotes or as unicode hex digits. Example: AlphaId "abc" or AlphaId 61 62 63
       
    25 
       
    26 // IconId (Optional, default = IconId 0 0)
       
    27 //  IconQualifier
       
    28 //      0 NotSet
       
    29 //      1 NoIconId
       
    30 //      2 SelfExplanatory
       
    31 //      3 NotSelfExplanatory
       
    32 //  IconIdentifier
       
    33 //      Id number
       
    34 //  Example SelfExplanatory ID 5: IconId 2 5
       
    35 
       
    36 // UssdString
       
    37 //  Enter the text inside the quotes or as unicode hex digits. Example: AlphaId "abc" or AlphaId 61 62 63
       
    38 
       
    39 // Dcs (Optional, default = 0x00)
       
    40 // DataCoding scheme for USSD.
       
    41 //  Enter the used data coding scheme as hexadicimal value
       
    42 
       
    43 // Terminal Response //
       
    44 ///////////////////////
       
    45 
       
    46 // GeneralResult
       
    47 //  General result of the proactive command. Default command performed successfully.
       
    48 
       
    49 // GeneralResult2
       
    50 //  General result of the proactive command. Default command performed successfully.
       
    51 
       
    52 // AdditionalInfo
       
    53 //  Enter the text inside the quotes or as unicode hex digits
       
    54 
       
    55 // AdditionalInfo2
       
    56 //  Enter the text inside the quotes or as unicode hex digits
       
    57 
       
    58 // InfoType
       
    59 // If the value of iGeneralResult requires additional information,
       
    60 // set this to MeProblem (2).  Otherwise set to
       
    61 // NoAdditionalInfo (1). Default no additional info.
       
    62 
       
    63 // InfoType2
       
    64 // If the value of iGeneralResult requires additional information,
       
    65 // set this to MeProblem (2).  Otherwise set to
       
    66 // NoAdditionalInfo (1). Default no additional info.
       
    67 
       
    68 // UssdString
       
    69 //  See above
       
    70 
       
    71 
       
    72 [Test]
       
    73 title MOD_0013.001_SIM_ATK_TSY_[SEND USSD - normal]
       
    74 
       
    75 create SimAtk simatk
       
    76 create SimAtkNotify notify
       
    77 
       
    78 // open all
       
    79 simatk Connect RTelServer
       
    80 simatk Load PhoneTsy.tsy
       
    81 simatk Open DefaultPhone
       
    82 simatk Open SAT
       
    83 simatk Open IscControl
       
    84 
       
    85 // Load ISC XML -file
       
    86 simatk LoadIscTests SimAtk_SendUssd.xml
       
    87 
       
    88 // SEQ 1.1
       
    89 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
    90 simatk RunIscTestCase 13 101
       
    91 waittestclass notify
       
    92 simatk CheckProactiveCommand AlphaId "7-bit USSD" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
    93 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
    94 simatk WaitForRequest
       
    95 
       
    96 // SEQ 1.2
       
    97 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
    98 simatk RunIscTestCase 13 102
       
    99 waittestclass notify
       
   100 simatk CheckProactiveCommand AlphaId "8-bit USSD" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0x44
       
   101 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0x44
       
   102 simatk WaitForRequest
       
   103 
       
   104 // SEQ 1.3
       
   105 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   106 simatk RunIscTestCase 13 103
       
   107 waittestclass notify
       
   108 simatk CheckProactiveCommand AlphaId "UCS2 USSD" Dcs 0x48 UssdString 0417 0414 0420 0410 0412 0421 0422 0412 0423 0419 0422 0415
       
   109 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0x48
       
   110 simatk WaitForRequest
       
   111 
       
   112 // SEQ 1.4
       
   113 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   114 simatk RunIscTestCase 13 104
       
   115 waittestclass notify
       
   116 simatk CheckProactiveCommand AlphaId "7-bit USSD" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   117 // KUssdReturnError & KSatNetworkErrorInfo, "Unknown alphabet"
       
   118 simatk SendTerminalResponse GeneralResult UssdReturnError InfoType SatNetworkErrorInfo AdditionalInfo 0x47
       
   119 simatk WaitForRequest
       
   120 
       
   121 // SEQ 1.5
       
   122 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   123 simatk RunIscTestCase 13 105
       
   124 waittestclass notify
       
   125 simatk CheckProactiveCommand AlphaId "7-bit USSD" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   126 // KUssdReturnError & KSatNetworkErrorInfo, "No specific cause can be given"
       
   127 simatk SendTerminalResponse GeneralResult UssdReturnError InfoType SatNetworkErrorInfo AdditionalInfo 0x00
       
   128 simatk WaitForRequest
       
   129 
       
   130 // SEQ 1.6
       
   131 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   132 simatk RunIscTestCase 13 106
       
   133 waittestclass notify
       
   134 simatk CheckProactiveCommand AlphaId "once a RELEASE COMPLETE message containing the USSD Return Result message not containing an error has been received from the network, the ME shall inform the SIM that the command has" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   135 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   136 simatk WaitForRequest
       
   137 
       
   138 // SEQ 1.7
       
   139 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   140 simatk RunIscTestCase 13 107
       
   141 waittestclass notify
       
   142 simatk CheckProactiveCommand UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   143 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   144 simatk WaitForRequest
       
   145 
       
   146 // SEQ 1.8
       
   147 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   148 simatk RunIscTestCase 13 108
       
   149 waittestclass notify
       
   150 simatk CheckProactiveCommand AlphaId "" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   151 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   152 simatk WaitForRequest
       
   153 
       
   154 // close all
       
   155 simatk Close IscControl
       
   156 simatk Close SAT
       
   157 simatk Unload PhoneTsy.tsy
       
   158 simatk Close RTelServer
       
   159 delete simatk
       
   160 delete notify
       
   161 [Endtest]
       
   162 
       
   163 [Test]
       
   164 title MOD_0013.002_SIM_ATK_TSY_[SEND USSD - icon support]
       
   165 
       
   166 create SimAtk simatk
       
   167 create SimAtkNotify notify
       
   168 
       
   169 // open all
       
   170 simatk Connect RTelServer
       
   171 simatk Load PhoneTsy.tsy
       
   172 simatk Open DefaultPhone
       
   173 simatk Open SAT
       
   174 simatk Open IscControl
       
   175 
       
   176 // Load ISC XML -file
       
   177 simatk LoadIscTests SimAtk_SendUssd.xml
       
   178 
       
   179 // SEQ 2.1a
       
   180 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   181 simatk RunIscTestCase 13 2011
       
   182 waittestclass notify
       
   183 simatk CheckProactiveCommand IconId 2 1 AlphaId "Basic Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   184 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   185 simatk WaitForRequest
       
   186 
       
   187 // SEQ 2.1b
       
   188 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   189 simatk RunIscTestCase 13 2012
       
   190 waittestclass notify
       
   191 simatk CheckProactiveCommand IconId 2 1 AlphaId "Basic Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   192 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed UssdString "USSD string received from SS" Dcs 0xF0
       
   193 simatk WaitForRequest
       
   194 
       
   195 // SEQ 2.2a
       
   196 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   197 simatk RunIscTestCase 13 2021
       
   198 waittestclass notify
       
   199 simatk CheckProactiveCommand IconId 2 2 AlphaId "Color Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   200 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   201 simatk WaitForRequest
       
   202 
       
   203 // SEQ 2.2b
       
   204 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   205 simatk RunIscTestCase 13 2022
       
   206 waittestclass notify
       
   207 simatk CheckProactiveCommand IconId 2 2 AlphaId "Color Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   208 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed UssdString "USSD string received from SS" Dcs 0xF0
       
   209 simatk WaitForRequest
       
   210 
       
   211 // SEQ 2.3a
       
   212 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   213 simatk RunIscTestCase 13 2031
       
   214 waittestclass notify
       
   215 simatk CheckProactiveCommand IconId 3 1 AlphaId "Basic Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   216 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   217 simatk WaitForRequest
       
   218 
       
   219 // SEQ 2.3b
       
   220 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   221 simatk RunIscTestCase 13 2032
       
   222 waittestclass notify
       
   223 simatk CheckProactiveCommand IconId 3 1 AlphaId "Basic Icon" UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   224 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed UssdString "USSD string received from SS" Dcs 0xF0
       
   225 simatk WaitForRequest
       
   226 
       
   227 // SEQ 2.4
       
   228 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   229 simatk RunIscTestCase 13 204
       
   230 waittestclass notify
       
   231 simatk CheckProactiveCommand IconId 3 1 UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   232 simatk SendTerminalResponse GeneralResult CmdDataNotUnderstood
       
   233 simatk WaitForRequest
       
   234 
       
   235 // close all
       
   236 simatk Close IscControl
       
   237 simatk Close SAT
       
   238 simatk Unload PhoneTsy.tsy
       
   239 simatk Close RTelServer
       
   240 delete simatk
       
   241 delete notify
       
   242 [Endtest]
       
   243 
       
   244 [Test]
       
   245 title MOD_0013.003_SIM_ATK_TSY_[SEND USSD - UCS2 support]
       
   246 
       
   247 create SimAtk simatk
       
   248 create SimAtkNotify notify
       
   249 
       
   250 // open all
       
   251 simatk Connect RTelServer
       
   252 simatk Load PhoneTsy.tsy
       
   253 simatk Open DefaultPhone
       
   254 simatk Open SAT
       
   255 simatk Open IscControl
       
   256 
       
   257 // Load ISC XML -file
       
   258 simatk LoadIscTests SimAtk_SendUssd.xml
       
   259 
       
   260 // SEQ 3.1
       
   261 notify UseObjectAddress simatk ESatNotifySendUssdPCmd
       
   262 simatk RunIscTestCase 13 301
       
   263 waittestclass notify
       
   264 // Alpha Id "Hello" in Russian
       
   265 simatk CheckProactiveCommand AlphaId 0417 0414 0420 0410 0412 0421 0422 0412 0423 0419 0422 0415 UssdString "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz-1234567890" Dcs 0xF0
       
   266 simatk SendTerminalResponse UssdString "USSD string received from SS" Dcs 0xF0
       
   267 simatk WaitForRequest
       
   268 
       
   269 // close all
       
   270 simatk Close IscControl
       
   271 simatk Close SAT
       
   272 simatk Unload PhoneTsy.tsy
       
   273 simatk Close RTelServer
       
   274 delete simatk
       
   275 delete notify
       
   276 [Endtest]