adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/testfiles/simatk_displaytext.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 //
       
    16 // Precondition: 
       
    17 // - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
       
    18 //
       
    19 // Script description:
       
    20 //
       
    21 
       
    22 // Proactive command //
       
    23 ///////////////////////
       
    24 
       
    25 // Priority (Default 1, Normal)
       
    26 //  0 NotSet
       
    27 //  1 Normal
       
    28 //  2 High
       
    29 
       
    30 // ClearScreenTrigger (Default 2, UserClear)
       
    31 //  0 NotSet
       
    32 //  1 AfterDelay
       
    33 //  2 UserClear
       
    34 
       
    35 // Text
       
    36 //  Enter the text inside the quotes or as unicode hex digits. Example: Text "abc" or Text 61 62 63
       
    37 
       
    38 // Duration
       
    39 //  TimeUnit, unit used to encode the duration
       
    40 //      0 TimeUnitNotSet. Initialization value used within constructor(s).
       
    41 //      1 No duration has been provided. The ME should default to general beep.
       
    42 //      2 The duration is expressed in minutes.
       
    43 //      3 The duration is expressed in seconds.
       
    44 //      4 The duration is expressed in tenths of seconds.
       
    45 //  NumOfUnits
       
    46 //     Valid range is 1 to 255
       
    47 //  Example 10 minutes: Duration 2 10
       
    48 
       
    49 // IconId
       
    50 //  IconQualifier
       
    51 //      0 NotSet
       
    52 //      1 NoIconId
       
    53 //      2 SelfExplanatory
       
    54 //      3 NotSelfExplanatory
       
    55 //  IconIdentifier
       
    56 //      Id number
       
    57 //  Example SelfExplanatory ID 5: IconId 2 5
       
    58 
       
    59 // ImmediateRsp (Default 2, NoImmediateRsp)
       
    60 //      0 NotSet
       
    61 //      1 ImmediateRsp
       
    62 //      2 NoImmediateRsp
       
    63 
       
    64 
       
    65 // Terminal Response //
       
    66 ///////////////////////
       
    67 
       
    68 // GeneralResult
       
    69 //  General result of the proactive command. Default command performed successfully.
       
    70 
       
    71 // AdditionalInfo
       
    72 //  Enter the text inside the quotes or as unicode hex digits
       
    73 
       
    74 // InfoType
       
    75 // If the value of iGeneralResult requires additional information,
       
    76 // set this to MeProblem (2).  Otherwise set to
       
    77 // NoAdditionalInfo (1). Default no additional info.
       
    78 
       
    79 
       
    80 [Test]
       
    81 title MOD_0002.001_SIM_ATK_TSY_[DISPLAY TEXT - normal]
       
    82 
       
    83 create SimAtk simatk
       
    84 create SimAtkNotify notify
       
    85 
       
    86 // open all
       
    87 simatk Connect RTelServer
       
    88 simatk Load PhoneTsy.tsy
       
    89 simatk Open DefaultPhone
       
    90 simatk Open SAT
       
    91 simatk Open IscControl
       
    92 
       
    93 // Load ISC XML -file
       
    94 simatk LoadIscTests SimAtk_DisplayText.xml
       
    95 
       
    96 // SEQ 1.1
       
    97 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
    98 simatk RunIscTestCase 2 101
       
    99 waittestclass notify
       
   100 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 1" ImmediateRsp 2
       
   101 simatk SendTerminalResponse
       
   102 simatk WaitForRequest
       
   103 
       
   104 // SEQ 1.2
       
   105 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   106 simatk RunIscTestCase 2 102
       
   107 waittestclass notify
       
   108 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 1" ImmediateRsp 2
       
   109 simatk SendTerminalResponse GeneralResult MeUnableToProcessCmd InfoType MeProblem AdditionalInfo ScreenBusy
       
   110 simatk WaitForRequest
       
   111 
       
   112 // SEQ1.3
       
   113 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   114 simatk RunIscTestCase 2 103
       
   115 waittestclass notify
       
   116 simatk CheckProactiveCommand Priority 2 ClearScreenTrigger 2 Text "Toolkit Test 2" ImmediateRsp 2
       
   117 simatk SendTerminalResponse
       
   118 simatk WaitForRequest
       
   119 
       
   120 // SEQ1.4
       
   121 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   122 simatk RunIscTestCase 2 104
       
   123 waittestclass notify
       
   124 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 3" ImmediateRsp 2
       
   125 simatk SendTerminalResponse
       
   126 simatk WaitForRequest
       
   127 
       
   128 // SEQ1.5
       
   129 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   130 simatk RunIscTestCase 2 105
       
   131 waittestclass notify
       
   132 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 1 Text "Toolkit Test 4" ImmediateRsp 2
       
   133 simatk SendTerminalResponse
       
   134 simatk WaitForRequest
       
   135 
       
   136 // SEQ1.6
       
   137 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   138 simatk RunIscTestCase 2 106
       
   139 waittestclass notify
       
   140 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 ImmediateRsp 2 Text "This command instructs the ME to display a text message. It allows the SIM to define the priority of that message, and the text string format. Two types of prio"
       
   141 simatk SendTerminalResponse
       
   142 simatk WaitForRequest
       
   143 
       
   144 // SEQ1.7
       
   145 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   146 simatk RunIscTestCase 2 107
       
   147 waittestclass notify
       
   148 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "<GO-BACKWARDS>" ImmediateRsp 2
       
   149 simatk SendTerminalResponse GeneralResult BackwardModeRequestedByUser
       
   150 simatk WaitForRequest
       
   151 
       
   152 // SEQ1.8
       
   153 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   154 simatk RunIscTestCase 2 108
       
   155 waittestclass notify
       
   156 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "<ABORT>" ImmediateRsp 2
       
   157 simatk SendTerminalResponse GeneralResult SessionTerminatedByUser
       
   158 simatk WaitForRequest
       
   159 
       
   160 // SEQ1.9
       
   161 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   162 simatk RunIscTestCase 2 109
       
   163 allownextresult -20
       
   164 waittestclass notify
       
   165 simatk WaitForRequest
       
   166 
       
   167 // close all
       
   168 simatk Close IscControl
       
   169 simatk Close SAT
       
   170 simatk Unload PhoneTsy.tsy
       
   171 simatk Close RTelServer
       
   172 delete simatk
       
   173 delete notify
       
   174 [Endtest]
       
   175 
       
   176 [Test]
       
   177 title MOD_0002.002_SIM_ATK_TSY_[DISPLAY TEXT - Support of "No response from user"]
       
   178 
       
   179 create SimAtk simatk
       
   180 create SimAtkNotify notify
       
   181 
       
   182 // open all
       
   183 simatk Connect RTelServer
       
   184 simatk Load PhoneTsy.tsy
       
   185 simatk Open DefaultPhone
       
   186 simatk Open SAT
       
   187 simatk Open IscControl
       
   188 
       
   189 // Load ISC XML -file
       
   190 simatk LoadIscTests SimAtk_DisplayText.xml
       
   191 
       
   192 // SEQ 2.1
       
   193 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   194 simatk RunIscTestCase 2 201
       
   195 waittestclass notify
       
   196 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "<TIME-OUT>" ImmediateRsp 2
       
   197 simatk SendTerminalResponse GeneralResult NoResponseFromUser
       
   198 simatk WaitForRequest
       
   199 
       
   200 // close all
       
   201 simatk Close IscControl
       
   202 simatk Close SAT
       
   203 simatk Unload PhoneTsy.tsy
       
   204 simatk Close RTelServer
       
   205 delete simatk
       
   206 delete notify
       
   207 [Endtest]
       
   208 
       
   209 [Test]
       
   210 title MOD_0002.003_SIM_ATK_TSY_[DISPLAY TEXT - Display of extension text]
       
   211 
       
   212 create SimAtk simatk
       
   213 create SimAtkNotify notify
       
   214 
       
   215 // open all
       
   216 simatk Connect RTelServer
       
   217 simatk Load PhoneTsy.tsy
       
   218 simatk Open DefaultPhone
       
   219 simatk Open SAT
       
   220 simatk Open IscControl
       
   221 
       
   222 // Load ISC XML -file
       
   223 simatk LoadIscTests SimAtk_DisplayText.xml
       
   224 
       
   225 // SEQ 3.1
       
   226 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   227 simatk RunIscTestCase 2 301
       
   228 waittestclass notify
       
   229 // Text string in test case description (3GPP TS 51.010-4 V4.2.0) does not match the text string in proactive command. The same string is used here as in Pcmd. 
       
   230 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "This command instructs the ME to display a text message, and/or an icon (see 6.5.4). It allows the SIM to define the priority of that message, and the text string format. Two types of priority are defined:- display normal priority text and/" ImmediateRsp 2
       
   231 simatk SendTerminalResponse
       
   232 simatk WaitForRequest
       
   233 
       
   234 // close all
       
   235 simatk Close IscControl
       
   236 simatk Close SAT
       
   237 simatk Unload PhoneTsy.tsy
       
   238 simatk Close RTelServer
       
   239 delete simatk
       
   240 delete notify
       
   241 [Endtest]
       
   242 
       
   243 [Test]
       
   244 title MOD_0002.004_SIM_ATK_TSY_[DISPLAY TEXT - Sustained text]
       
   245 
       
   246 create SimAtk simatk
       
   247 create SimAtkNotify notify
       
   248 
       
   249 // open all
       
   250 simatk Connect RTelServer
       
   251 simatk Load PhoneTsy.tsy
       
   252 simatk Open DefaultPhone
       
   253 simatk Open SAT
       
   254 simatk Open IscControl
       
   255 
       
   256 // Load ISC XML -file
       
   257 simatk LoadIscTests SimAtk_DisplayText.xml
       
   258 
       
   259 // SEQ 4.1
       
   260 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   261 simatk RunIscTestCase 2 401
       
   262 waittestclass notify
       
   263 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 1" ImmediateRsp 1
       
   264 simatk SendTerminalResponse
       
   265 simatk WaitForRequest
       
   266 
       
   267 // SEQ 4.2
       
   268 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   269 simatk RunIscTestCase 2 402
       
   270 waittestclass notify
       
   271 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 1 Text "Toolkit Test 2" ImmediateRsp 1
       
   272 simatk SendTerminalResponse
       
   273 simatk WaitForRequest
       
   274 
       
   275 // SEQ 4.3
       
   276 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   277 simatk RunIscTestCase 2 403
       
   278 waittestclass notify
       
   279 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 3" ImmediateRsp 1
       
   280 simatk SendTerminalResponse
       
   281 simatk WaitForRequest
       
   282 
       
   283 // SEQ 4.4
       
   284 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   285 simatk RunIscTestCase 2 404
       
   286 waittestclass notify
       
   287 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Toolkit Test 4" ImmediateRsp 1
       
   288 simatk SendTerminalResponse
       
   289 simatk WaitForRequest
       
   290 
       
   291 // close all
       
   292 simatk Close IscControl
       
   293 simatk Close SAT
       
   294 simatk Unload PhoneTsy.tsy
       
   295 simatk Close RTelServer
       
   296 delete simatk
       
   297 delete notify
       
   298 [Endtest]
       
   299 
       
   300 [Test]
       
   301 title MOD_0002.005_SIM_ATK_TSY_[DISPLAY TEXT - Display of icons (Sequence B)]
       
   302 
       
   303 create SimAtk simatk
       
   304 create SimAtkNotify notify
       
   305 
       
   306 // open all
       
   307 simatk Connect RTelServer
       
   308 simatk Load PhoneTsy.tsy
       
   309 simatk Open DefaultPhone
       
   310 simatk Open SAT
       
   311 simatk Open IscControl
       
   312 
       
   313 // Load ISC XML -file
       
   314 simatk LoadIscTests SimAtk_DisplayText.xml
       
   315 
       
   316 // SEQ 5.1B
       
   317 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   318 simatk RunIscTestCase 2 501
       
   319 waittestclass notify
       
   320 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Basic Icon" IconId 2 1 ImmediateRsp 2
       
   321 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
       
   322 simatk WaitForRequest
       
   323 
       
   324 // SEQ 5.2B
       
   325 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   326 simatk RunIscTestCase 2 502
       
   327 waittestclass notify
       
   328 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Colour Icon" IconId 2 2 ImmediateRsp 2
       
   329 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
       
   330 simatk WaitForRequest
       
   331 
       
   332 // SEQ 5.3B
       
   333 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   334 simatk RunIscTestCase 2 503
       
   335 waittestclass notify
       
   336 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text "Basic Icon" IconId 3 1 ImmediateRsp 2
       
   337 simatk SendTerminalResponse GeneralResult SuccessRequestedIconNotDisplayed
       
   338 simatk WaitForRequest
       
   339 
       
   340 // close all
       
   341 simatk Close IscControl
       
   342 simatk Close SAT
       
   343 simatk Unload PhoneTsy.tsy
       
   344 simatk Close RTelServer
       
   345 delete simatk
       
   346 delete notify
       
   347 [Endtest]
       
   348 
       
   349 [Test]
       
   350 title MOD_0002.006_SIM_ATK_TSY_[DISPLAY TEXT - UCS2 display supported]
       
   351 
       
   352 create SimAtk simatk
       
   353 create SimAtkNotify notify
       
   354 
       
   355 // open all
       
   356 simatk Connect RTelServer
       
   357 simatk Load PhoneTsy.tsy
       
   358 simatk Open DefaultPhone
       
   359 simatk Open SAT
       
   360 simatk Open IscControl
       
   361 
       
   362 // Load ISC XML -file
       
   363 simatk LoadIscTests SimAtk_DisplayText.xml
       
   364 
       
   365 // SEQ 6.1
       
   366 notify UseObjectAddress simatk ESatNotifyDisplayTextPCmd
       
   367 simatk RunIscTestCase 2 601
       
   368 waittestclass notify
       
   369 // Text in hexadecimal: "Hello" in Russia
       
   370 simatk CheckProactiveCommand Priority 1 ClearScreenTrigger 2 Text 0417 0414 0420 0410 0412 0421 0422 0412 0423 0419 0422 0415 ImmediateRsp 2
       
   371 simatk SendTerminalResponse
       
   372 simatk WaitForRequest
       
   373 
       
   374 // close all
       
   375 simatk Close IscControl
       
   376 simatk Close SAT
       
   377 simatk Unload PhoneTsy.tsy
       
   378 simatk Close RTelServer
       
   379 delete simatk
       
   380 delete notify
       
   381 [Endtest]