adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/testfiles/simatk_eventdownload.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 //
       
    17 // Precondition: 
       
    18 // - Detailed description can be found from Quality Center's Project: CoreSW_CASW/Module Tests/SIM ATK TSY/SimAtkTSY_testtool
       
    19 //
       
    20 // Script description:
       
    21 
       
    22 // Proactive command //
       
    23 ///////////////////////
       
    24 
       
    25 // Type (default 1, UpdateEventList)
       
    26 //  Determines the command type: does the command contain a new event list or does it cancel
       
    27 //  the previous event list.
       
    28 //      0 SetUpEventListTypeNotSet, value used in constructor.
       
    29 //      1 UpdateEventList, command contains a new event list that replaces any previous list.
       
    30 //      2 RemoveExistingEventList, command contains no event list.  
       
    31 //        Instead, remove any existing events from the list.
       
    32 
       
    33 // Events
       
    34 //  Flags form the list of events in a SET UP EVENT LIST proactive command. Used with Type UpdateEventList.
       
    35 //  Not all Events are passed to client. These event have value 0 in the list below.
       
    36 //      0x0000, MT call
       
    37 //      0x0000, Call connected
       
    38 //      0x0000, Call disconnected
       
    39 //      0x0000, Location status
       
    40 //      0x0010, User activity
       
    41 //      0x0020, Idle screen available
       
    42 //      0x0040, Card reader status
       
    43 //      0x0080, Language selection
       
    44 //      0x0100, Browser termination
       
    45 //      0x0200, Data available
       
    46 //      0x0400, Channel status
       
    47 //      0x0000, Access Technology Change
       
    48 //      0x1000, Display parameters changed
       
    49 //      0x2000  Local connection
       
    50 // Example:
       
    51 // Events 0x30 (User activity & idle screen available)
       
    52 // Events 0  (Call connected & disconnected)
       
    53         
       
    54 // Terminal Response //
       
    55 ///////////////////////
       
    56 
       
    57 // GeneralResult
       
    58 //  General result of the proactive command. Default command performed successfully.
       
    59 
       
    60 // AdditionalInfo
       
    61 //  Contains additional information associated with certain error codes set in GeneralResult. 
       
    62 //  If the value in iGeneralResult does not require any information then leave this field empty (default).
       
    63 
       
    64 // InfoType
       
    65 //  If the value of GeneralResult requires additional information, set this to MeProblem.  Otherwise set to
       
    66 //  NoAdditionalInfo (default)
       
    67 
       
    68 // Envelope //
       
    69 //////////////
       
    70 
       
    71 // For Client originated event, use the same Events list and SessionEnd 0 for not to wait SIM session end:
       
    72 // Example: SendEnvelope Events 0x10 SessionEnd 0
       
    73 
       
    74 // Some Client originated events use additional data.
       
    75 
       
    76 // Browser Termination:
       
    77 
       
    78 // Cause
       
    79 // Describes the reason that the browser terminated.
       
    80 //  0	= Unknown Cause, The browser termination cause is unknown.
       
    81 //  1   = User Termination, The browser was terminated by the user.
       
    82 //  2	= Error Termination, The browser was terminated by an error.
       
    83 
       
    84 // Example: SendEnvelope Events 0x100 Cause 1 SessionEnd 0
       
    85 
       
    86 // Language Selection:
       
    87 
       
    88 // Language
       
    89 // Consists of 2 bytes. Each language code is a pair of alpha numeric characters, defined in ISO 639. 
       
    90 // Each alpha numeric character is coded on one byte using the SMS default 7-bit coded alphabet as defined in
       
    91 // ISO 639 (1988): "Code for the representation of names of languages". Coding examples: 'de' -> '6465', fi -> '6669', etc.
       
    92 
       
    93 // Example: 
       
    94 
       
    95 // Data Available: SendEnvelope Events 0x80 Language 0x6669 SessionEnd 0
       
    96 
       
    97 // ChannelStatus
       
    98 // Two bytes describing the Status of the channel
       
    99 //	-	Coding of byte 1:
       
   100 //		-	bit 1 to 3:	Channel identifier : 1..7;
       
   101 //			Channel identifier 0 means "No channel available".
       
   102 //		-	bit 4 to 7:	RFU.
       
   103 //		-	bit 8:	0 = Link not established or PDP context not activated;
       
   104 //			1 = Link established or PDP context not activated.
       
   105 
       
   106 //	-	Coding of byte 2:
       
   107 //		-	'00' = No further info can be given;
       
   108 //		-	'01' = Not used;
       
   109 //		-	'02' = Not used;
       
   110 //		-	'03' = Not used;
       
   111 //		-	'04' = Not used;
       
   112 //		-	'05' = Link dropped;
       
   113 //		-	all other values are reserved.
       
   114 
       
   115 // DataLength
       
   116 // The Channel data length codes:
       
   117 //	-	either the number of bytes that are available in a channel buffer (Tx or Rx buffers negotiated during OPEN CHANNEL) 
       
   118 //		using TERMINAL RESPONSE. Since the Tx or Rx buffer size can be larger than 255 bytes, 'FF' means "more than 255 bytes are available".
       
   119 //	-	or the number of bytes that are requested in a RECEIVE DATA or transmitted in a SEND DATA command.
       
   120 
       
   121 // Example: SendEnvelope Events 0x200 ChannelStatus 81 00 DataLength 08 SessionEnd 0
       
   122 
       
   123 // Channel Status:
       
   124 
       
   125 // ChannelStatus, as described above
       
   126 // Example: SendEnvelope Events 0x400 ChannelStatus 01 05 SessionEnd 0
       
   127 
       
   128 // Following Client originated events not currently supported by TSY:
       
   129 //      0x0040, Card reader status
       
   130 //      0x1000, Display parameters changed (no defined tests in 51.010)
       
   131 //      0x2000  Local connection (no defined tests in 51.010)
       
   132 
       
   133 // Usage of other Proactive commands are explained in command specific .cfg-files
       
   134 
       
   135 
       
   136 [Test]
       
   137 title MOD_0032.001_SIM_ATK_TSY_[EVENT DOWNLOAD - MT Call Event (normal)]
       
   138 
       
   139 create SimAtk simatk
       
   140 create SimAtkNotify notify
       
   141 simatk Connect RTelServer
       
   142 simatk Load PhoneTsy.tsy
       
   143 simatk Open DefaultPhone
       
   144 simatk Open SAT
       
   145 simatk Open IscControl
       
   146 
       
   147 // Load ISC XML -file
       
   148 simatk LoadIscTests SimAtk_EventDownload.xml
       
   149 
       
   150 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   151 simatk RunIscTestCase 32 101
       
   152 waittestclass notify
       
   153 simatk CheckProactiveCommand Events 0
       
   154 simatk SendTerminalResponse
       
   155 
       
   156 simatk WaitForRequest
       
   157 
       
   158 // close all
       
   159 simatk Close IscControl
       
   160 simatk Close SAT
       
   161 simatk Unload PhoneTsy.tsy
       
   162 simatk Close RTelServer
       
   163 delete notify
       
   164 delete simatk
       
   165 [Endtest]
       
   166 
       
   167 [Test]
       
   168 title MOD_0032.002_SIM_ATK_TSY_[EVENT DOWNLOAD - Call Connected Event (MT and MO call]
       
   169 
       
   170 create SimAtk simatk
       
   171 create SimAtkNotify notify
       
   172 simatk Connect RTelServer
       
   173 simatk Load PhoneTsy.tsy
       
   174 simatk Open DefaultPhone
       
   175 simatk Open SAT
       
   176 simatk Open IscControl
       
   177 
       
   178 // Load ISC XML -file
       
   179 simatk LoadIscTests SimAtk_EventDownload.xml
       
   180 
       
   181 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   182 simatk RunIscTestCase 32 102
       
   183 waittestclass notify
       
   184 simatk CheckProactiveCommand Events 0
       
   185 simatk SendTerminalResponse
       
   186 
       
   187 simatk WaitForRequest
       
   188 
       
   189 // close all
       
   190 simatk Close IscControl
       
   191 simatk Close SAT
       
   192 simatk Unload PhoneTsy.tsy
       
   193 simatk Close RTelServer
       
   194 delete notify
       
   195 delete simatk
       
   196 [Endtest]
       
   197 
       
   198 [Test]
       
   199 title MOD_0032.003_SIM_ATK_TSY_[EVENT DOWNLOAD - Call Connected Event (ME supporting SET UP CALL)]
       
   200 
       
   201 create SimAtk simatk
       
   202 create SimAtkNotify notify1
       
   203 create SimAtkNotify notify2
       
   204 simatk Connect RTelServer
       
   205 simatk Load PhoneTsy.tsy
       
   206 simatk Open DefaultPhone
       
   207 simatk Open SAT
       
   208 simatk Open IscControl
       
   209 
       
   210 // Load ISC XML -file
       
   211 simatk LoadIscTests SimAtk_EventDownload.xml
       
   212 
       
   213 notify1 UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   214 notify2 UseObjectAddress simatk ESatNotifySetUpCallPCmd
       
   215 
       
   216 simatk RunIscTestCase 32 103
       
   217 waittestclass notify1
       
   218 simatk CheckProactiveCommand Events 0
       
   219 simatk SendTerminalResponse
       
   220 
       
   221 waittestclass notify2
       
   222 simatk CheckProactiveCommand CommandType ESatNotifySetUpCallPCmd Address "+012340123456" 2 2 AlphaId "+012340123456"
       
   223 simatk SendTerminalResponse CommandType ESatNotifySetUpCallPCmd
       
   224 
       
   225 simatk WaitForRequest
       
   226 
       
   227 // close all
       
   228 simatk Close IscControl
       
   229 simatk Close SAT
       
   230 simatk Unload PhoneTsy.tsy
       
   231 simatk Close RTelServer
       
   232 delete notify1
       
   233 delete notify2
       
   234 delete simatk
       
   235 [Endtest]
       
   236 
       
   237 [Test]
       
   238 title MOD_0032.004_SIM_ATK_TSY_[EVENT DOWNLOAD - Call Disconnected Event]
       
   239 
       
   240 create SimAtk simatk
       
   241 create SimAtkNotify notify
       
   242 simatk Connect RTelServer
       
   243 simatk Load PhoneTsy.tsy
       
   244 simatk Open DefaultPhone
       
   245 simatk Open SAT
       
   246 simatk Open IscControl
       
   247 
       
   248 // Load ISC XML -file
       
   249 simatk LoadIscTests SimAtk_EventDownload.xml
       
   250 
       
   251 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   252 simatk RunIscTestCase 32 104
       
   253 waittestclass notify
       
   254 simatk CheckProactiveCommand Events 0
       
   255 simatk SendTerminalResponse
       
   256 
       
   257 simatk WaitForRequest
       
   258 
       
   259 // close all
       
   260 simatk Close IscControl
       
   261 simatk Close SAT
       
   262 simatk Unload PhoneTsy.tsy
       
   263 simatk Close RTelServer
       
   264 delete notify
       
   265 delete simatk
       
   266 [Endtest]
       
   267 
       
   268 [Test]
       
   269 title MOD_0032.005_SIM_ATK_TSY_[EVENT DOWNLOAD - Location Status Event (normal)]
       
   270 
       
   271 create SimAtk simatk
       
   272 create SimAtkNotify notify
       
   273 simatk Connect RTelServer
       
   274 simatk Load PhoneTsy.tsy
       
   275 simatk Open DefaultPhone
       
   276 simatk Open SAT
       
   277 simatk Open IscControl
       
   278 
       
   279 // Load ISC XML -file
       
   280 simatk LoadIscTests SimAtk_EventDownload.xml
       
   281 
       
   282 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   283 simatk RunIscTestCase 32 105
       
   284 waittestclass notify
       
   285 simatk CheckProactiveCommand Events 0
       
   286 simatk SendTerminalResponse
       
   287 simatk WaitForRequest
       
   288 
       
   289 // close all
       
   290 simatk Close IscControl
       
   291 simatk Close SAT
       
   292 simatk Unload PhoneTsy.tsy
       
   293 simatk Close RTelServer
       
   294 delete notify
       
   295 delete simatk
       
   296 [Endtest]
       
   297 
       
   298 [Test]
       
   299 title MOD_0032.006_SIM_ATK_TSY_[EVENT DOWNLOAD - User Activity Event (normal)]
       
   300 
       
   301 create SimAtk simatk
       
   302 create SimAtkNotify notify
       
   303 simatk Connect RTelServer
       
   304 simatk Load PhoneTsy.tsy
       
   305 simatk Open DefaultPhone
       
   306 simatk Open SAT
       
   307 simatk Open IscControl
       
   308 
       
   309 // Load ISC XML -file
       
   310 simatk LoadIscTests SimAtk_EventDownload.xml
       
   311 
       
   312 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   313 simatk RunIscTestCase 32 106
       
   314 waittestclass notify
       
   315 simatk CheckProactiveCommand Events 0x10
       
   316 simatk SendTerminalResponse
       
   317 simatk SendEnvelope Events 0x10 SessionEnd 0
       
   318 // Send another event to check that extra envelope is not send
       
   319 simatk SendEnvelope Events 0x10 SessionEnd 0
       
   320 simatk WaitForRequest
       
   321 
       
   322 // close all
       
   323 simatk Close IscControl
       
   324 simatk Close SAT
       
   325 simatk Unload PhoneTsy.tsy
       
   326 simatk Close RTelServer
       
   327 delete notify
       
   328 delete simatk
       
   329 [Endtest]
       
   330 
       
   331 [Test]
       
   332 title MOD_0032.007_SIM_ATK_TSY_[EVENT DOWNLOAD - Idle Screen Available (normal)]
       
   333 
       
   334 create SimAtk simatk
       
   335 create SimAtkNotify notify
       
   336 simatk Connect RTelServer
       
   337 simatk Load PhoneTsy.tsy
       
   338 simatk Open DefaultPhone
       
   339 simatk Open SAT
       
   340 simatk Open IscControl
       
   341 
       
   342 // Load ISC XML -file
       
   343 simatk LoadIscTests SimAtk_EventDownload.xml
       
   344 
       
   345 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   346 simatk RunIscTestCase 32 107
       
   347 waittestclass notify
       
   348 simatk CheckProactiveCommand Events 0x20
       
   349 simatk SendTerminalResponse
       
   350 simatk SendEnvelope Events 0x20 SessionEnd 0
       
   351 // Send another event to check that extra envelope is not send
       
   352 simatk SendEnvelope Events 0x20 SessionEnd 0
       
   353 simatk WaitForRequest
       
   354 
       
   355 // close all
       
   356 simatk Close IscControl
       
   357 simatk Close SAT
       
   358 simatk Unload PhoneTsy.tsy
       
   359 simatk Close RTelServer
       
   360 delete notify
       
   361 delete simatk
       
   362 [Endtest]
       
   363 
       
   364 [Test]
       
   365 title MOD_0032.008_SIM_ATK_TSY_[EVENT DOWNLOAD - Language selection event (normal)]
       
   366 
       
   367 create SimAtk simatk
       
   368 create SimAtkNotify notify
       
   369 simatk Connect RTelServer
       
   370 simatk Load PhoneTsy.tsy
       
   371 simatk Open DefaultPhone
       
   372 simatk Open SAT
       
   373 simatk Open IscControl
       
   374 
       
   375 // Load ISC XML -file
       
   376 simatk LoadIscTests SimAtk_EventDownload.xml
       
   377 
       
   378 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   379 simatk RunIscTestCase 32 108
       
   380 waittestclass notify
       
   381 simatk CheckProactiveCommand Events 0x80
       
   382 simatk SendTerminalResponse
       
   383 simatk SendEnvelope Events 0x80 Language 0x6465 SessionEnd 0
       
   384 simatk WaitForRequest
       
   385 
       
   386 // close all
       
   387 simatk Close IscControl
       
   388 simatk Close SAT
       
   389 simatk Unload PhoneTsy.tsy
       
   390 simatk Close RTelServer
       
   391 delete notify
       
   392 delete simatk
       
   393 [Endtest]
       
   394 
       
   395 [Test]
       
   396 title MOD_0032.009_SIM_ATK_TSY_[EVENT DOWNLOAD - Browser termination (normal)]
       
   397 
       
   398 create SimAtk simatk
       
   399 create SimAtkNotify notify
       
   400 simatk Connect RTelServer
       
   401 simatk Load PhoneTsy.tsy
       
   402 simatk Open DefaultPhone
       
   403 simatk Open SAT
       
   404 simatk Open IscControl
       
   405 
       
   406 // Load ISC XML -file
       
   407 simatk LoadIscTests SimAtk_EventDownload.xml
       
   408 
       
   409 notify UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   410 simatk RunIscTestCase 32 109
       
   411 waittestclass notify
       
   412 simatk CheckProactiveCommand Events 0x100
       
   413 simatk SendTerminalResponse
       
   414 simatk SendEnvelope Events 0x100 Cause 1 SessionEnd 0
       
   415 simatk WaitForRequest
       
   416 
       
   417 // close all
       
   418 simatk Close IscControl
       
   419 simatk Close SAT
       
   420 simatk Unload PhoneTsy.tsy
       
   421 simatk Close RTelServer
       
   422 delete notify
       
   423 delete simatk
       
   424 [Endtest]
       
   425 
       
   426 [Test]
       
   427 title MOD_0032.010_SIM_ATK_TSY_[EVENT DOWNLOAD - Data available event]
       
   428 
       
   429 create SimAtk simatk
       
   430 create SimAtkNotify notify1
       
   431 create SimAtkNotify notify2
       
   432 create SimAtkNotify notify3
       
   433 simatk Connect RTelServer
       
   434 simatk Load PhoneTsy.tsy
       
   435 simatk Open DefaultPhone
       
   436 simatk Open SAT
       
   437 simatk Open IscControl
       
   438 
       
   439 // Load ISC XML -file
       
   440 simatk LoadIscTests SimAtk_EventDownload.xml
       
   441 
       
   442 notify1 UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   443 notify2 UseObjectAddress simatk ESatNotifyOpenChannelPCmd
       
   444 notify3 UseObjectAddress simatk ESatNotifySendDataPCmd
       
   445 simatk RunIscTestCase 32 110
       
   446 waittestclass notify1
       
   447 simatk CheckProactiveCommand CommandType ESatNotifySetUpEventListPCmd Events 0x200
       
   448 simatk SendTerminalResponse CommandType ESatNotifySetUpEventListPCmd
       
   449 
       
   450 waittestclass notify2
       
   451 simatk CheckProactiveCommand CommandType ESatNotifyOpenChannelPCmd AccessName "\x06TestGp\x02rs" Bearer 2 BearerParams 02 04 05 05 10 02 BufferSize 1000 DestinationAddress "01.01.01.01" SimMeInterface 2 44444 UserLogin "UserLog" UserPassword "UserPwd"
       
   452 simatk SendTerminalResponse CommandType ESatNotifyOpenChannelPCmd AdditionalInfo 81 0 InfoType ChannelStatusInfo BufferSize 1000 Bearer 2 BearerParams 02 04 05 05 10 02
       
   453 
       
   454 waittestclass notify3
       
   455 simatk CheckProactiveCommand CommandType ESatNotifySendDataPCmd ChannelData 0 1 2 3 4 5 6 7
       
   456 simatk SendTerminalResponse CommandType ESatNotifySendDataPCmd
       
   457 
       
   458 simatk SendEnvelope Events 0x200 ChannelStatus 81 00 DataLength 08 SessionEnd 0
       
   459 simatk WaitForRequest
       
   460 
       
   461 // close all
       
   462 simatk Close IscControl
       
   463 simatk Close SAT
       
   464 simatk Unload PhoneTsy.tsy
       
   465 simatk Close RTelServer
       
   466 delete notify
       
   467 delete simatk
       
   468 [Endtest]
       
   469 
       
   470 [Test]
       
   471 title MOD_0032.011_SIM_ATK_TSY_[EVENT DOWNLOAD - Channel Status event]
       
   472 
       
   473 create SimAtk simatk
       
   474 create SimAtkNotify notify1
       
   475 create SimAtkNotify notify2
       
   476 
       
   477 simatk Connect RTelServer
       
   478 simatk Load PhoneTsy.tsy
       
   479 simatk Open DefaultPhone
       
   480 simatk Open SAT
       
   481 simatk Open IscControl
       
   482 
       
   483 // Load ISC XML -file
       
   484 simatk LoadIscTests SimAtk_EventDownload.xml
       
   485 
       
   486 notify1 UseObjectAddress simatk ESatNotifySetUpEventListPCmd
       
   487 notify2 UseObjectAddress simatk ESatNotifyOpenChannelPCmd
       
   488 
       
   489 simatk RunIscTestCase 32 111
       
   490 waittestclass notify1
       
   491 simatk CheckProactiveCommand CommandType ESatNotifySetUpEventListPCmd Events 0x400
       
   492 simatk SendTerminalResponse CommandType ESatNotifySetUpEventListPCmd
       
   493 
       
   494 waittestclass notify2
       
   495 simatk CheckProactiveCommand CommandType ESatNotifyOpenChannelPCmd AccessName "\x06TestGp\x02rs" Bearer 2 BearerParams 02 04 05 05 10 02 BufferSize 1000 DestinationAddress "01.01.01.01" SimMeInterface 2 44444 UserLogin "UserLog" UserPassword "UserPwd"
       
   496 simatk SendTerminalResponse CommandType ESatNotifyOpenChannelPCmd AdditionalInfo 81 0 InfoType ChannelStatusInfo BufferSize 1000 Bearer 2 BearerParams 02 04 05 05 10 02
       
   497 
       
   498 simatk SendEnvelope Events 0x400 ChannelStatus 01 05 SessionEnd 0
       
   499 simatk WaitForRequest
       
   500 
       
   501 // close all
       
   502 simatk Close IscControl
       
   503 simatk Close SAT
       
   504 simatk Unload PhoneTsy.tsy
       
   505 simatk Close RTelServer
       
   506 delete notify
       
   507 delete simatk
       
   508 [Endtest]