adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/testfiles/simatk_mosmscontrol.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 // Following design descisions of SIM_ATK_TSY are followed when these test cases 
       
    23 // were created:
       
    24 // - NotifyMoSmControlRequest is only completed when SIM provides an AlphaID
       
    25 // - In out of network coverage situtaution SMS sending is allowed without 
       
    26 //   asking from SIM.
       
    27 
       
    28 // MO SMS Control Result //
       
    29 ///////////////
       
    30 
       
    31 // ControlResult
       
    32 //  0 EControlResultNotSet, Initialization value used within constructor(s)
       
    33 //  1 EAllowedNoModification
       
    34 //  2 ENotAllowed
       
    35 //  3 EAllowedWithModifications
       
    36 
       
    37 // AlphaId
       
    38 //  Enter the text inside the quotes or as unicode hex digits. Example: Text "abc" or Text 61 62 63
       
    39 
       
    40 [Test]
       
    41 title MOD_0033.001_SIM_ATK_TSY_[MO SHORT MESSAGE CONTROL BY SIM]
       
    42 
       
    43 create SimAtk simatk
       
    44 create SimAtkNotify notifySendSm
       
    45 
       
    46 // Open ETel and related services
       
    47 simatk Connect RTelServer
       
    48 simatk Load PhoneTsy.tsy
       
    49 simatk Open DefaultPhone
       
    50 simatk Open SAT
       
    51 simatk Open SmsMessaging
       
    52 
       
    53 // For ISI-message simulation and analysis
       
    54 simatk Open IscControl
       
    55 simatk LoadIscTests SimAtk_MoSmsControl.xml
       
    56 
       
    57 // Seq 1.1, allowed, no modifications
       
    58 print "Start Seq1.1"
       
    59 // Send notify
       
    60 notifySendSm UseObjectAddress simatk ESatNotifySendSmPCmd
       
    61 simatk RunIscTestCase 33 101
       
    62 waittestclass notifySendSm
       
    63 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65
       
    64 simatk SendTerminalResponse
       
    65 simatk WaitForRequest
       
    66 
       
    67 // Seq 1.2 skipped as it is same as 1.1 from MO SMS control point of view
       
    68 
       
    69 // Seq 1.3, Not allowed case
       
    70 // Send notify
       
    71 notifySendSm UseObjectAddress simatk ESatNotifySendSmPCmd
       
    72 simatk RunIscTestCase 33 102
       
    73 waittestclass notifySendSm
       
    74 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 SmsResult -8301
       
    75 simatk SendTerminalResponse GeneralResult 39 InfoType MeProblem AdditionalInfo 01
       
    76 simatk WaitForRequest
       
    77 
       
    78 // Seq 1.4 skipped as it is same as 1.3 from MO SMS control point of view
       
    79 
       
    80 // Seq 1.5, Allowed with modifications
       
    81 // Send notify
       
    82 notifySendSm UseObjectAddress simatk ESatNotifySendSmPCmd
       
    83 simatk RunIscTestCase 33 103
       
    84 waittestclass notifySendSm
       
    85 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65 SmsResult -8302
       
    86 simatk SendTerminalResponse
       
    87 simatk WaitForRequest
       
    88 
       
    89 // Seq 1.6 skipped as it is same as 1.5 from MO SMS control point of view
       
    90 
       
    91 // Seq 1.7, Allowed, "90 00" no modifications
       
    92 // Send notify
       
    93 notifySendSm UseObjectAddress simatk ESatNotifySendSmPCmd
       
    94 simatk RunIscTestCase 33 104
       
    95 waittestclass notifySendSm
       
    96 simatk CheckProactiveCommand Address "112233445566778" 2 2 AlphaId "Send SM" SmsTpdu 01 00 09 91 10 32 54 76 F8 40 F4 0C 54 65 73 74 20 4D 65 73 73 61 67 65
       
    97 simatk SendTerminalResponse 
       
    98 simatk WaitForRequest
       
    99 
       
   100 // close all
       
   101 simatk Close SmsMessaging
       
   102 simatk Close IscControl
       
   103 simatk Close SAT
       
   104 simatk Unload PhoneTsy.tsy
       
   105 simatk Close RTelServer
       
   106 delete notifySendSm
       
   107 delete simatk
       
   108 [Endtest]