cellularsrvapitest/datatransferhaitest/scripts/telephony_comms-validation-automated_download.script
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName telephony_comms-validation-automated_download
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 // 
       
    20 // Tests all public elements of the Rsocket, RSocketServ, Rconnection, RHostResolver,RTelServer, RMobileLine, RMobilePhone, RMmCustomAPI
       
    21 // classes as a means of confidence that the APIs work as expected.
       
    22 // 
       
    23 // The purpose is to provide a regression test suite of PublishedAll
       
    24 // APIs for: Rsocket, RSocketServ, Rconnection, RHostResolver,RTelServer, RMobileLine, RMobilePhone, RMmCustomAPI
       
    25 // The tests are fully automated.
       
    26 //
       
    27 
       
    28 
       
    29 
       
    30 LOAD_SUITE t_esock_etelmm
       
    31 
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0001
       
    37 
       
    38 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0001
       
    39 //!@SYMAPI
       
    40 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
    41 //!                void RHostResolver:: GetByName(const TDesC {ref}aName; TNameEntry {ref}aResult; TRequestStatus {ref}aStatus);
       
    42 //!                void Rconnection :: Start(TConnPref {ref}aPref; TRequestStatus {ref}aStatus);
       
    43 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc; TUint flags; TRequestStatus {ref}aStatus; TSockXfrLength {ref}aLen);
       
    44 //!@SYMAuthor			ddamian
       
    45 //!@SYMCreationDate		25/4/2008
       
    46 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in GSM mode and download file using HTTP protocol. File will be saved in SysDrive.
       
    47 //!@SYMTestActions
       
    48 //!                1.- OpenTelServer
       
    49 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
    50 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
    51 //!                4.- ModeChange (ChangeMode = GSM)
       
    52 //!                5.- GetCurrentSystemNetworkModes
       
    53 //!                6.- ModeCheck (CheckMode = GSM)
       
    54 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
    55 //!                8.- ConnectSocketServ
       
    56 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
    57 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
    58 //!                11.- StartRConnection2 (Retries = 1)
       
    59 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
    60 //!                13.- GetByName (Address = {URL,address2})
       
    61 //!                14.- CloseHostResolver 
       
    62 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
    63 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
    64 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
    65 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0001.txt)
       
    66 //!                19.- StartDealer (DataDealer = 0)
       
    67 //!                20.- CheckHSDPA (HSDPA =   )
       
    68 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0001.txt; DataDealer = 0; Duration = -1)
       
    69 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0001.txt)
       
    70 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
    71 //!                24.- RSocketShutDown
       
    72 //!                25.- RSocketClose
       
    73 //!                26.- StopRConnection
       
    74 //!                27.- CloseRConnection
       
    75 //!                28.- CloseLine
       
    76 //!                29.- CloseSocketServ
       
    77 //!                30.- CloseCustomApi
       
    78 //!                31.- ClosePhone
       
    79 //!                32.- CloseTelServer
       
    80 //!@SYMTestStatus		Verified
       
    81 //!@SYMTestPriority		high
       
    82 //!@SYMTestExpectedResults
       
    83 //!                Connect to a GPRS Access Point in GSM mode and download file using HTTP protocol with no error. File will be saved in SysDrive.
       
    84 //!@SYMTestType			CIT
       
    85 
       
    86 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
    87 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
    88 		CREATE_OBJECT	RSocket		rSocket1
       
    89 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
    90 		CREATE_OBJECT	RConnection		rConnection1
       
    91 		CREATE_OBJECT	DataVerify		dataVerify1
       
    92 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
    93 		CREATE_OBJECT	RTelServer		telServer1
       
    94 		CREATE_OBJECT	RMobileLine		mobileLine1
       
    95 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
    96 		COMMAND		telServer1		Connect
       
    97 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command02
       
    98 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command03
       
    99 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0001-0001-SetSystemNetworkMode_command04
       
   100 		OUTSTANDING
       
   101 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   102 		OUTSTANDING
       
   103 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0001-0001-ModeCheck_command06
       
   104 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command07
       
   105 		COMMAND		rSocketServ1		Connect
       
   106 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command09
       
   107 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0001-0001-SelectOutgoingIAP_command10
       
   108 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0001-0001-Start_command11
       
   109 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command12
       
   110 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0001-0001-GetByName_command13
       
   111 		OUTSTANDING
       
   112 		COMMAND		rHostResolver1		Close
       
   113 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0001-0001-Open_command15
       
   114 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0001-0001-Connect_command16
       
   115 		OUTSTANDING
       
   116 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0001-0001-WriteRequest_command17
       
   117 		OUTSTANDING
       
   118 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0001-0001-StartFile_command18
       
   119 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0001-0001-StartDealer_command19
       
   120 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0001-0001-CheckHSDPA_command20
       
   121 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0001-0001-RecvOneOrMore_command21
       
   122 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0001-0001-EndFile_command22
       
   123 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0001-0001-CalcDnloadStats_command23
       
   124 		COMMAND		rSocket1		ShutDown
       
   125 		OUTSTANDING
       
   126 		COMMAND		rSocket1		Close
       
   127 		COMMAND		rConnection1		Stop
       
   128 		COMMAND		rConnection1		Close
       
   129 		COMMAND		mobileLine1		Close
       
   130 		COMMAND		rSocketServ1		Close
       
   131 		COMMAND		mmCustomAPI1		Close
       
   132 		COMMAND		rMobilePhone1		Close
       
   133 		COMMAND		telServer1		Close
       
   134 	END_TEST_BLOCK
       
   135 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0001
       
   136 
       
   137 
       
   138 
       
   139 
       
   140 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0002
       
   141 
       
   142 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0002
       
   143 //!@SYMAPI
       
   144 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   145 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   146 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   147 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   148 //!@SYMAuthor			ddamian
       
   149 //!@SYMCreationDate		9/5/2008 
       
   150 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in Dual mode and download file using HTTP protocol. File will be saved in SysDrive.
       
   151 //!@SYMTestActions
       
   152 //!                1.- OpenTelServer
       
   153 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   154 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   155 //!                4.- ModeChange (ChangeMode = Dual)
       
   156 //!                5.- GetCurrentSystemNetworkModes
       
   157 //!                6.- ModeCheck (CheckMode = Dual)
       
   158 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   159 //!                8.- ConnectSocketServ
       
   160 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   161 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   162 //!                11.- StartRConnection2 (Retries = 1)
       
   163 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   164 //!                13.- GetByName (Address = {URL,address2})
       
   165 //!                14.- CloseHostResolver 
       
   166 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   167 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   168 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   169 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0006.txt)
       
   170 //!                19.- StartDealer (DataDealer = 0)
       
   171 //!                20.- CheckHSDPA (HSDPA =   )
       
   172 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0006.txt; DataDealer = 0; Duration = -1)
       
   173 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0006.txt)
       
   174 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   175 //!                24.- RSocketShutDown
       
   176 //!                25.- RSocketClose
       
   177 //!                26.- StopRConnection
       
   178 //!                27.- CloseRConnection
       
   179 //!                28.- CloseLine
       
   180 //!                29.- CloseSocketServ
       
   181 //!                30.- CloseCustomApi
       
   182 //!                31.- ClosePhone
       
   183 //!                32.- CloseTelServer
       
   184 //!@SYMTestStatus		Verified
       
   185 //!@SYMTestPriority		high
       
   186 //!@SYMTestExpectedResults
       
   187 //!                Connect to a GPRS Access Point in Dual mode and download file using HTTP protocol  with no error. File will be saved in SysDrive.
       
   188 //!@SYMTestType			CIT
       
   189 
       
   190 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   191 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   192 		CREATE_OBJECT	RSocket		rSocket1
       
   193 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   194 		CREATE_OBJECT	RConnection		rConnection1
       
   195 		CREATE_OBJECT	DataVerify		dataVerify1
       
   196 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   197 		CREATE_OBJECT	RTelServer		telServer1
       
   198 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   199 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   200 		COMMAND		telServer1		Connect
       
   201 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command02
       
   202 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command03
       
   203 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0002-0001-SetSystemNetworkMode_command04
       
   204 		OUTSTANDING
       
   205 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   206 		OUTSTANDING
       
   207 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0002-0001-ModeCheck_command06
       
   208 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command07
       
   209 		COMMAND		rSocketServ1		Connect
       
   210 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command09
       
   211 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0002-0001-SelectOutgoingIAP_command10
       
   212 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0002-0001-Start_command11
       
   213 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command12
       
   214 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0002-0001-GetByName_command13
       
   215 		OUTSTANDING
       
   216 		COMMAND		rHostResolver1		Close
       
   217 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0002-0001-Open_command15
       
   218 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0002-0001-Connect_command16
       
   219 		OUTSTANDING
       
   220 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0002-0001-WriteRequest_command17
       
   221 		OUTSTANDING
       
   222 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0002-0001-StartFile_command18
       
   223 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0002-0001-StartDealer_command19
       
   224 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0002-0001-CheckHSDPA_command20
       
   225 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0002-0001-RecvOneOrMore_command21
       
   226 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0002-0001-EndFile_command22
       
   227 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0002-0001-CalcDnloadStats_command23
       
   228 		COMMAND		rSocket1		ShutDown
       
   229 		OUTSTANDING
       
   230 		COMMAND		rSocket1		Close
       
   231 		COMMAND		rConnection1		Stop
       
   232 		COMMAND		rConnection1		Close
       
   233 		COMMAND		mobileLine1		Close
       
   234 		COMMAND		rSocketServ1		Close
       
   235 		COMMAND		mmCustomAPI1		Close
       
   236 		COMMAND		rMobilePhone1		Close
       
   237 		COMMAND		telServer1		Close
       
   238 	END_TEST_BLOCK
       
   239 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0002
       
   240 
       
   241 
       
   242 
       
   243 
       
   244 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0003
       
   245 
       
   246 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0003
       
   247 //!@SYMAPI
       
   248 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   249 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   250 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   251 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   252 //!@SYMAuthor			ddamian
       
   253 //!@SYMCreationDate		25/4/2008
       
   254 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode and download file using HTTP protocol. File will be saved in SysDrive.
       
   255 //!@SYMTestActions
       
   256 //!                1.- OpenTelServer
       
   257 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   258 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   259 //!                4.- ModeChange (ChangeMode = GSM)
       
   260 //!                5.- GetCurrentSystemNetworkModes
       
   261 //!                6.- ModeCheck (CheckMode = GSM)
       
   262 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   263 //!                8.- ConnectSocketServ
       
   264 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   265 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   266 //!                11.- StartRConnection2 (Retries = 1)
       
   267 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   268 //!                13.- GetByName (Address = {URL,address2})
       
   269 //!                14.- CloseHostResolver 
       
   270 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   271 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   272 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   273 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0013.txt)
       
   274 //!                19.- StartDealer (DataDealer = 0)
       
   275 //!                20.- CheckHSDPA (HSDPA =   )
       
   276 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0013.txt; DataDealer = 0; Duration = -1)
       
   277 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0013.txt)
       
   278 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   279 //!                24.- RSocketShutDown
       
   280 //!                25.- RSocketClose
       
   281 //!                26.- StopRConnection
       
   282 //!                27.- CloseRConnection
       
   283 //!                28.- CloseLine
       
   284 //!                29.- CloseSocketServ
       
   285 //!                30.- CloseCustomApi
       
   286 //!                31.- ClosePhone
       
   287 //!                32.- CloseTelServer
       
   288 //!@SYMTestStatus		Verified
       
   289 //!@SYMTestPriority		high
       
   290 //!@SYMTestExpectedResults
       
   291 //!                Connect to a CSD Access Point in GSM mode and download file using HTTP protocol  with no error. File will be saved in SysDrive.
       
   292 //!@SYMTestType			CIT
       
   293 
       
   294 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   295 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   296 		CREATE_OBJECT	RSocket		rSocket1
       
   297 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   298 		CREATE_OBJECT	RConnection		rConnection1
       
   299 		CREATE_OBJECT	DataVerify		dataVerify1
       
   300 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   301 		CREATE_OBJECT	RTelServer		telServer1
       
   302 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   303 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   304 		COMMAND		telServer1		Connect
       
   305 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command02
       
   306 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command03
       
   307 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0003-0001-SetSystemNetworkMode_command04
       
   308 		OUTSTANDING
       
   309 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   310 		OUTSTANDING
       
   311 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0003-0001-ModeCheck_command06
       
   312 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command07
       
   313 		COMMAND		rSocketServ1		Connect
       
   314 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command09
       
   315 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0003-0001-SelectOutgoingIAP_command10
       
   316 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0003-0001-Start_command11
       
   317 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command12
       
   318 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0003-0001-GetByName_command13
       
   319 		OUTSTANDING
       
   320 		COMMAND		rHostResolver1		Close
       
   321 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0003-0001-Open_command15
       
   322 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0003-0001-Connect_command16
       
   323 		OUTSTANDING
       
   324 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0003-0001-WriteRequest_command17
       
   325 		OUTSTANDING
       
   326 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0003-0001-StartFile_command18
       
   327 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0003-0001-StartDealer_command19
       
   328 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0003-0001-CheckHSDPA_command20
       
   329 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0003-0001-RecvOneOrMore_command21
       
   330 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0003-0001-EndFile_command22
       
   331 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0003-0001-CalcDnloadStats_command23
       
   332 		COMMAND		rSocket1		ShutDown
       
   333 		OUTSTANDING
       
   334 		COMMAND		rSocket1		Close
       
   335 		COMMAND		rConnection1		Stop
       
   336 		COMMAND		rConnection1		Close
       
   337 		COMMAND		mobileLine1		Close
       
   338 		COMMAND		rSocketServ1		Close
       
   339 		COMMAND		mmCustomAPI1		Close
       
   340 		COMMAND		rMobilePhone1		Close
       
   341 		COMMAND		telServer1		Close
       
   342 	END_TEST_BLOCK
       
   343 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0003
       
   344 
       
   345 
       
   346 
       
   347 
       
   348 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0004
       
   349 
       
   350 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0004
       
   351 //!@SYMAPI
       
   352 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   353 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   354 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   355 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   356 //!@SYMAuthor			ddamian
       
   357 //!@SYMCreationDate		25/4/2008
       
   358 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode and download file using HTTP protocol. File will be saved in SysDrive.
       
   359 //!@SYMTestActions
       
   360 //!                1.- OpenTelServer
       
   361 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   362 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   363 //!                4.- ModeChange (ChangeMode = GSM)
       
   364 //!                5.- GetCurrentSystemNetworkModes
       
   365 //!                6.- ModeCheck (CheckMode = GSM)
       
   366 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   367 //!                8.- ConnectSocketServ
       
   368 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
   369 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
   370 //!                11.- StartRConnection2 (Retries = 1)
       
   371 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   372 //!                13.- GetByName (Address = {URL,address2})
       
   373 //!                14.- CloseHostResolver 
       
   374 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   375 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   376 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   377 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0014.txt)
       
   378 //!                19.- StartDealer (DataDealer = 0)
       
   379 //!                20.- CheckHSDPA (HSDPA =   )
       
   380 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0014.txt; DataDealer = 0; Duration = -1)
       
   381 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0014.txt)
       
   382 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   383 //!                24.- RSocketShutDown
       
   384 //!                25.- RSocketClose
       
   385 //!                26.- StopRConnection
       
   386 //!                27.- CloseRConnection
       
   387 //!                28.- CloseLine
       
   388 //!                29.- CloseSocketServ
       
   389 //!                30.- CloseCustomApi
       
   390 //!                31.- ClosePhone
       
   391 //!                32.- CloseTelServer
       
   392 //!@SYMTestStatus		Verified
       
   393 //!@SYMTestPriority		high
       
   394 //!@SYMTestExpectedResults
       
   395 //!                Connect to a HSCSD Access Point in GSM mode and download file using HTTP protocol  with no error. File will be saved in SysDrive.
       
   396 //!@SYMTestType			CIT
       
   397 
       
   398 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   399 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   400 		CREATE_OBJECT	RSocket		rSocket1
       
   401 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   402 		CREATE_OBJECT	RConnection		rConnection1
       
   403 		CREATE_OBJECT	DataVerify		dataVerify1
       
   404 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   405 		CREATE_OBJECT	RTelServer		telServer1
       
   406 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   407 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   408 		COMMAND		telServer1		Connect
       
   409 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command02
       
   410 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command03
       
   411 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0004-0001-SetSystemNetworkMode_command04
       
   412 		OUTSTANDING
       
   413 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   414 		OUTSTANDING
       
   415 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0004-0001-ModeCheck_command06
       
   416 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command07
       
   417 		COMMAND		rSocketServ1		Connect
       
   418 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command09
       
   419 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0004-0001-SelectOutgoingIAP_command10
       
   420 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0004-0001-Start_command11
       
   421 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command12
       
   422 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0004-0001-GetByName_command13
       
   423 		OUTSTANDING
       
   424 		COMMAND		rHostResolver1		Close
       
   425 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0004-0001-Open_command15
       
   426 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0004-0001-Connect_command16
       
   427 		OUTSTANDING
       
   428 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0004-0001-WriteRequest_command17
       
   429 		OUTSTANDING
       
   430 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0004-0001-StartFile_command18
       
   431 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0004-0001-StartDealer_command19
       
   432 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0004-0001-CheckHSDPA_command20
       
   433 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0004-0001-RecvOneOrMore_command21
       
   434 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0004-0001-EndFile_command22
       
   435 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0004-0001-CalcDnloadStats_command23
       
   436 		COMMAND		rSocket1		ShutDown
       
   437 		OUTSTANDING
       
   438 		COMMAND		rSocket1		Close
       
   439 		COMMAND		rConnection1		Stop
       
   440 		COMMAND		rConnection1		Close
       
   441 		COMMAND		mobileLine1		Close
       
   442 		COMMAND		rSocketServ1		Close
       
   443 		COMMAND		mmCustomAPI1		Close
       
   444 		COMMAND		rMobilePhone1		Close
       
   445 		COMMAND		telServer1		Close
       
   446 	END_TEST_BLOCK
       
   447 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0004
       
   448 
       
   449 
       
   450 
       
   451 
       
   452 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0005
       
   453 
       
   454 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0005
       
   455 //!@SYMAPI
       
   456 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   457 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   458 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   459 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   460 //!@SYMAuthor			ddamian
       
   461 //!@SYMCreationDate		9/5/2008 
       
   462 //!@SYMTestCaseDesc		Connect to a CSD Access Point in Dual mode and download file using HTTP protocol .  File will be saved in SysDrive.
       
   463 //!@SYMTestActions
       
   464 //!                1.- OpenTelServer
       
   465 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   466 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   467 //!                4.- ModeChange (ChangeMode = Dual)
       
   468 //!                5.- GetCurrentSystemNetworkModes
       
   469 //!                6.- ModeCheck (CheckMode = Dual)
       
   470 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   471 //!                8.- ConnectSocketServ
       
   472 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   473 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   474 //!                11.- StartRConnection (Retries = 1)
       
   475 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   476 //!                13.- GetByName (Address = {URL,address2})
       
   477 //!                14.- CloseHostResolver 
       
   478 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   479 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   480 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   481 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0039.txt)
       
   482 //!                19.- StartDealer (DataDealer = 0)
       
   483 //!                20.- CheckHSDPA (HSDPA =   )
       
   484 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0039.txt; DataDealer = 0; Duration = -1)
       
   485 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0039.txt)
       
   486 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   487 //!                24.- RSocketShutDown
       
   488 //!                25.- RSocketClose
       
   489 //!                26.- StopRConnection
       
   490 //!                27.- CloseRConnection
       
   491 //!                28.- CloseLine
       
   492 //!                29.- CloseSocketServ
       
   493 //!                30.- CloseCustomApi
       
   494 //!                31.- ClosePhone
       
   495 //!                32.- CloseTelServer
       
   496 //!@SYMTestStatus		Verified
       
   497 //!@SYMTestPriority		high
       
   498 //!@SYMTestExpectedResults
       
   499 //!                Connect to a CSD Access Point in Dual mode and download file using HTTP protocol  with no error.  File will be saved in SysDrive.
       
   500 //!@SYMTestType			CIT
       
   501 
       
   502 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   503 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   504 		CREATE_OBJECT	RSocket		rSocket1
       
   505 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   506 		CREATE_OBJECT	RConnection		rConnection1
       
   507 		CREATE_OBJECT	DataVerify		dataVerify1
       
   508 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   509 		CREATE_OBJECT	RTelServer		telServer1
       
   510 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   511 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   512 		COMMAND		telServer1		Connect
       
   513 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command02
       
   514 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command03
       
   515 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0005-0001-SetSystemNetworkMode_command04
       
   516 		OUTSTANDING
       
   517 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   518 		OUTSTANDING
       
   519 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0005-0001-ModeCheck_command06
       
   520 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command07
       
   521 		COMMAND		rSocketServ1		Connect
       
   522 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command09
       
   523 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0005-0001-SelectOutgoingIAP_command10
       
   524 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0005-0001-Start_command11
       
   525 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command12
       
   526 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0005-0001-GetByName_command13
       
   527 		OUTSTANDING
       
   528 		COMMAND		rHostResolver1		Close
       
   529 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0005-0001-Open_command15
       
   530 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0005-0001-Connect_command16
       
   531 		OUTSTANDING
       
   532 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0005-0001-WriteRequest_command17
       
   533 		OUTSTANDING
       
   534 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0005-0001-StartFile_command18
       
   535 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0005-0001-StartDealer_command19
       
   536 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0005-0001-CheckHSDPA_command20
       
   537 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0005-0001-RecvOneOrMore_command21
       
   538 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0005-0001-EndFile_command22
       
   539 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0005-0001-CalcDnloadStats_command23
       
   540 		COMMAND		rSocket1		ShutDown
       
   541 		OUTSTANDING
       
   542 		COMMAND		rSocket1		Close
       
   543 		COMMAND		rConnection1		Stop
       
   544 		COMMAND		rConnection1		Close
       
   545 		COMMAND		mobileLine1		Close
       
   546 		COMMAND		rSocketServ1		Close
       
   547 		COMMAND		mmCustomAPI1		Close
       
   548 		COMMAND		rMobilePhone1		Close
       
   549 		COMMAND		telServer1		Close
       
   550 	END_TEST_BLOCK
       
   551 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0005
       
   552 
       
   553 
       
   554 
       
   555 
       
   556 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0006
       
   557 
       
   558 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0006
       
   559 //!@SYMAPI
       
   560 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   561 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   562 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   563 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   564 //!@SYMAuthor			ddamian
       
   565 //!@SYMCreationDate		9/5/2008 
       
   566 //!@SYMTestCaseDesc		Connect to a GPRS access point in WCDMA mode and download file using HTTP protocol and HSDPA. File will be saved in SysDrive.
       
   567 //!@SYMTestActions
       
   568 //!                1.- OpenTelServer
       
   569 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   570 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   571 //!                4.- ModeChange (ChangeMode = WCDMA)
       
   572 //!                5.- GetCurrentSystemNetworkModes
       
   573 //!                6.- ModeCheck (CheckMode = WCDMA)
       
   574 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   575 //!                8.- ConnectSocketServ
       
   576 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   577 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   578 //!                11.- StartRConnection (Retries = 1)
       
   579 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   580 //!                13.- GetByName (Address = {URL,address1})
       
   581 //!                14.- CloseHostResolver 
       
   582 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   583 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   584 //!                17.- WriteRequest (File = /dy/big/10MB.bin; Protocol = HTTP)
       
   585 //!                18.- StartFile (Save = {DRIVES,MMCDrive}\10MB-tc-0052.bin)
       
   586 //!                19.- StartDealer (DataDealer = 0)
       
   587 //!                20.- CheckHSDPA (HSDPA = Used)
       
   588 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\10MB-tc-0052.bin; DataDealer = 0; Duration = -1)
       
   589 //!                22.- EndFile (Save = {DRIVES,MMCDrive}\10MB-tc-0052.bin)
       
   590 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   591 //!                24.- RSocketShutDown
       
   592 //!                25.- RSocketClose
       
   593 //!                26.- StopRConnection
       
   594 //!                27.- CloseRConnection
       
   595 //!                28.- CloseLine
       
   596 //!                29.- CloseSocketServ
       
   597 //!                30.- CloseCustomApi
       
   598 //!                31.- ClosePhone
       
   599 //!                32.- CloseTelServer
       
   600 //!@SYMTestStatus		Verified
       
   601 //!@SYMTestPriority		high
       
   602 //!@SYMTestExpectedResults
       
   603 //!                Connect to a GPRS access point in WCDMA mode and download file using HTTP protocol and HSDPA  with no error. File will be saved in SysDrive.
       
   604 //!@SYMTestType			CIT
       
   605 
       
   606 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   607 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   608 		CREATE_OBJECT	RSocket		rSocket1
       
   609 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   610 		CREATE_OBJECT	RConnection		rConnection1
       
   611 		CREATE_OBJECT	DataVerify		dataVerify1
       
   612 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   613 		CREATE_OBJECT	RTelServer		telServer1
       
   614 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   615 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   616 		COMMAND		telServer1		Connect
       
   617 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command02
       
   618 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command03
       
   619 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0006-0001-SetSystemNetworkMode_command04
       
   620 		OUTSTANDING
       
   621 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   622 		OUTSTANDING
       
   623 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0006-0001-ModeCheck_command06
       
   624 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command07
       
   625 		COMMAND		rSocketServ1		Connect
       
   626 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command09
       
   627 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0006-0001-SelectOutgoingIAP_command10
       
   628 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0006-0001-Start_command11
       
   629 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command12
       
   630 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0006-0001-GetByName_command13
       
   631 		OUTSTANDING
       
   632 		COMMAND		rHostResolver1		Close
       
   633 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0006-0001-Open_command15
       
   634 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0006-0001-Connect_command16
       
   635 		OUTSTANDING
       
   636 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0006-0001-WriteRequest_command17
       
   637 		OUTSTANDING
       
   638 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0006-0001-StartFile_command18
       
   639 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0006-0001-StartDealer_command19
       
   640 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0006-0001-CheckHSDPA_command20
       
   641 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0006-0001-RecvOneOrMore_command21
       
   642 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0006-0001-EndFile_command22
       
   643 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0006-0001-CalcDnloadStats_command23
       
   644 		COMMAND		rSocket1		ShutDown
       
   645 		OUTSTANDING
       
   646 		COMMAND		rSocket1		Close
       
   647 		COMMAND		rConnection1		Stop
       
   648 		COMMAND		rConnection1		Close
       
   649 		COMMAND		mobileLine1		Close
       
   650 		COMMAND		rSocketServ1		Close
       
   651 		COMMAND		mmCustomAPI1		Close
       
   652 		COMMAND		rMobilePhone1		Close
       
   653 		COMMAND		telServer1		Close
       
   654 	END_TEST_BLOCK
       
   655 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0006
       
   656 
       
   657 
       
   658 
       
   659 
       
   660 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0007
       
   661 
       
   662 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0007
       
   663 //!@SYMAPI
       
   664 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   665 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   666 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   667 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   668 //!@SYMAuthor			ddamian
       
   669 //!@SYMCreationDate		9/5/2008 
       
   670 //!@SYMTestCaseDesc		Connect to a GPRS access point in WCDMA mode and download file using HTTP protocol. File will be saved in SysDrive.
       
   671 //!@SYMTestActions
       
   672 //!                1.- OpenTelServer
       
   673 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   674 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   675 //!                4.- ModeChange (ChangeMode = WCDMA)
       
   676 //!                5.- GetCurrentSystemNetworkModes
       
   677 //!                6.- ModeCheck (CheckMode = WCDMA)
       
   678 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   679 //!                8.- ConnectSocketServ
       
   680 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   681 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   682 //!                11.- StartRConnection (Retries = 1)
       
   683 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   684 //!                13.- GetByName (Address = {URL,address2})
       
   685 //!                14.- CloseHostResolver 
       
   686 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   687 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   688 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   689 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0066.txt)
       
   690 //!                19.- StartDealer (DataDealer = 0)
       
   691 //!                20.- CheckHSDPA (HSDPA =   )
       
   692 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0066.txt; DataDealer = 0; Duration = -1)
       
   693 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0066.txt)
       
   694 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   695 //!                24.- RSocketShutDown
       
   696 //!                25.- RSocketClose
       
   697 //!                26.- StopRConnection
       
   698 //!                27.- CloseRConnection
       
   699 //!                28.- CloseLine
       
   700 //!                29.- CloseSocketServ
       
   701 //!                30.- CloseCustomApi
       
   702 //!                31.- ClosePhone
       
   703 //!                32.- CloseTelServer
       
   704 //!@SYMTestStatus		Verified
       
   705 //!@SYMTestPriority		high
       
   706 //!@SYMTestExpectedResults
       
   707 //!                Connect to a GPRS access point in WCDMA mode and download file using HTTP protocol with no error. File will be saved in SysDrive.
       
   708 //!@SYMTestType			CIT
       
   709 
       
   710 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   711 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   712 		CREATE_OBJECT	RSocket		rSocket1
       
   713 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   714 		CREATE_OBJECT	RConnection		rConnection1
       
   715 		CREATE_OBJECT	DataVerify		dataVerify1
       
   716 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   717 		CREATE_OBJECT	RTelServer		telServer1
       
   718 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   719 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   720 		COMMAND		telServer1		Connect
       
   721 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command02
       
   722 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command03
       
   723 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0007-0001-SetSystemNetworkMode_command04
       
   724 		OUTSTANDING
       
   725 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   726 		OUTSTANDING
       
   727 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0007-0001-ModeCheck_command06
       
   728 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command07
       
   729 		COMMAND		rSocketServ1		Connect
       
   730 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command09
       
   731 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0007-0001-SelectOutgoingIAP_command10
       
   732 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0007-0001-Start_command11
       
   733 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command12
       
   734 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0007-0001-GetByName_command13
       
   735 		OUTSTANDING
       
   736 		COMMAND		rHostResolver1		Close
       
   737 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0007-0001-Open_command15
       
   738 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0007-0001-Connect_command16
       
   739 		OUTSTANDING
       
   740 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0007-0001-WriteRequest_command17
       
   741 		OUTSTANDING
       
   742 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0007-0001-StartFile_command18
       
   743 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0007-0001-StartDealer_command19
       
   744 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0007-0001-CheckHSDPA_command20
       
   745 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0007-0001-RecvOneOrMore_command21
       
   746 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0007-0001-EndFile_command22
       
   747 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0007-0001-CalcDnloadStats_command23
       
   748 		COMMAND		rSocket1		ShutDown
       
   749 		OUTSTANDING
       
   750 		COMMAND		rSocket1		Close
       
   751 		COMMAND		rConnection1		Stop
       
   752 		COMMAND		rConnection1		Close
       
   753 		COMMAND		mobileLine1		Close
       
   754 		COMMAND		rSocketServ1		Close
       
   755 		COMMAND		mmCustomAPI1		Close
       
   756 		COMMAND		rMobilePhone1		Close
       
   757 		COMMAND		telServer1		Close
       
   758 	END_TEST_BLOCK
       
   759 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0007
       
   760 
       
   761 
       
   762 
       
   763 
       
   764 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0008
       
   765 
       
   766 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0008
       
   767 //!@SYMAPI
       
   768 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   769 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   770 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   771 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   772 //!@SYMAuthor			ddamian
       
   773 //!@SYMCreationDate		9/5/2008 
       
   774 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode and download file using HTTP protocol . File will be saved in SysDrive.
       
   775 //!@SYMTestActions
       
   776 //!                1.- OpenTelServer
       
   777 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   778 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   779 //!                4.- ModeChange (ChangeMode = WCDMA)
       
   780 //!                5.- GetCurrentSystemNetworkModes
       
   781 //!                6.- ModeCheck (CheckMode = WCDMA)
       
   782 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   783 //!                8.- ConnectSocketServ
       
   784 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   785 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   786 //!                11.- StartRConnection (Retries = 1)
       
   787 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   788 //!                13.- GetByName (Address = {URL,address2})
       
   789 //!                14.- CloseHostResolver 
       
   790 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   791 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   792 //!                17.- WriteRequest (File = /mobiiliuutiset/; Protocol = HTTP)
       
   793 //!                18.- StartFile (Save = {DRIVES,SysDrive}\index-tc-0067.txt)
       
   794 //!                19.- StartDealer (DataDealer = 0)
       
   795 //!                20.- CheckHSDPA (HSDPA =   )
       
   796 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\index-tc-0067.txt; DataDealer = 0; Duration = -1)
       
   797 //!                22.- EndFile (Save = {DRIVES,SysDrive}\index-tc-0067.txt)
       
   798 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   799 //!                24.- RSocketShutDown
       
   800 //!                25.- RSocketClose
       
   801 //!                26.- StopRConnection
       
   802 //!                27.- CloseRConnection
       
   803 //!                28.- CloseLine
       
   804 //!                29.- CloseSocketServ
       
   805 //!                30.- CloseCustomApi
       
   806 //!                31.- ClosePhone
       
   807 //!                32.- CloseTelServer
       
   808 //!@SYMTestStatus		Implemented
       
   809 //!@SYMTestPriority		high
       
   810 //!@SYMTestExpectedResults
       
   811 //!                Connect to a CSD Access Point in WCDMA mode and download file using HTTP protocol  with no error. File will be saved in SysDrive.
       
   812 //!@SYMTestType			CIT
       
   813 
       
   814 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   815 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   816 		CREATE_OBJECT	RSocket		rSocket1
       
   817 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   818 		CREATE_OBJECT	RConnection		rConnection1
       
   819 		CREATE_OBJECT	DataVerify		dataVerify1
       
   820 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   821 		CREATE_OBJECT	RTelServer		telServer1
       
   822 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   823 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   824 		COMMAND		telServer1		Connect
       
   825 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command02
       
   826 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command03
       
   827 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0008-0001-SetSystemNetworkMode_command04
       
   828 		OUTSTANDING
       
   829 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   830 		OUTSTANDING
       
   831 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0008-0001-ModeCheck_command06
       
   832 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command07
       
   833 		COMMAND		rSocketServ1		Connect
       
   834 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command09
       
   835 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0008-0001-SelectOutgoingIAP_command10
       
   836 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0008-0001-Start_command11
       
   837 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command12
       
   838 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0008-0001-GetByName_command13
       
   839 		OUTSTANDING
       
   840 		COMMAND		rHostResolver1		Close
       
   841 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0008-0001-Open_command15
       
   842 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0008-0001-Connect_command16
       
   843 		OUTSTANDING
       
   844 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0008-0001-WriteRequest_command17
       
   845 		OUTSTANDING
       
   846 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0008-0001-StartFile_command18
       
   847 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0008-0001-StartDealer_command19
       
   848 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0008-0001-CheckHSDPA_command20
       
   849 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0008-0001-RecvOneOrMore_command21
       
   850 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0008-0001-EndFile_command22
       
   851 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0008-0001-CalcDnloadStats_command23
       
   852 		COMMAND		rSocket1		ShutDown
       
   853 		OUTSTANDING
       
   854 		COMMAND		rSocket1		Close
       
   855 		COMMAND		rConnection1		Stop
       
   856 		COMMAND		rConnection1		Close
       
   857 		COMMAND		mobileLine1		Close
       
   858 		COMMAND		rSocketServ1		Close
       
   859 		COMMAND		mmCustomAPI1		Close
       
   860 		COMMAND		rMobilePhone1		Close
       
   861 		COMMAND		telServer1		Close
       
   862 	END_TEST_BLOCK
       
   863 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0008
       
   864 
       
   865 
       
   866 
       
   867 
       
   868 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0009
       
   869 
       
   870 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0009
       
   871 //!@SYMAPI
       
   872 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   873 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   874 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   875 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   876 //!@SYMAuthor			ddamian
       
   877 //!@SYMCreationDate		9/5/2008 
       
   878 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB Analogue auto-detect) access point in WCDMA mode and download a file using HTTP protocol. File will be saved in SysDrive.
       
   879 //!@SYMTestActions
       
   880 //!                1.- OpenTelServer
       
   881 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   882 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   883 //!                4.- ModeChange (ChangeMode = WCDMA)
       
   884 //!                5.- GetCurrentSystemNetworkModes
       
   885 //!                6.- ModeCheck (CheckMode = WCDMA)
       
   886 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   887 //!                8.- ConnectSocketServ
       
   888 //!                9.- OpenRConnection (IAP = IAPHSCSDANALOGUE; RSocketServ = rSocketServ1)
       
   889 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDANALOGUE)
       
   890 //!                11.- StartRConnection (Retries = 1)
       
   891 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   892 //!                13.- GetByName (Address = {URL,address2})
       
   893 //!                14.- CloseHostResolver
       
   894 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   895 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
   896 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
   897 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0088.bin)
       
   898 //!                19.- StartDealer (DataDealer = 0)
       
   899 //!                20.- CheckHSDPA (HSDPA =  )
       
   900 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0088.bin; DataDealer = 0; Duration = -1)
       
   901 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0088.bin)
       
   902 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
   903 //!                24.- RSocketShutDown
       
   904 //!                25.- RSocketClose
       
   905 //!                26.- StopRConnection
       
   906 //!                27.- CloseRConnection
       
   907 //!                28.- CloseLine
       
   908 //!                29.- CloseSocketServ
       
   909 //!                30.- CloseCustomApi
       
   910 //!                31.- ClosePhone
       
   911 //!                32.- CloseTelServer
       
   912 //!@SYMTestStatus		Implemented
       
   913 //!@SYMTestPriority		high
       
   914 //!@SYMTestExpectedResults
       
   915 //!                Connect to a HSCSD (128kB Analogue auto-detect) access point in WCDMA mode and download a file using HTTP protocol  with no error. File will be saved in SysDrive.
       
   916 //!@SYMTestType			CIT
       
   917 
       
   918 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
   919 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   920 		CREATE_OBJECT	RSocket		rSocket1
       
   921 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   922 		CREATE_OBJECT	RConnection		rConnection1
       
   923 		CREATE_OBJECT	DataVerify		dataVerify1
       
   924 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   925 		CREATE_OBJECT	RTelServer		telServer1
       
   926 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   927 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   928 		COMMAND		telServer1		Connect
       
   929 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command02
       
   930 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command03
       
   931 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0009-0001-SetSystemNetworkMode_command04
       
   932 		OUTSTANDING
       
   933 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   934 		OUTSTANDING
       
   935 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0009-0001-ModeCheck_command06
       
   936 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command07
       
   937 		COMMAND		rSocketServ1		Connect
       
   938 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command09
       
   939 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0009-0001-SelectOutgoingIAP_command10
       
   940 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0009-0001-Start_command11
       
   941 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command12
       
   942 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0009-0001-GetByName_command13
       
   943 		OUTSTANDING
       
   944 		COMMAND		rHostResolver1		Close
       
   945 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0009-0001-Open_command15
       
   946 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0009-0001-Connect_command16
       
   947 		OUTSTANDING
       
   948 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0009-0001-WriteRequest_command17
       
   949 		OUTSTANDING
       
   950 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0009-0001-StartFile_command18
       
   951 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0009-0001-StartDealer_command19
       
   952 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0009-0001-CheckHSDPA_command20
       
   953 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0009-0001-RecvOneOrMore_command21
       
   954 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0009-0001-EndFile_command22
       
   955 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0009-0001-CalcDnloadStats_command23
       
   956 		COMMAND		rSocket1		ShutDown
       
   957 		OUTSTANDING
       
   958 		COMMAND		rSocket1		Close
       
   959 		COMMAND		rConnection1		Stop
       
   960 		COMMAND		rConnection1		Close
       
   961 		COMMAND		mobileLine1		Close
       
   962 		COMMAND		rSocketServ1		Close
       
   963 		COMMAND		mmCustomAPI1		Close
       
   964 		COMMAND		rMobilePhone1		Close
       
   965 		COMMAND		telServer1		Close
       
   966 	END_TEST_BLOCK
       
   967 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0009
       
   968 
       
   969 
       
   970 
       
   971 
       
   972 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0010
       
   973 
       
   974 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0010
       
   975 //!@SYMAPI
       
   976 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   977 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   978 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   979 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
   980 //!@SYMAuthor			ddamian
       
   981 //!@SYMCreationDate		9/5/2008 
       
   982 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB ISDN v.110 28800) access point in WCDMA mode and download file using HTTP protocol. File will be saved in SysDrive.
       
   983 //!@SYMTestActions
       
   984 //!                1.- OpenTelServer
       
   985 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   986 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   987 //!                4.- ModeChange (ChangeMode = WCDMA)
       
   988 //!                5.- GetCurrentSystemNetworkModes
       
   989 //!                6.- ModeCheck (CheckMode = WCDMA)
       
   990 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   991 //!                8.- ConnectSocketServ
       
   992 //!                9.- OpenRConnection (IAP = IAPHSCSDISDNV110; RSocketServ = rSocketServ1)
       
   993 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDISDNV110)
       
   994 //!                11.- StartRConnection (Retries = 1)
       
   995 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   996 //!                13.- GetByName (Address = {URL,address2})
       
   997 //!                14.- CloseHostResolver
       
   998 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   999 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
  1000 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1001 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0089.bin)
       
  1002 //!                19.- StartDealer (DataDealer = 0)
       
  1003 //!                20.- CheckHSDPA (HSDPA =  )
       
  1004 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0089.bin; DataDealer = 0; Duration = -1)
       
  1005 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0089.bin)
       
  1006 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1007 //!                24.- RSocketShutDown
       
  1008 //!                25.- RSocketClose
       
  1009 //!                26.- StopRConnection
       
  1010 //!                27.- CloseRConnection
       
  1011 //!                28.- CloseLine
       
  1012 //!                29.- CloseSocketServ
       
  1013 //!                30.- CloseCustomApi
       
  1014 //!                31.- ClosePhone
       
  1015 //!                32.- CloseTelServer
       
  1016 //!@SYMTestStatus		Implemented
       
  1017 //!@SYMTestPriority		high
       
  1018 //!@SYMTestExpectedResults
       
  1019 //!                Connect to a HSCSD (128kB ISDN v.110 28800) access point in WCDMA mode and download file using HTTP protocol with no error. File will be saved in SysDrive.
       
  1020 //!@SYMTestType			CIT
       
  1021 
       
  1022 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1023 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1024 		CREATE_OBJECT	RSocket		rSocket1
       
  1025 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1026 		CREATE_OBJECT	RConnection		rConnection1
       
  1027 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1028 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1029 		CREATE_OBJECT	RTelServer		telServer1
       
  1030 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1031 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1032 		COMMAND		telServer1		Connect
       
  1033 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command02
       
  1034 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command03
       
  1035 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0010-0001-SetSystemNetworkMode_command04
       
  1036 		OUTSTANDING
       
  1037 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1038 		OUTSTANDING
       
  1039 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0010-0001-ModeCheck_command06
       
  1040 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command07
       
  1041 		COMMAND		rSocketServ1		Connect
       
  1042 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command09
       
  1043 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0010-0001-SelectOutgoingIAP_command10
       
  1044 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0010-0001-Start_command11
       
  1045 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command12
       
  1046 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0010-0001-GetByName_command13
       
  1047 		OUTSTANDING
       
  1048 		COMMAND		rHostResolver1		Close
       
  1049 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0010-0001-Open_command15
       
  1050 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0010-0001-Connect_command16
       
  1051 		OUTSTANDING
       
  1052 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0010-0001-WriteRequest_command17
       
  1053 		OUTSTANDING
       
  1054 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0010-0001-StartFile_command18
       
  1055 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0010-0001-StartDealer_command19
       
  1056 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0010-0001-CheckHSDPA_command20
       
  1057 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0010-0001-RecvOneOrMore_command21
       
  1058 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0010-0001-EndFile_command22
       
  1059 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0010-0001-CalcDnloadStats_command23
       
  1060 		COMMAND		rSocket1		ShutDown
       
  1061 		OUTSTANDING
       
  1062 		COMMAND		rSocket1		Close
       
  1063 		COMMAND		rConnection1		Stop
       
  1064 		COMMAND		rConnection1		Close
       
  1065 		COMMAND		mobileLine1		Close
       
  1066 		COMMAND		rSocketServ1		Close
       
  1067 		COMMAND		mmCustomAPI1		Close
       
  1068 		COMMAND		rMobilePhone1		Close
       
  1069 		COMMAND		telServer1		Close
       
  1070 	END_TEST_BLOCK
       
  1071 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0010
       
  1072 
       
  1073 
       
  1074 
       
  1075 
       
  1076 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0011
       
  1077 
       
  1078 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0011
       
  1079 //!@SYMAPI
       
  1080 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1081 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1082 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1083 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1084 //!@SYMAuthor			ddamian
       
  1085 //!@SYMCreationDate		9/5/2008 
       
  1086 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB ISDN v.120 43200) access point in WCDMA mode and download file using HTTP protocol.  File will be saved in SysDrive.
       
  1087 //!@SYMTestActions
       
  1088 //!                1.- OpenTelServer
       
  1089 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1090 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1091 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  1092 //!                5.- GetCurrentSystemNetworkModes
       
  1093 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  1094 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1095 //!                8.- ConnectSocketServ
       
  1096 //!                9.- OpenRConnection (IAP = IAPHSCSDISDNV120; RSocketServ = rSocketServ1)
       
  1097 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDISDNV120)
       
  1098 //!                11.- StartRConnection (Retries = 1)
       
  1099 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1100 //!                13.- GetByName (Address = {URL,address2})
       
  1101 //!                14.- CloseHostResolver
       
  1102 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1103 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
  1104 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1105 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0090.bin)
       
  1106 //!                19.- StartDealer (DataDealer = 0)
       
  1107 //!                20.- CheckHSDPA (HSDPA =  )
       
  1108 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0090.bin; DataDealer = 0; Duration = -1)
       
  1109 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0090.bin)
       
  1110 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1111 //!                24.- RSocketShutDown
       
  1112 //!                25.- RSocketClose
       
  1113 //!                26.- StopRConnection
       
  1114 //!                27.- CloseRConnection
       
  1115 //!                28.- CloseLine
       
  1116 //!                29.- CloseSocketServ
       
  1117 //!                30.- CloseCustomApi
       
  1118 //!                31.- ClosePhone
       
  1119 //!                32.- CloseTelServer
       
  1120 //!@SYMTestStatus		Implemented
       
  1121 //!@SYMTestPriority		high
       
  1122 //!@SYMTestExpectedResults
       
  1123 //!                Connect to a HSCSD (128kB ISDN v.120 43200) access point in WCDMA mode and download file using HTTP protocol with no error.  File will be saved in SysDrive.
       
  1124 //!@SYMTestType			CIT
       
  1125 
       
  1126 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1127 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1128 		CREATE_OBJECT	RSocket		rSocket1
       
  1129 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1130 		CREATE_OBJECT	RConnection		rConnection1
       
  1131 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1132 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1133 		CREATE_OBJECT	RTelServer		telServer1
       
  1134 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1135 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1136 		COMMAND		telServer1		Connect
       
  1137 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command02
       
  1138 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command03
       
  1139 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0011-0001-SetSystemNetworkMode_command04
       
  1140 		OUTSTANDING
       
  1141 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1142 		OUTSTANDING
       
  1143 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0011-0001-ModeCheck_command06
       
  1144 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command07
       
  1145 		COMMAND		rSocketServ1		Connect
       
  1146 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command09
       
  1147 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0011-0001-SelectOutgoingIAP_command10
       
  1148 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0011-0001-Start_command11
       
  1149 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command12
       
  1150 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0011-0001-GetByName_command13
       
  1151 		OUTSTANDING
       
  1152 		COMMAND		rHostResolver1		Close
       
  1153 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0011-0001-Open_command15
       
  1154 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0011-0001-Connect_command16
       
  1155 		OUTSTANDING
       
  1156 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0011-0001-WriteRequest_command17
       
  1157 		OUTSTANDING
       
  1158 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0011-0001-StartFile_command18
       
  1159 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0011-0001-StartDealer_command19
       
  1160 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0011-0001-CheckHSDPA_command20
       
  1161 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0011-0001-RecvOneOrMore_command21
       
  1162 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0011-0001-EndFile_command22
       
  1163 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0011-0001-CalcDnloadStats_command23
       
  1164 		COMMAND		rSocket1		ShutDown
       
  1165 		OUTSTANDING
       
  1166 		COMMAND		rSocket1		Close
       
  1167 		COMMAND		rConnection1		Stop
       
  1168 		COMMAND		rConnection1		Close
       
  1169 		COMMAND		mobileLine1		Close
       
  1170 		COMMAND		rSocketServ1		Close
       
  1171 		COMMAND		mmCustomAPI1		Close
       
  1172 		COMMAND		rMobilePhone1		Close
       
  1173 		COMMAND		telServer1		Close
       
  1174 	END_TEST_BLOCK
       
  1175 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0011
       
  1176 
       
  1177 
       
  1178 
       
  1179 
       
  1180 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0012
       
  1181 
       
  1182 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0012
       
  1183 //!@SYMAPI
       
  1184 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1185 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1186 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1187 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1188 //!@SYMAuthor			ddamian
       
  1189 //!@SYMCreationDate		9/5/2008 
       
  1190 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB Analogue auto-detect) access point in Dual mode and download file using HTTP protocol. File will be saved in SysDrive.
       
  1191 //!@SYMTestActions
       
  1192 //!                1.- OpenTelServer
       
  1193 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1194 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1195 //!                4.- ModeChange (ChangeMode = Dual)
       
  1196 //!                5.- GetCurrentSystemNetworkModes
       
  1197 //!                6.- ModeCheck (CheckMode = Dual)
       
  1198 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1199 //!                8.- ConnectSocketServ
       
  1200 //!                9.- OpenRConnection (IAP = IAPHSCSDANALOGUE; RSocketServ = rSocketServ1)
       
  1201 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDANALOGUE)
       
  1202 //!                11.- StartRConnection (Retries = 1)
       
  1203 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1204 //!                13.- GetByName (Address = {URL,address2})
       
  1205 //!                14.- CloseHostResolver
       
  1206 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1207 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
  1208 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1209 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0091.bin)
       
  1210 //!                19.- StartDealer (DataDealer = 0)
       
  1211 //!                20.- CheckHSDPA (HSDPA =  )
       
  1212 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0091.bin; DataDealer = 0; Duration = -1)
       
  1213 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0091.bin)
       
  1214 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1215 //!                24.- RSocketShutDown
       
  1216 //!                25.- RSocketClose
       
  1217 //!                26.- StopRConnection
       
  1218 //!                27.- CloseRConnection
       
  1219 //!                28.- CloseLine
       
  1220 //!                29.- CloseSocketServ
       
  1221 //!                30.- CloseCustomApi
       
  1222 //!                31.- ClosePhone
       
  1223 //!                32.- CloseTelServer
       
  1224 //!@SYMTestStatus		Verified
       
  1225 //!@SYMTestPriority		high
       
  1226 //!@SYMTestExpectedResults
       
  1227 //!                Connect to a HSCSD (128kB Analogue auto-detect) access point in Dual mode and download file using HTTP protocol with no error. File will be saved in SysDrive.
       
  1228 //!@SYMTestType			CIT
       
  1229 
       
  1230 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1231 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1232 		CREATE_OBJECT	RSocket		rSocket1
       
  1233 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1234 		CREATE_OBJECT	RConnection		rConnection1
       
  1235 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1236 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1237 		CREATE_OBJECT	RTelServer		telServer1
       
  1238 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1239 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1240 		COMMAND		telServer1		Connect
       
  1241 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command02
       
  1242 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command03
       
  1243 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0012-0001-SetSystemNetworkMode_command04
       
  1244 		OUTSTANDING
       
  1245 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1246 		OUTSTANDING
       
  1247 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0012-0001-ModeCheck_command06
       
  1248 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command07
       
  1249 		COMMAND		rSocketServ1		Connect
       
  1250 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command09
       
  1251 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0012-0001-SelectOutgoingIAP_command10
       
  1252 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0012-0001-Start_command11
       
  1253 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command12
       
  1254 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0012-0001-GetByName_command13
       
  1255 		OUTSTANDING
       
  1256 		COMMAND		rHostResolver1		Close
       
  1257 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0012-0001-Open_command15
       
  1258 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0012-0001-Connect_command16
       
  1259 		OUTSTANDING
       
  1260 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0012-0001-WriteRequest_command17
       
  1261 		OUTSTANDING
       
  1262 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0012-0001-StartFile_command18
       
  1263 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0012-0001-StartDealer_command19
       
  1264 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0012-0001-CheckHSDPA_command20
       
  1265 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0012-0001-RecvOneOrMore_command21
       
  1266 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0012-0001-EndFile_command22
       
  1267 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0012-0001-CalcDnloadStats_command23
       
  1268 		COMMAND		rSocket1		ShutDown
       
  1269 		OUTSTANDING
       
  1270 		COMMAND		rSocket1		Close
       
  1271 		COMMAND		rConnection1		Stop
       
  1272 		COMMAND		rConnection1		Close
       
  1273 		COMMAND		mobileLine1		Close
       
  1274 		COMMAND		rSocketServ1		Close
       
  1275 		COMMAND		mmCustomAPI1		Close
       
  1276 		COMMAND		rMobilePhone1		Close
       
  1277 		COMMAND		telServer1		Close
       
  1278 	END_TEST_BLOCK
       
  1279 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0012
       
  1280 
       
  1281 
       
  1282 
       
  1283 
       
  1284 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0013
       
  1285 
       
  1286 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0013
       
  1287 //!@SYMAPI
       
  1288 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1289 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1290 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1291 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1292 //!@SYMAuthor			ddamian
       
  1293 //!@SYMCreationDate		9/5/2008 
       
  1294 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB ISDN v.110 28800) access point in Dual mode and download a file with no errors download file using HTTP protocol. File will be saved in SysDrive.
       
  1295 //!@SYMTestActions
       
  1296 //!                1.- OpenTelServer
       
  1297 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1298 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1299 //!                4.- ModeChange (ChangeMode = Dual)
       
  1300 //!                5.- GetCurrentSystemNetworkModes
       
  1301 //!                6.- ModeCheck (CheckMode = Dual)
       
  1302 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1303 //!                8.- ConnectSocketServ
       
  1304 //!                9.- OpenRConnection (IAP = IAPHSCSDISDNV110; RSocketServ = rSocketServ1)
       
  1305 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDISDNV110)
       
  1306 //!                11.- StartRConnection (Retries = 1)
       
  1307 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1308 //!                13.- GetByName (Address = {URL,address2})
       
  1309 //!                14.- CloseHostResolver
       
  1310 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1311 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
  1312 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1313 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0092.bin)
       
  1314 //!                19.- StartDealer (DataDealer = 0)
       
  1315 //!                20.- CheckHSDPA (HSDPA =  )
       
  1316 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0092.bin; DataDealer = 0; Duration = -1)
       
  1317 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0092.bin)
       
  1318 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1319 //!                24.- RSocketShutDown
       
  1320 //!                25.- RSocketClose
       
  1321 //!                26.- StopRConnection
       
  1322 //!                27.- CloseRConnection
       
  1323 //!                28.- CloseLine
       
  1324 //!                29.- CloseSocketServ
       
  1325 //!                30.- CloseCustomApi
       
  1326 //!                31.- ClosePhone
       
  1327 //!                32.- CloseTelServer
       
  1328 //!@SYMTestStatus		Verified
       
  1329 //!@SYMTestPriority		high
       
  1330 //!@SYMTestExpectedResults
       
  1331 //!                Connect to a HSCSD (128kB ISDN v.110 28800) access point in Dual mode and download a file with no errors download file using HTTP protocol with no error. File will be saved in SysDrive.
       
  1332 //!@SYMTestType			CIT
       
  1333 
       
  1334 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1335 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1336 		CREATE_OBJECT	RSocket		rSocket1
       
  1337 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1338 		CREATE_OBJECT	RConnection		rConnection1
       
  1339 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1340 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1341 		CREATE_OBJECT	RTelServer		telServer1
       
  1342 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1343 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1344 		COMMAND		telServer1		Connect
       
  1345 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command02
       
  1346 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command03
       
  1347 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0013-0001-SetSystemNetworkMode_command04
       
  1348 		OUTSTANDING
       
  1349 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1350 		OUTSTANDING
       
  1351 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0013-0001-ModeCheck_command06
       
  1352 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command07
       
  1353 		COMMAND		rSocketServ1		Connect
       
  1354 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command09
       
  1355 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0013-0001-SelectOutgoingIAP_command10
       
  1356 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0013-0001-Start_command11
       
  1357 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command12
       
  1358 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0013-0001-GetByName_command13
       
  1359 		OUTSTANDING
       
  1360 		COMMAND		rHostResolver1		Close
       
  1361 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0013-0001-Open_command15
       
  1362 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0013-0001-Connect_command16
       
  1363 		OUTSTANDING
       
  1364 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0013-0001-WriteRequest_command17
       
  1365 		OUTSTANDING
       
  1366 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0013-0001-StartFile_command18
       
  1367 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0013-0001-StartDealer_command19
       
  1368 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0013-0001-CheckHSDPA_command20
       
  1369 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0013-0001-RecvOneOrMore_command21
       
  1370 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0013-0001-EndFile_command22
       
  1371 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0013-0001-CalcDnloadStats_command23
       
  1372 		COMMAND		rSocket1		ShutDown
       
  1373 		OUTSTANDING
       
  1374 		COMMAND		rSocket1		Close
       
  1375 		COMMAND		rConnection1		Stop
       
  1376 		COMMAND		rConnection1		Close
       
  1377 		COMMAND		mobileLine1		Close
       
  1378 		COMMAND		rSocketServ1		Close
       
  1379 		COMMAND		mmCustomAPI1		Close
       
  1380 		COMMAND		rMobilePhone1		Close
       
  1381 		COMMAND		telServer1		Close
       
  1382 	END_TEST_BLOCK
       
  1383 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0013
       
  1384 
       
  1385 
       
  1386 
       
  1387 
       
  1388 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0014
       
  1389 
       
  1390 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0014
       
  1391 //!@SYMAPI
       
  1392 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1393 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1394 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1395 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1396 //!@SYMAuthor			ddamian
       
  1397 //!@SYMCreationDate		9/5/2008 
       
  1398 //!@SYMTestCaseDesc		Connect to a HSCSD (128kB ISDN v.120 43200) access point in Dual mode and download file using HTTP protocol. File will be saved in SysDrive.
       
  1399 //!@SYMTestActions
       
  1400 //!                1.- OpenTelServer
       
  1401 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1402 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1403 //!                4.- ModeChange (ChangeMode = Dual)
       
  1404 //!                5.- GetCurrentSystemNetworkModes
       
  1405 //!                6.- ModeCheck (CheckMode = Dual)
       
  1406 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1407 //!                8.- ConnectSocketServ
       
  1408 //!                9.- OpenRConnection (IAP = IAPHSCSDISDNV120; RSocketServ = rSocketServ1)
       
  1409 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSDISDNV120)
       
  1410 //!                11.- StartRConnection (Retries = 1)
       
  1411 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1412 //!                13.- GetByName (Address = {URL,address2})
       
  1413 //!                14.- CloseHostResolver
       
  1414 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1415 //!                16.- RSocketConnect (Port = 80; Address = {URL,address2}; RHostResolver = rHostResolver1)
       
  1416 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1417 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0093.bin)
       
  1418 //!                19.- StartDealer (DataDealer = 0)
       
  1419 //!                20.- CheckHSDPA (HSDPA =  )
       
  1420 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0093.bin; DataDealer = 0; Duration = -1)
       
  1421 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0093.bin)
       
  1422 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1423 //!                24.- RSocketShutDown
       
  1424 //!                25.- RSocketClose
       
  1425 //!                26.- StopRConnection
       
  1426 //!                27.- CloseRConnection
       
  1427 //!                28.- CloseLine
       
  1428 //!                29.- CloseSocketServ
       
  1429 //!                30.- CloseCustomApi
       
  1430 //!                31.- ClosePhone
       
  1431 //!                32.- CloseTelServer
       
  1432 //!@SYMTestStatus		Verified
       
  1433 //!@SYMTestPriority		high
       
  1434 //!@SYMTestExpectedResults
       
  1435 //!                Connect to a HSCSD (128kB ISDN v.120 43200) access point in Dual mode and download file using HTTP protocol with no error. File will be saved in SysDrive.
       
  1436 //!@SYMTestType			CIT
       
  1437 
       
  1438 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1439 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1440 		CREATE_OBJECT	RSocket		rSocket1
       
  1441 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1442 		CREATE_OBJECT	RConnection		rConnection1
       
  1443 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1444 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1445 		CREATE_OBJECT	RTelServer		telServer1
       
  1446 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1447 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1448 		COMMAND		telServer1		Connect
       
  1449 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command02
       
  1450 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command03
       
  1451 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0014-0001-SetSystemNetworkMode_command04
       
  1452 		OUTSTANDING
       
  1453 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1454 		OUTSTANDING
       
  1455 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0014-0001-ModeCheck_command06
       
  1456 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command07
       
  1457 		COMMAND		rSocketServ1		Connect
       
  1458 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command09
       
  1459 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0014-0001-SelectOutgoingIAP_command10
       
  1460 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0014-0001-Start_command11
       
  1461 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command12
       
  1462 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0014-0001-GetByName_command13
       
  1463 		OUTSTANDING
       
  1464 		COMMAND		rHostResolver1		Close
       
  1465 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0014-0001-Open_command15
       
  1466 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0014-0001-Connect_command16
       
  1467 		OUTSTANDING
       
  1468 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0014-0001-WriteRequest_command17
       
  1469 		OUTSTANDING
       
  1470 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0014-0001-StartFile_command18
       
  1471 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0014-0001-StartDealer_command19
       
  1472 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0014-0001-CheckHSDPA_command20
       
  1473 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0014-0001-RecvOneOrMore_command21
       
  1474 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0014-0001-EndFile_command22
       
  1475 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0014-0001-CalcDnloadStats_command23
       
  1476 		COMMAND		rSocket1		ShutDown
       
  1477 		OUTSTANDING
       
  1478 		COMMAND		rSocket1		Close
       
  1479 		COMMAND		rConnection1		Stop
       
  1480 		COMMAND		rConnection1		Close
       
  1481 		COMMAND		mobileLine1		Close
       
  1482 		COMMAND		rSocketServ1		Close
       
  1483 		COMMAND		mmCustomAPI1		Close
       
  1484 		COMMAND		rMobilePhone1		Close
       
  1485 		COMMAND		telServer1		Close
       
  1486 	END_TEST_BLOCK
       
  1487 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0014
       
  1488 
       
  1489 
       
  1490 
       
  1491 
       
  1492 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0015
       
  1493 
       
  1494 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0015
       
  1495 //!@SYMAPI
       
  1496 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1497 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1498 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1499 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1500 //!@SYMAuthor			ddamian
       
  1501 //!@SYMCreationDate		25/4/2008
       
  1502 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  1503 //!@SYMTestActions
       
  1504 //!                1.- OpenTelServer
       
  1505 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1506 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1507 //!                4.- ModeChange (ChangeMode = GSM)
       
  1508 //!                5.- GetCurrentSystemNetworkModes
       
  1509 //!                6.- ModeCheck (CheckMode = GSM)
       
  1510 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1511 //!                8.- ConnectSocketServ
       
  1512 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  1513 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  1514 //!                11.- StartRConnection2 (Retries = 1)
       
  1515 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1516 //!                13.- GetByName (Address = {URL,address1})
       
  1517 //!                14.- CloseHostResolver 
       
  1518 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1519 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1520 //!                17.- WriteRequest (File = /dy/small/1024k.bin; Protocol = HTTP)
       
  1521 //!                18.- StartFile (Save = {DRIVES,SysDrive}\1024k-tc-0002.bin)
       
  1522 //!                19.- StartDealer (DataDealer = 0)
       
  1523 //!                20.- CheckHSDPA (HSDPA =   )
       
  1524 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\1024k-tc-0002.bin; DataDealer = 0; Duration = -1)
       
  1525 //!                22.- EndFile (Save = {DRIVES,SysDrive}\1024k-tc-0002.bin)
       
  1526 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1527 //!                24.- RSocketShutDown
       
  1528 //!                25.- RSocketClose
       
  1529 //!                26.- VerifyData (VerifyType= MD5; VerifyFile={DRIVES,SysDrive}\1024k-tc-0002.bin; Checksum=d203ba06a618da4f107c08a87ca5cea3)
       
  1530 //!                27.- StopRConnection
       
  1531 //!                28.- CloseRConnection
       
  1532 //!                29.- CloseLine
       
  1533 //!                30.- CloseSocketServ
       
  1534 //!                31.- CloseCustomApi
       
  1535 //!                32.- ClosePhone
       
  1536 //!                33.- CloseTelServer
       
  1537 //!@SYMTestStatus		Verified
       
  1538 //!@SYMTestPriority		high
       
  1539 //!@SYMTestExpectedResults
       
  1540 //!                Connect to a GPRS Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  1541 //!@SYMTestType			CIT
       
  1542 
       
  1543 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1544 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1545 		CREATE_OBJECT	RSocket		rSocket1
       
  1546 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1547 		CREATE_OBJECT	RConnection		rConnection1
       
  1548 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1549 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1550 		CREATE_OBJECT	RTelServer		telServer1
       
  1551 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1552 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1553 		COMMAND		telServer1		Connect
       
  1554 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command02
       
  1555 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command03
       
  1556 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0015-0001-SetSystemNetworkMode_command04
       
  1557 		OUTSTANDING
       
  1558 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1559 		OUTSTANDING
       
  1560 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0015-0001-ModeCheck_command06
       
  1561 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command07
       
  1562 		COMMAND		rSocketServ1		Connect
       
  1563 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command09
       
  1564 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0015-0001-SelectOutgoingIAP_command10
       
  1565 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0015-0001-Start_command11
       
  1566 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command12
       
  1567 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0015-0001-GetByName_command13
       
  1568 		OUTSTANDING
       
  1569 		COMMAND		rHostResolver1		Close
       
  1570 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0015-0001-Open_command15
       
  1571 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0015-0001-Connect_command16
       
  1572 		OUTSTANDING
       
  1573 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0015-0001-WriteRequest_command17
       
  1574 		OUTSTANDING
       
  1575 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0015-0001-StartFile_command18
       
  1576 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0015-0001-StartDealer_command19
       
  1577 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0015-0001-CheckHSDPA_command20
       
  1578 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0015-0001-RecvOneOrMore_command21
       
  1579 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0015-0001-EndFile_command22
       
  1580 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0015-0001-CalcDnloadStats_command23
       
  1581 		COMMAND		rSocket1		ShutDown
       
  1582 		OUTSTANDING
       
  1583 		COMMAND		rSocket1		Close
       
  1584 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0015-0001-VerifyData_command26
       
  1585 		COMMAND		rConnection1		Stop
       
  1586 		COMMAND		rConnection1		Close
       
  1587 		COMMAND		mobileLine1		Close
       
  1588 		COMMAND		rSocketServ1		Close
       
  1589 		COMMAND		mmCustomAPI1		Close
       
  1590 		COMMAND		rMobilePhone1		Close
       
  1591 		COMMAND		telServer1		Close
       
  1592 	END_TEST_BLOCK
       
  1593 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0015
       
  1594 
       
  1595 
       
  1596 
       
  1597 
       
  1598 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0016
       
  1599 
       
  1600 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0016
       
  1601 //!@SYMAPI
       
  1602 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1603 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1604 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1605 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1606 //!@SYMAuthor			ddamian
       
  1607 //!@SYMCreationDate		25/4/2008
       
  1608 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  1609 //!@SYMTestActions
       
  1610 //!                1.- OpenTelServer
       
  1611 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1612 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1613 //!                4.- ModeChange (ChangeMode = GSM)
       
  1614 //!                5.- GetCurrentSystemNetworkModes
       
  1615 //!                6.- ModeCheck (CheckMode = GSM)
       
  1616 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1617 //!                8.- ConnectSocketServ
       
  1618 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  1619 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  1620 //!                11.- StartRConnection2 (Retries = 1)
       
  1621 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1622 //!                13.- GetByName (Address = {URL,address1})
       
  1623 //!                14.- CloseHostResolver 
       
  1624 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1625 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1626 //!                17.- WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  1627 //!                18.- StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0003.bin)
       
  1628 //!                19.- StartDealer (DataDealer = 0)
       
  1629 //!                20.- CheckHSDPA (HSDPA =   )
       
  1630 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0003.bin; DataDealer = 0; Duration = -1)
       
  1631 //!                22.- EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0003.bin)
       
  1632 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1633 //!                24.- RSocketShutDown
       
  1634 //!                25.- RSocketClose
       
  1635 //!                26.- VerifyData (VerifyType= MD5; VerifyFile={DRIVES,SysDrive}\0128k-tc-0003.bin; Checksum=5d4779596d69ef04c6f58db95bd832de)
       
  1636 //!                27.- StopRConnection
       
  1637 //!                28.- CloseRConnection
       
  1638 //!                29.- CloseLine
       
  1639 //!                30.- CloseSocketServ
       
  1640 //!                31.- CloseCustomApi
       
  1641 //!                32.- ClosePhone
       
  1642 //!                33.- CloseTelServer
       
  1643 //!@SYMTestStatus		Verified
       
  1644 //!@SYMTestPriority		high
       
  1645 //!@SYMTestExpectedResults
       
  1646 //!                Connect to a GPRS Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  1647 //!@SYMTestType			CIT
       
  1648 
       
  1649 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1650 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1651 		CREATE_OBJECT	RSocket		rSocket1
       
  1652 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1653 		CREATE_OBJECT	RConnection		rConnection1
       
  1654 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1655 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1656 		CREATE_OBJECT	RTelServer		telServer1
       
  1657 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1658 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1659 		COMMAND		telServer1		Connect
       
  1660 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command02
       
  1661 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command03
       
  1662 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0016-0001-SetSystemNetworkMode_command04
       
  1663 		OUTSTANDING
       
  1664 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1665 		OUTSTANDING
       
  1666 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0016-0001-ModeCheck_command06
       
  1667 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command07
       
  1668 		COMMAND		rSocketServ1		Connect
       
  1669 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command09
       
  1670 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0016-0001-SelectOutgoingIAP_command10
       
  1671 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0016-0001-Start_command11
       
  1672 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command12
       
  1673 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0016-0001-GetByName_command13
       
  1674 		OUTSTANDING
       
  1675 		COMMAND		rHostResolver1		Close
       
  1676 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0016-0001-Open_command15
       
  1677 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0016-0001-Connect_command16
       
  1678 		OUTSTANDING
       
  1679 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0016-0001-WriteRequest_command17
       
  1680 		OUTSTANDING
       
  1681 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0016-0001-StartFile_command18
       
  1682 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0016-0001-StartDealer_command19
       
  1683 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0016-0001-CheckHSDPA_command20
       
  1684 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0016-0001-RecvOneOrMore_command21
       
  1685 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0016-0001-EndFile_command22
       
  1686 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0016-0001-CalcDnloadStats_command23
       
  1687 		COMMAND		rSocket1		ShutDown
       
  1688 		OUTSTANDING
       
  1689 		COMMAND		rSocket1		Close
       
  1690 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0016-0001-VerifyData_command26
       
  1691 		COMMAND		rConnection1		Stop
       
  1692 		COMMAND		rConnection1		Close
       
  1693 		COMMAND		mobileLine1		Close
       
  1694 		COMMAND		rSocketServ1		Close
       
  1695 		COMMAND		mmCustomAPI1		Close
       
  1696 		COMMAND		rMobilePhone1		Close
       
  1697 		COMMAND		telServer1		Close
       
  1698 	END_TEST_BLOCK
       
  1699 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0016
       
  1700 
       
  1701 
       
  1702 
       
  1703 
       
  1704 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0017
       
  1705 
       
  1706 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0017
       
  1707 //!@SYMAPI
       
  1708 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1709 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1710 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1711 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1712 //!@SYMAuthor			ddamian
       
  1713 //!@SYMCreationDate		25/4/2008
       
  1714 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  1715 //!@SYMTestActions
       
  1716 //!                1.- OpenTelServer
       
  1717 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1718 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1719 //!                4.- ModeChange (ChangeMode = GSM)
       
  1720 //!                5.- GetCurrentSystemNetworkModes
       
  1721 //!                6.- ModeCheck (CheckMode = GSM)
       
  1722 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1723 //!                8.- ConnectSocketServ
       
  1724 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  1725 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  1726 //!                11.- StartRConnection (Retries = 1)
       
  1727 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1728 //!                13.- GetByName (Address = {URL,address1})
       
  1729 //!                14.- CloseHostResolver
       
  1730 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1731 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1732 //!                17.-WriteRequest (File = /dy/small/0016k.bin; Protocol = HTTP)
       
  1733 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0016k-tc-0004.bin)
       
  1734 //!                19.-StartDealer (DataDealer = 0)
       
  1735 //!                20.-CheckHSDPA (HSDPA = )
       
  1736 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0016k-tc-0004.bin; DataDealer = 0; Duration = -1)
       
  1737 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0016k-tc-0004.bin)
       
  1738 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1739 //!                24.-RSocketShutDown
       
  1740 //!                25.-RSocketClose
       
  1741 //!                26.-VerifyData (VerifyType= MD5; VerifyFile={DRIVES,SysDrive}\0016k-tc-0004.bin; Checksum=90cc7edd8fecf4ba6375f5c25cb0a21b)
       
  1742 //!                27.-StopRConnection
       
  1743 //!                28.-CloseRConnection
       
  1744 //!                29.-CloseSocketServ
       
  1745 //!                30.-CloseLine
       
  1746 //!                31.- CloseCustomApi
       
  1747 //!                32.- ClosePhone
       
  1748 //!                33.- CloseTelServer
       
  1749 //!@SYMTestStatus		Verified
       
  1750 //!@SYMTestPriority		high
       
  1751 //!@SYMTestExpectedResults
       
  1752 //!                Connect to a GPRS Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  1753 //!@SYMTestType			CIT
       
  1754 
       
  1755 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1756 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1757 		CREATE_OBJECT	RSocket		rSocket1
       
  1758 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1759 		CREATE_OBJECT	RConnection		rConnection1
       
  1760 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1761 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1762 		CREATE_OBJECT	RTelServer		telServer1
       
  1763 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1764 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1765 		COMMAND		telServer1		Connect
       
  1766 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command02
       
  1767 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command03
       
  1768 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0017-0001-SetSystemNetworkMode_command04
       
  1769 		OUTSTANDING
       
  1770 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1771 		OUTSTANDING
       
  1772 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0017-0001-ModeCheck_command06
       
  1773 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command07
       
  1774 		COMMAND		rSocketServ1		Connect
       
  1775 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command09
       
  1776 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0017-0001-SelectOutgoingIAP_command10
       
  1777 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0017-0001-Start_command11
       
  1778 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command12
       
  1779 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0017-0001-GetByName_command13
       
  1780 		OUTSTANDING
       
  1781 		COMMAND		rHostResolver1		Close
       
  1782 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0017-0001-Open_command15
       
  1783 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0017-0001-Connect_command16
       
  1784 		OUTSTANDING
       
  1785 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0017-0001-WriteRequest_command17
       
  1786 		OUTSTANDING
       
  1787 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0017-0001-StartFile_command18
       
  1788 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0017-0001-StartDealer_command19
       
  1789 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0017-0001-CheckHSDPA_command20
       
  1790 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0017-0001-RecvOneOrMore_command21
       
  1791 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0017-0001-EndFile_command22
       
  1792 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0017-0001-CalcDnloadStats_command23
       
  1793 		COMMAND		rSocket1		ShutDown
       
  1794 		OUTSTANDING
       
  1795 		COMMAND		rSocket1		Close
       
  1796 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0017-0001-VerifyData_command26
       
  1797 		COMMAND		rConnection1		Stop
       
  1798 		COMMAND		rConnection1		Close
       
  1799 		COMMAND		mobileLine1		Close
       
  1800 		COMMAND		rSocketServ1		Close
       
  1801 		COMMAND		mmCustomAPI1		Close
       
  1802 		COMMAND		rMobilePhone1		Close
       
  1803 		COMMAND		telServer1		Close
       
  1804 	END_TEST_BLOCK
       
  1805 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0017
       
  1806 
       
  1807 
       
  1808 
       
  1809 
       
  1810 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0018
       
  1811 
       
  1812 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0018
       
  1813 //!@SYMAPI
       
  1814 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1815 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1816 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1817 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1818 //!@SYMAuthor			ddamian
       
  1819 //!@SYMCreationDate		25/4/2008
       
  1820 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  1821 //!@SYMTestActions
       
  1822 //!                1.- OpenTelServer
       
  1823 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1824 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1825 //!                4.- ModeChange (ChangeMode = GSM)
       
  1826 //!                5.- GetCurrentSystemNetworkModes
       
  1827 //!                6.- ModeCheck (CheckMode = GSM)
       
  1828 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1829 //!                8.- ConnectSocketServ
       
  1830 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  1831 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  1832 //!                11.- StartRConnection (Retries = 1)
       
  1833 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1834 //!                13.- GetByName (Address = {URL,address1})
       
  1835 //!                14.- CloseHostResolver
       
  1836 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1837 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1838 //!                17.-WriteRequest (File = /dy/small/0001k.bin; Protocol = HTTP)
       
  1839 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0001k-tc-0005.bin)
       
  1840 //!                19.-StartDealer (DataDealer = 0)
       
  1841 //!                20.-CheckHSDPA (HSDPA = )
       
  1842 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0001k-tc-0005.bin; DataDealer = 0; Duration = -1)
       
  1843 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0001k-tc-0005.bin)
       
  1844 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1845 //!                24.-RSocketShutDown
       
  1846 //!                25.-RSocketClose
       
  1847 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0001k-tc-0005.bin; Checksum = 710ecf58249a2cf783d6ecf528e1ba1a)
       
  1848 //!                27.-StopRConnection
       
  1849 //!                28.-CloseRConnection
       
  1850 //!                29.-CloseLine
       
  1851 //!                30.-CloseSocketServ
       
  1852 //!                31.- CloseCustomApi
       
  1853 //!                32.- ClosePhone
       
  1854 //!                33.- CloseTelServer
       
  1855 //!@SYMTestStatus		Verified
       
  1856 //!@SYMTestPriority		high
       
  1857 //!@SYMTestExpectedResults
       
  1858 //!                Connect to a GPRS Access Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  1859 //!@SYMTestType			CIT
       
  1860 
       
  1861 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1862 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1863 		CREATE_OBJECT	RSocket		rSocket1
       
  1864 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1865 		CREATE_OBJECT	RConnection		rConnection1
       
  1866 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1867 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1868 		CREATE_OBJECT	RTelServer		telServer1
       
  1869 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1870 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1871 		COMMAND		telServer1		Connect
       
  1872 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command02
       
  1873 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command03
       
  1874 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0018-0001-SetSystemNetworkMode_command04
       
  1875 		OUTSTANDING
       
  1876 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1877 		OUTSTANDING
       
  1878 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0018-0001-ModeCheck_command06
       
  1879 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command07
       
  1880 		COMMAND		rSocketServ1		Connect
       
  1881 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command09
       
  1882 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0018-0001-SelectOutgoingIAP_command10
       
  1883 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0018-0001-Start_command11
       
  1884 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command12
       
  1885 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0018-0001-GetByName_command13
       
  1886 		OUTSTANDING
       
  1887 		COMMAND		rHostResolver1		Close
       
  1888 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0018-0001-Open_command15
       
  1889 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0018-0001-Connect_command16
       
  1890 		OUTSTANDING
       
  1891 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0018-0001-WriteRequest_command17
       
  1892 		OUTSTANDING
       
  1893 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0018-0001-StartFile_command18
       
  1894 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0018-0001-StartDealer_command19
       
  1895 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0018-0001-CheckHSDPA_command20
       
  1896 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0018-0001-RecvOneOrMore_command21
       
  1897 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0018-0001-EndFile_command22
       
  1898 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0018-0001-CalcDnloadStats_command23
       
  1899 		COMMAND		rSocket1		ShutDown
       
  1900 		OUTSTANDING
       
  1901 		COMMAND		rSocket1		Close
       
  1902 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0018-0001-VerifyData_command26
       
  1903 		COMMAND		rConnection1		Stop
       
  1904 		COMMAND		rConnection1		Close
       
  1905 		COMMAND		mobileLine1		Close
       
  1906 		COMMAND		rSocketServ1		Close
       
  1907 		COMMAND		mmCustomAPI1		Close
       
  1908 		COMMAND		rMobilePhone1		Close
       
  1909 		COMMAND		telServer1		Close
       
  1910 	END_TEST_BLOCK
       
  1911 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0018
       
  1912 
       
  1913 
       
  1914 
       
  1915 
       
  1916 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0019
       
  1917 
       
  1918 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0019
       
  1919 //!@SYMAPI
       
  1920 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1921 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1922 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1923 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  1924 //!@SYMAuthor			ddamian
       
  1925 //!@SYMCreationDate		25/4/2008
       
  1926 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  1927 //!@SYMTestActions
       
  1928 //!                1.- OpenTelServer
       
  1929 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1930 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1931 //!                4.- ModeChange (ChangeMode = GSM)
       
  1932 //!                5.- GetCurrentSystemNetworkModes
       
  1933 //!                6.- ModeCheck (CheckMode = GSM)
       
  1934 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1935 //!                8.- ConnectSocketServ
       
  1936 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  1937 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  1938 //!                11.- StartRConnection (Retries = 1)
       
  1939 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1940 //!                13.- GetByName (Address = {URL,address1})
       
  1941 //!                14.- CloseHostResolver
       
  1942 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1943 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1944 //!                17.-WriteRequest (File = /dy/small/1024k.bin; Protocol = HTTP)
       
  1945 //!                18.-StartFile (Save = {DRIVES,SysDrive}\1024k-tc-0015.bin)
       
  1946 //!                19.-StartDealer (DataDealer = 0)
       
  1947 //!                20.-CheckHSDPA (HSDPA = )
       
  1948 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\1024k-tc-0015.bin; DataDealer = 0; Duration = -1)
       
  1949 //!                22.-EndFile (Save = {DRIVES,SysDrive}\1024k-tc-0015.bin)
       
  1950 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  1951 //!                24.-RSocketShutDown
       
  1952 //!                25.-RSocketClose
       
  1953 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\1024k-tc-0015.bin; Checksum=d203ba06a618da4f107c08a87ca5cea3)
       
  1954 //!                27.-StopRConnection
       
  1955 //!                28.-CloseRConnection
       
  1956 //!                29.-CloseLine
       
  1957 //!                30.-CloseSocketServ
       
  1958 //!                31.- CloseCustomApi
       
  1959 //!                32.- ClosePhone
       
  1960 //!                33.- CloseTelServer
       
  1961 //!@SYMTestStatus		Verified
       
  1962 //!@SYMTestPriority		high
       
  1963 //!@SYMTestExpectedResults
       
  1964 //!                Connect to a CSD Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  1965 //!@SYMTestType			CIT
       
  1966 
       
  1967 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  1968 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1969 		CREATE_OBJECT	RSocket		rSocket1
       
  1970 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1971 		CREATE_OBJECT	RConnection		rConnection1
       
  1972 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1973 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1974 		CREATE_OBJECT	RTelServer		telServer1
       
  1975 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1976 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1977 		COMMAND		telServer1		Connect
       
  1978 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command02
       
  1979 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command03
       
  1980 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0019-0001-SetSystemNetworkMode_command04
       
  1981 		OUTSTANDING
       
  1982 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1983 		OUTSTANDING
       
  1984 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0019-0001-ModeCheck_command06
       
  1985 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command07
       
  1986 		COMMAND		rSocketServ1		Connect
       
  1987 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command09
       
  1988 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0019-0001-SelectOutgoingIAP_command10
       
  1989 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0019-0001-Start_command11
       
  1990 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command12
       
  1991 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0019-0001-GetByName_command13
       
  1992 		OUTSTANDING
       
  1993 		COMMAND		rHostResolver1		Close
       
  1994 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0019-0001-Open_command15
       
  1995 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0019-0001-Connect_command16
       
  1996 		OUTSTANDING
       
  1997 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0019-0001-WriteRequest_command17
       
  1998 		OUTSTANDING
       
  1999 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0019-0001-StartFile_command18
       
  2000 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0019-0001-StartDealer_command19
       
  2001 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0019-0001-CheckHSDPA_command20
       
  2002 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0019-0001-RecvOneOrMore_command21
       
  2003 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0019-0001-EndFile_command22
       
  2004 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0019-0001-CalcDnloadStats_command23
       
  2005 		COMMAND		rSocket1		ShutDown
       
  2006 		OUTSTANDING
       
  2007 		COMMAND		rSocket1		Close
       
  2008 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0019-0001-VerifyData_command26
       
  2009 		COMMAND		rConnection1		Stop
       
  2010 		COMMAND		rConnection1		Close
       
  2011 		COMMAND		mobileLine1		Close
       
  2012 		COMMAND		rSocketServ1		Close
       
  2013 		COMMAND		mmCustomAPI1		Close
       
  2014 		COMMAND		rMobilePhone1		Close
       
  2015 		COMMAND		telServer1		Close
       
  2016 	END_TEST_BLOCK
       
  2017 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0019
       
  2018 
       
  2019 
       
  2020 
       
  2021 
       
  2022 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0020
       
  2023 
       
  2024 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0020
       
  2025 //!@SYMAPI
       
  2026 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2027 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2028 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2029 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2030 //!@SYMAuthor			ddamian
       
  2031 //!@SYMCreationDate		25/4/2008
       
  2032 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2033 //!@SYMTestActions
       
  2034 //!                1.- OpenTelServer
       
  2035 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2036 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2037 //!                4.- ModeChange (ChangeMode = GSM)
       
  2038 //!                5.- GetCurrentSystemNetworkModes
       
  2039 //!                6.- ModeCheck (CheckMode = GSM)
       
  2040 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2041 //!                8.- ConnectSocketServ
       
  2042 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2043 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2044 //!                11.- StartRConnection (Retries = 1)
       
  2045 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2046 //!                13.- GetByName (Address = {URL,address1})
       
  2047 //!                14.- CloseHostResolver
       
  2048 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2049 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2050 //!                17.-WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  2051 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0016.bin)
       
  2052 //!                19.-StartDealer (DataDealer = 0)
       
  2053 //!                20.-CheckHSDPA (HSDPA = )
       
  2054 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0016.bin; DataDealer = 0; Duration = -1)
       
  2055 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0016.bin)
       
  2056 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2057 //!                24.-RSocketShutDown
       
  2058 //!                25.-RSocketClose
       
  2059 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0128k-tc-0016.bin; Checksum=5d4779596d69ef04c6f58db95bd832de)
       
  2060 //!                27.-StopRConnection
       
  2061 //!                28.-CloseRConnection
       
  2062 //!                29.-CloseLine
       
  2063 //!                30.-CloseSocketServ
       
  2064 //!                31.- CloseCustomApi
       
  2065 //!                32.- ClosePhone
       
  2066 //!                33.- CloseTelServer
       
  2067 //!@SYMTestStatus		Verified
       
  2068 //!@SYMTestPriority		high
       
  2069 //!@SYMTestExpectedResults
       
  2070 //!                Connect to a CSD Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2071 //!@SYMTestType			CIT
       
  2072 
       
  2073 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2074 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2075 		CREATE_OBJECT	RSocket		rSocket1
       
  2076 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2077 		CREATE_OBJECT	RConnection		rConnection1
       
  2078 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2079 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2080 		CREATE_OBJECT	RTelServer		telServer1
       
  2081 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2082 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2083 		COMMAND		telServer1		Connect
       
  2084 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command02
       
  2085 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command03
       
  2086 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0020-0001-SetSystemNetworkMode_command04
       
  2087 		OUTSTANDING
       
  2088 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2089 		OUTSTANDING
       
  2090 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0020-0001-ModeCheck_command06
       
  2091 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command07
       
  2092 		COMMAND		rSocketServ1		Connect
       
  2093 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command09
       
  2094 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0020-0001-SelectOutgoingIAP_command10
       
  2095 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0020-0001-Start_command11
       
  2096 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command12
       
  2097 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0020-0001-GetByName_command13
       
  2098 		OUTSTANDING
       
  2099 		COMMAND		rHostResolver1		Close
       
  2100 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0020-0001-Open_command15
       
  2101 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0020-0001-Connect_command16
       
  2102 		OUTSTANDING
       
  2103 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0020-0001-WriteRequest_command17
       
  2104 		OUTSTANDING
       
  2105 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0020-0001-StartFile_command18
       
  2106 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0020-0001-StartDealer_command19
       
  2107 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0020-0001-CheckHSDPA_command20
       
  2108 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0020-0001-RecvOneOrMore_command21
       
  2109 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0020-0001-EndFile_command22
       
  2110 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0020-0001-CalcDnloadStats_command23
       
  2111 		COMMAND		rSocket1		ShutDown
       
  2112 		OUTSTANDING
       
  2113 		COMMAND		rSocket1		Close
       
  2114 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0020-0001-VerifyData_command26
       
  2115 		COMMAND		rConnection1		Stop
       
  2116 		COMMAND		rConnection1		Close
       
  2117 		COMMAND		mobileLine1		Close
       
  2118 		COMMAND		rSocketServ1		Close
       
  2119 		COMMAND		mmCustomAPI1		Close
       
  2120 		COMMAND		rMobilePhone1		Close
       
  2121 		COMMAND		telServer1		Close
       
  2122 	END_TEST_BLOCK
       
  2123 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0020
       
  2124 
       
  2125 
       
  2126 
       
  2127 
       
  2128 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0021
       
  2129 
       
  2130 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0021
       
  2131 //!@SYMAPI
       
  2132 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2133 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2134 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2135 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2136 //!@SYMAuthor			ddamian
       
  2137 //!@SYMCreationDate		25/4/2008
       
  2138 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2139 //!@SYMTestActions
       
  2140 //!                1.- OpenTelServer
       
  2141 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2142 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2143 //!                4.- ModeChange (ChangeMode = GSM)
       
  2144 //!                5.- GetCurrentSystemNetworkModes
       
  2145 //!                6.- ModeCheck (CheckMode = GSM)
       
  2146 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2147 //!                8.- ConnectSocketServ
       
  2148 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2149 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2150 //!                11.- StartRConnection (Retries = 1)
       
  2151 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2152 //!                13.- GetByName (Address = {URL,address1})
       
  2153 //!                14.- CloseHostResolver
       
  2154 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2155 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2156 //!                17.-WriteRequest (File = /dy/small/0016k.bin; Protocol = HTTP)
       
  2157 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0016k-tc-0017.bin)
       
  2158 //!                19.-StartDealer (DataDealer = 0)
       
  2159 //!                20.-CheckHSDPA (HSDPA = )
       
  2160 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0016k-tc-0017.bin; DataDealer = 0; Duration = -1)
       
  2161 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0016k-tc-0017.bin)
       
  2162 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2163 //!                24.-RSocketShutDown
       
  2164 //!                25.-RSocketClose
       
  2165 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0016k-tc-0017.bin; Checksum=90cc7edd8fecf4ba6375f5c25cb0a21b)
       
  2166 //!                27.-StopRConnection
       
  2167 //!                28.-CloseRConnection
       
  2168 //!                29.-CloseLine
       
  2169 //!                30.-CloseSocketServ
       
  2170 //!                31.- CloseCustomApi
       
  2171 //!                32.- ClosePhone
       
  2172 //!                33.- CloseTelServer
       
  2173 //!@SYMTestStatus		Verified
       
  2174 //!@SYMTestPriority		high
       
  2175 //!@SYMTestExpectedResults
       
  2176 //!                Connect to a CSD Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2177 //!@SYMTestType			CIT
       
  2178 
       
  2179 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2180 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2181 		CREATE_OBJECT	RSocket		rSocket1
       
  2182 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2183 		CREATE_OBJECT	RConnection		rConnection1
       
  2184 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2185 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2186 		CREATE_OBJECT	RTelServer		telServer1
       
  2187 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2188 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2189 		COMMAND		telServer1		Connect
       
  2190 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command02
       
  2191 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command03
       
  2192 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0021-0001-SetSystemNetworkMode_command04
       
  2193 		OUTSTANDING
       
  2194 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2195 		OUTSTANDING
       
  2196 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0021-0001-ModeCheck_command06
       
  2197 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command07
       
  2198 		COMMAND		rSocketServ1		Connect
       
  2199 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command09
       
  2200 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0021-0001-SelectOutgoingIAP_command10
       
  2201 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0021-0001-Start_command11
       
  2202 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command12
       
  2203 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0021-0001-GetByName_command13
       
  2204 		OUTSTANDING
       
  2205 		COMMAND		rHostResolver1		Close
       
  2206 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0021-0001-Open_command15
       
  2207 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0021-0001-Connect_command16
       
  2208 		OUTSTANDING
       
  2209 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0021-0001-WriteRequest_command17
       
  2210 		OUTSTANDING
       
  2211 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0021-0001-StartFile_command18
       
  2212 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0021-0001-StartDealer_command19
       
  2213 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0021-0001-CheckHSDPA_command20
       
  2214 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0021-0001-RecvOneOrMore_command21
       
  2215 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0021-0001-EndFile_command22
       
  2216 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0021-0001-CalcDnloadStats_command23
       
  2217 		COMMAND		rSocket1		ShutDown
       
  2218 		OUTSTANDING
       
  2219 		COMMAND		rSocket1		Close
       
  2220 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0021-0001-VerifyData_command26
       
  2221 		COMMAND		rConnection1		Stop
       
  2222 		COMMAND		rConnection1		Close
       
  2223 		COMMAND		mobileLine1		Close
       
  2224 		COMMAND		rSocketServ1		Close
       
  2225 		COMMAND		mmCustomAPI1		Close
       
  2226 		COMMAND		rMobilePhone1		Close
       
  2227 		COMMAND		telServer1		Close
       
  2228 	END_TEST_BLOCK
       
  2229 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0021
       
  2230 
       
  2231 
       
  2232 
       
  2233 
       
  2234 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0022
       
  2235 
       
  2236 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0022
       
  2237 //!@SYMAPI
       
  2238 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2239 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2240 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2241 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2242 //!@SYMAuthor			ddamian
       
  2243 //!@SYMCreationDate		25/4/2008
       
  2244 //!@SYMTestCaseDesc		Connect to a CSDAccess Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2245 //!@SYMTestActions
       
  2246 //!                1.- OpenTelServer
       
  2247 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2248 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2249 //!                4.- ModeChange (ChangeMode = GSM)
       
  2250 //!                5.- GetCurrentSystemNetworkModes
       
  2251 //!                6.- ModeCheck (CheckMode = GSM)
       
  2252 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2253 //!                8.- ConnectSocketServ
       
  2254 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2255 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2256 //!                11.- StartRConnection (Retries = 1)
       
  2257 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2258 //!                13.- GetByName (Address = {URL,address1})
       
  2259 //!                14.- CloseHostResolver
       
  2260 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2261 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2262 //!                17.-WriteRequest (File = /dy/small/0001k.bin; Protocol = HTTP)
       
  2263 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0001k-tc-0018.bin)
       
  2264 //!                19.-StartDealer (DataDealer = 0)
       
  2265 //!                20.-CheckHSDPA (HSDPA = )
       
  2266 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0001k-tc-0018.bin; DataDealer = 0; Duration = -1)
       
  2267 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0001k-tc-0018.bin)
       
  2268 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2269 //!                24.-RSocketShutDown
       
  2270 //!                25.-RSocketClose
       
  2271 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0001k-tc-0018.bin; Checksum=710ecf58249a2cf783d6ecf528e1ba1a)
       
  2272 //!                27.-StopRConnection
       
  2273 //!                28.-CloseRConnection
       
  2274 //!                29.-CloseLine
       
  2275 //!                30.-CloseSocketServ
       
  2276 //!                31.- CloseCustomApi
       
  2277 //!                32.- ClosePhone
       
  2278 //!                33.- CloseTelServer
       
  2279 //!@SYMTestStatus		Verified
       
  2280 //!@SYMTestPriority		high
       
  2281 //!@SYMTestExpectedResults
       
  2282 //!                Connect to a CSDAccess Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2283 //!@SYMTestType			CIT
       
  2284 
       
  2285 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2286 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2287 		CREATE_OBJECT	RSocket		rSocket1
       
  2288 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2289 		CREATE_OBJECT	RConnection		rConnection1
       
  2290 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2291 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2292 		CREATE_OBJECT	RTelServer		telServer1
       
  2293 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2294 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2295 		COMMAND		telServer1		Connect
       
  2296 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command02
       
  2297 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command03
       
  2298 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0022-0001-SetSystemNetworkMode_command04
       
  2299 		OUTSTANDING
       
  2300 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2301 		OUTSTANDING
       
  2302 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0022-0001-ModeCheck_command06
       
  2303 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command07
       
  2304 		COMMAND		rSocketServ1		Connect
       
  2305 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command09
       
  2306 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0022-0001-SelectOutgoingIAP_command10
       
  2307 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0022-0001-Start_command11
       
  2308 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command12
       
  2309 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0022-0001-GetByName_command13
       
  2310 		OUTSTANDING
       
  2311 		COMMAND		rHostResolver1		Close
       
  2312 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0022-0001-Open_command15
       
  2313 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0022-0001-Connect_command16
       
  2314 		OUTSTANDING
       
  2315 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0022-0001-WriteRequest_command17
       
  2316 		OUTSTANDING
       
  2317 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0022-0001-StartFile_command18
       
  2318 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0022-0001-StartDealer_command19
       
  2319 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0022-0001-CheckHSDPA_command20
       
  2320 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0022-0001-RecvOneOrMore_command21
       
  2321 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0022-0001-EndFile_command22
       
  2322 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0022-0001-CalcDnloadStats_command23
       
  2323 		COMMAND		rSocket1		ShutDown
       
  2324 		OUTSTANDING
       
  2325 		COMMAND		rSocket1		Close
       
  2326 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0022-0001-VerifyData_command26
       
  2327 		COMMAND		rConnection1		Stop
       
  2328 		COMMAND		rConnection1		Close
       
  2329 		COMMAND		mobileLine1		Close
       
  2330 		COMMAND		rSocketServ1		Close
       
  2331 		COMMAND		mmCustomAPI1		Close
       
  2332 		COMMAND		rMobilePhone1		Close
       
  2333 		COMMAND		telServer1		Close
       
  2334 	END_TEST_BLOCK
       
  2335 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0022
       
  2336 
       
  2337 
       
  2338 
       
  2339 
       
  2340 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0023
       
  2341 
       
  2342 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0023
       
  2343 //!@SYMAPI
       
  2344 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2345 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2346 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2347 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2348 //!@SYMAuthor			ddamian
       
  2349 //!@SYMCreationDate		25/4/2008
       
  2350 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2351 //!@SYMTestActions
       
  2352 //!                1.- OpenTelServer
       
  2353 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2354 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2355 //!                4.- ModeChange (ChangeMode = GSM)
       
  2356 //!                5.- GetCurrentSystemNetworkModes
       
  2357 //!                6.- ModeCheck (CheckMode = GSM)
       
  2358 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2359 //!                8.- ConnectSocketServ
       
  2360 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2361 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2362 //!                11.- StartRConnection (Retries = 1)
       
  2363 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2364 //!                13.- GetByName (Address = {URL,address1})
       
  2365 //!                14.- CloseHostResolver
       
  2366 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2367 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2368 //!                17.-WriteRequest (File = /dy/small/0256k.bin; Protocol = HTTP)
       
  2369 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0256k-tc-0019.bin)
       
  2370 //!                19.-StartDealer (DataDealer = 0)
       
  2371 //!                20.-CheckHSDPA (HSDPA = )
       
  2372 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0256k-tc-0019.bin; DataDealer = 0; Duration = -1)
       
  2373 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0256k-tc-0019.bin)
       
  2374 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2375 //!                24.-RSocketShutDown
       
  2376 //!                25.-RSocketClose
       
  2377 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0256k-tc-0019.bin; Checksum = 0048909c2fb3c2c6818806202e6654ae)
       
  2378 //!                27.-StopRConnection
       
  2379 //!                28.-CloseRConnection
       
  2380 //!                29.-CloseLine
       
  2381 //!                30.-CloseSocketServ
       
  2382 //!                31.- CloseCustomApi
       
  2383 //!                32.- ClosePhone
       
  2384 //!                33.- CloseTelServer
       
  2385 //!@SYMTestStatus		Verified
       
  2386 //!@SYMTestPriority		high
       
  2387 //!@SYMTestExpectedResults
       
  2388 //!                Connect to a CSD Access Point in GSM mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2389 //!@SYMTestType			CIT
       
  2390 
       
  2391 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2392 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2393 		CREATE_OBJECT	RSocket		rSocket1
       
  2394 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2395 		CREATE_OBJECT	RConnection		rConnection1
       
  2396 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2397 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2398 		CREATE_OBJECT	RTelServer		telServer1
       
  2399 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2400 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2401 		COMMAND		telServer1		Connect
       
  2402 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command02
       
  2403 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command03
       
  2404 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0023-0001-SetSystemNetworkMode_command04
       
  2405 		OUTSTANDING
       
  2406 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2407 		OUTSTANDING
       
  2408 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0023-0001-ModeCheck_command06
       
  2409 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command07
       
  2410 		COMMAND		rSocketServ1		Connect
       
  2411 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command09
       
  2412 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0023-0001-SelectOutgoingIAP_command10
       
  2413 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0023-0001-Start_command11
       
  2414 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command12
       
  2415 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0023-0001-GetByName_command13
       
  2416 		OUTSTANDING
       
  2417 		COMMAND		rHostResolver1		Close
       
  2418 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0023-0001-Open_command15
       
  2419 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0023-0001-Connect_command16
       
  2420 		OUTSTANDING
       
  2421 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0023-0001-WriteRequest_command17
       
  2422 		OUTSTANDING
       
  2423 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0023-0001-StartFile_command18
       
  2424 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0023-0001-StartDealer_command19
       
  2425 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0023-0001-CheckHSDPA_command20
       
  2426 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0023-0001-RecvOneOrMore_command21
       
  2427 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0023-0001-EndFile_command22
       
  2428 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0023-0001-CalcDnloadStats_command23
       
  2429 		COMMAND		rSocket1		ShutDown
       
  2430 		OUTSTANDING
       
  2431 		COMMAND		rSocket1		Close
       
  2432 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0023-0001-VerifyData_command26
       
  2433 		COMMAND		rConnection1		Stop
       
  2434 		COMMAND		rConnection1		Close
       
  2435 		COMMAND		mobileLine1		Close
       
  2436 		COMMAND		rSocketServ1		Close
       
  2437 		COMMAND		mmCustomAPI1		Close
       
  2438 		COMMAND		rMobilePhone1		Close
       
  2439 		COMMAND		telServer1		Close
       
  2440 	END_TEST_BLOCK
       
  2441 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0023
       
  2442 
       
  2443 
       
  2444 
       
  2445 
       
  2446 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0024
       
  2447 
       
  2448 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0024
       
  2449 //!@SYMAPI
       
  2450 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2451 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2452 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2453 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2454 //!@SYMAuthor			ddamian
       
  2455 //!@SYMCreationDate		25/4/2008
       
  2456 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2457 //!@SYMTestActions
       
  2458 //!                1.- OpenTelServer
       
  2459 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2460 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2461 //!                4.- ModeChange (ChangeMode = GSM)
       
  2462 //!                5.- GetCurrentSystemNetworkModes
       
  2463 //!                6.- ModeCheck (CheckMode = GSM)
       
  2464 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2465 //!                8.- ConnectSocketServ
       
  2466 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2467 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2468 //!                11.- StartRConnection (Retries = 1)
       
  2469 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2470 //!                13.- GetByName (Address = {URL,address1})
       
  2471 //!                14.- CloseHostResolver
       
  2472 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2473 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2474 //!                17.-WriteRequest (File = /dy/small/0002k.bin; Protocol = HTTP)
       
  2475 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0002k-tc-0020.bin)
       
  2476 //!                19.-StartDealer (DataDealer = 0)
       
  2477 //!                20.-CheckHSDPA (HSDPA = )
       
  2478 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0002k-tc-0020.bin; DataDealer = 0; Duration = -1)
       
  2479 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0002k-tc-0020.bin)
       
  2480 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2481 //!                24.-RSocketShutDown
       
  2482 //!                25.-RSocketClose
       
  2483 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0002k-tc-0020.bin; Checksum = 46eb89673fe25a797a7896fd62773df0)
       
  2484 //!                27.-StopRConnection
       
  2485 //!                28.-CloseRConnection
       
  2486 //!                29.-CloseLine
       
  2487 //!                30.-CloseSocketServ
       
  2488 //!                31.- CloseCustomApi
       
  2489 //!                32.- ClosePhone
       
  2490 //!                33.- CloseTelServer
       
  2491 //!@SYMTestStatus		Verified
       
  2492 //!@SYMTestPriority		high
       
  2493 //!@SYMTestExpectedResults
       
  2494 //!                Connect to a CSD Access Point in GSM mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2495 //!@SYMTestType			CIT
       
  2496 
       
  2497 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2498 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2499 		CREATE_OBJECT	RSocket		rSocket1
       
  2500 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2501 		CREATE_OBJECT	RConnection		rConnection1
       
  2502 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2503 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2504 		CREATE_OBJECT	RTelServer		telServer1
       
  2505 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2506 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2507 		COMMAND		telServer1		Connect
       
  2508 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command02
       
  2509 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command03
       
  2510 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0024-0001-SetSystemNetworkMode_command04
       
  2511 		OUTSTANDING
       
  2512 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2513 		OUTSTANDING
       
  2514 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0024-0001-ModeCheck_command06
       
  2515 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command07
       
  2516 		COMMAND		rSocketServ1		Connect
       
  2517 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command09
       
  2518 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0024-0001-SelectOutgoingIAP_command10
       
  2519 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0024-0001-Start_command11
       
  2520 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command12
       
  2521 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0024-0001-GetByName_command13
       
  2522 		OUTSTANDING
       
  2523 		COMMAND		rHostResolver1		Close
       
  2524 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0024-0001-Open_command15
       
  2525 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0024-0001-Connect_command16
       
  2526 		OUTSTANDING
       
  2527 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0024-0001-WriteRequest_command17
       
  2528 		OUTSTANDING
       
  2529 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0024-0001-StartFile_command18
       
  2530 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0024-0001-StartDealer_command19
       
  2531 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0024-0001-CheckHSDPA_command20
       
  2532 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0024-0001-RecvOneOrMore_command21
       
  2533 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0024-0001-EndFile_command22
       
  2534 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0024-0001-CalcDnloadStats_command23
       
  2535 		COMMAND		rSocket1		ShutDown
       
  2536 		OUTSTANDING
       
  2537 		COMMAND		rSocket1		Close
       
  2538 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0024-0001-VerifyData_command26
       
  2539 		COMMAND		rConnection1		Stop
       
  2540 		COMMAND		rConnection1		Close
       
  2541 		COMMAND		mobileLine1		Close
       
  2542 		COMMAND		rSocketServ1		Close
       
  2543 		COMMAND		mmCustomAPI1		Close
       
  2544 		COMMAND		rMobilePhone1		Close
       
  2545 		COMMAND		telServer1		Close
       
  2546 	END_TEST_BLOCK
       
  2547 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0024
       
  2548 
       
  2549 
       
  2550 
       
  2551 
       
  2552 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0025
       
  2553 
       
  2554 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0025
       
  2555 //!@SYMAPI
       
  2556 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2557 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2558 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2559 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2560 //!@SYMAuthor			ddamian
       
  2561 //!@SYMCreationDate		25/4/2008
       
  2562 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2563 //!@SYMTestActions
       
  2564 //!                1.- OpenTelServer
       
  2565 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2566 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2567 //!                4.- ModeChange (ChangeMode = GSM)
       
  2568 //!                5.- GetCurrentSystemNetworkModes
       
  2569 //!                6.- ModeCheck (CheckMode = GSM)
       
  2570 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2571 //!                8.- ConnectSocketServ
       
  2572 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2573 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2574 //!                11.- StartRConnection (Retries = 1)
       
  2575 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2576 //!                13.- GetByName (Address = {URL,address1})
       
  2577 //!                14.- CloseHostResolver
       
  2578 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2579 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2580 //!                17.-WriteRequest (File = /dy/small/0032k.bin; Protocol = HTTP)
       
  2581 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0032k-tc-0021.bin)
       
  2582 //!                19.-StartDealer (DataDealer = 0)
       
  2583 //!                20.-CheckHSDPA (HSDPA = )
       
  2584 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0032k-tc-0021.bin; DataDealer = 0; Duration = -1)
       
  2585 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0032k-tc-0021.bin)
       
  2586 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2587 //!                24.-RSocketShutDown
       
  2588 //!                25.-RSocketClose
       
  2589 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0032k-tc-0021.bin; Checksum = 64fbc234be040b07806ae46ee8e8bdbc)
       
  2590 //!                27.-StopRConnection
       
  2591 //!                28.-CloseRConnection
       
  2592 //!                29.-CloseLine
       
  2593 //!                30.-CloseSocketServ
       
  2594 //!                31.- CloseCustomApi
       
  2595 //!                32.- ClosePhone
       
  2596 //!                33.- CloseTelServer
       
  2597 //!@SYMTestStatus		Verified
       
  2598 //!@SYMTestPriority		high
       
  2599 //!@SYMTestExpectedResults
       
  2600 //!                Connect to a CSD Access Point in GSM mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2601 //!@SYMTestType			CIT
       
  2602 
       
  2603 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2604 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2605 		CREATE_OBJECT	RSocket		rSocket1
       
  2606 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2607 		CREATE_OBJECT	RConnection		rConnection1
       
  2608 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2609 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2610 		CREATE_OBJECT	RTelServer		telServer1
       
  2611 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2612 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2613 		COMMAND		telServer1		Connect
       
  2614 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command02
       
  2615 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command03
       
  2616 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0025-0001-SetSystemNetworkMode_command04
       
  2617 		OUTSTANDING
       
  2618 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2619 		OUTSTANDING
       
  2620 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0025-0001-ModeCheck_command06
       
  2621 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command07
       
  2622 		COMMAND		rSocketServ1		Connect
       
  2623 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command09
       
  2624 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0025-0001-SelectOutgoingIAP_command10
       
  2625 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0025-0001-Start_command11
       
  2626 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command12
       
  2627 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0025-0001-GetByName_command13
       
  2628 		OUTSTANDING
       
  2629 		COMMAND		rHostResolver1		Close
       
  2630 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0025-0001-Open_command15
       
  2631 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0025-0001-Connect_command16
       
  2632 		OUTSTANDING
       
  2633 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0025-0001-WriteRequest_command17
       
  2634 		OUTSTANDING
       
  2635 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0025-0001-StartFile_command18
       
  2636 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0025-0001-StartDealer_command19
       
  2637 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0025-0001-CheckHSDPA_command20
       
  2638 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0025-0001-RecvOneOrMore_command21
       
  2639 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0025-0001-EndFile_command22
       
  2640 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0025-0001-CalcDnloadStats_command23
       
  2641 		COMMAND		rSocket1		ShutDown
       
  2642 		OUTSTANDING
       
  2643 		COMMAND		rSocket1		Close
       
  2644 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0025-0001-VerifyData_command26
       
  2645 		COMMAND		rConnection1		Stop
       
  2646 		COMMAND		rConnection1		Close
       
  2647 		COMMAND		mobileLine1		Close
       
  2648 		COMMAND		rSocketServ1		Close
       
  2649 		COMMAND		mmCustomAPI1		Close
       
  2650 		COMMAND		rMobilePhone1		Close
       
  2651 		COMMAND		telServer1		Close
       
  2652 	END_TEST_BLOCK
       
  2653 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0025
       
  2654 
       
  2655 
       
  2656 
       
  2657 
       
  2658 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0026
       
  2659 
       
  2660 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0026
       
  2661 //!@SYMAPI
       
  2662 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2663 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2664 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2665 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2666 //!@SYMAuthor			ddamian
       
  2667 //!@SYMCreationDate		25/4/2008
       
  2668 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2669 //!@SYMTestActions
       
  2670 //!                1.- OpenTelServer
       
  2671 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2672 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2673 //!                4.- ModeChange (ChangeMode = GSM)
       
  2674 //!                5.- GetCurrentSystemNetworkModes
       
  2675 //!                6.- ModeCheck (CheckMode = GSM)
       
  2676 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2677 //!                8.- ConnectSocketServ
       
  2678 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2679 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2680 //!                11.- StartRConnection (Retries = 1)
       
  2681 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2682 //!                13.- GetByName (Address = {URL,address1})
       
  2683 //!                14.- CloseHostResolver
       
  2684 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2685 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2686 //!                17.-WriteRequest (File = /dy/big/3mb-1.txt; Protocol = HTTP)
       
  2687 //!                18.-StartFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0022.txt)
       
  2688 //!                19.-StartDealer (DataDealer = 0)
       
  2689 //!                20.-CheckHSDPA (HSDPA = )
       
  2690 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\3mb-1-tc-0022.txt; DataDealer = 0; Duration = -1)
       
  2691 //!                22.-EndFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0022.txt)
       
  2692 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2693 //!                24.-RSocketShutDown
       
  2694 //!                25.-RSocketClose
       
  2695 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\3mb-1-tc-0022.txt; Checksum = 7fae292c77026cbb5a78a7da499032c5 )
       
  2696 //!                27.-StopRConnection
       
  2697 //!                28.-CloseRConnection
       
  2698 //!                29.-CloseLine
       
  2699 //!                30.-CloseSocketServ
       
  2700 //!                31.- CloseCustomApi
       
  2701 //!                32.- ClosePhone
       
  2702 //!                33.- CloseTelServer
       
  2703 //!@SYMTestStatus		Verified
       
  2704 //!@SYMTestPriority		high
       
  2705 //!@SYMTestExpectedResults
       
  2706 //!                Connect to a CSD Access Point in GSM mode, download 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2707 //!@SYMTestType			CIT
       
  2708 
       
  2709 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2710 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2711 		CREATE_OBJECT	RSocket		rSocket1
       
  2712 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2713 		CREATE_OBJECT	RConnection		rConnection1
       
  2714 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2715 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2716 		CREATE_OBJECT	RTelServer		telServer1
       
  2717 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2718 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2719 		COMMAND		telServer1		Connect
       
  2720 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command02
       
  2721 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command03
       
  2722 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0026-0001-SetSystemNetworkMode_command04
       
  2723 		OUTSTANDING
       
  2724 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2725 		OUTSTANDING
       
  2726 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0026-0001-ModeCheck_command06
       
  2727 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command07
       
  2728 		COMMAND		rSocketServ1		Connect
       
  2729 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command09
       
  2730 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0026-0001-SelectOutgoingIAP_command10
       
  2731 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0026-0001-Start_command11
       
  2732 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command12
       
  2733 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0026-0001-GetByName_command13
       
  2734 		OUTSTANDING
       
  2735 		COMMAND		rHostResolver1		Close
       
  2736 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0026-0001-Open_command15
       
  2737 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0026-0001-Connect_command16
       
  2738 		OUTSTANDING
       
  2739 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0026-0001-WriteRequest_command17
       
  2740 		OUTSTANDING
       
  2741 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0026-0001-StartFile_command18
       
  2742 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0026-0001-StartDealer_command19
       
  2743 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0026-0001-CheckHSDPA_command20
       
  2744 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0026-0001-RecvOneOrMore_command21
       
  2745 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0026-0001-EndFile_command22
       
  2746 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0026-0001-CalcDnloadStats_command23
       
  2747 		COMMAND		rSocket1		ShutDown
       
  2748 		OUTSTANDING
       
  2749 		COMMAND		rSocket1		Close
       
  2750 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0026-0001-VerifyData_command26
       
  2751 		COMMAND		rConnection1		Stop
       
  2752 		COMMAND		rConnection1		Close
       
  2753 		COMMAND		mobileLine1		Close
       
  2754 		COMMAND		rSocketServ1		Close
       
  2755 		COMMAND		mmCustomAPI1		Close
       
  2756 		COMMAND		rMobilePhone1		Close
       
  2757 		COMMAND		telServer1		Close
       
  2758 	END_TEST_BLOCK
       
  2759 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0026
       
  2760 
       
  2761 
       
  2762 
       
  2763 
       
  2764 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0027
       
  2765 
       
  2766 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0027
       
  2767 //!@SYMAPI
       
  2768 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2769 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2770 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2771 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2772 //!@SYMAuthor			ddamian
       
  2773 //!@SYMCreationDate		25/4/2008
       
  2774 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2775 //!@SYMTestActions
       
  2776 //!                1.- OpenTelServer
       
  2777 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2778 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2779 //!                4.- ModeChange (ChangeMode = GSM)
       
  2780 //!                5.- GetCurrentSystemNetworkModes
       
  2781 //!                6.- ModeCheck (CheckMode = GSM)
       
  2782 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2783 //!                8.- ConnectSocketServ
       
  2784 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2785 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2786 //!                11.- StartRConnection (Retries = 1)
       
  2787 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2788 //!                13.- GetByName (Address = {URL,address1})
       
  2789 //!                14.- CloseHostResolver
       
  2790 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2791 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2792 //!                17.-WriteRequest (File = /dy/small/0004k.bin; Protocol = HTTP)
       
  2793 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0004k-tc-0023.bin)
       
  2794 //!                19.-StartDealer (DataDealer = 0)
       
  2795 //!                20.-CheckHSDPA (HSDPA = )
       
  2796 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0004k-tc-0023.bin; DataDealer = 0; Duration = -1)
       
  2797 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0004k-tc-0023.bin)
       
  2798 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2799 //!                24.-RSocketShutDown
       
  2800 //!                25.-RSocketClose
       
  2801 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0004k-tc-0023.bin; Checksum = bbc5e9b08e80626178ce7df5a50a1395)
       
  2802 //!                27.-StopRConnection
       
  2803 //!                28.-CloseRConnection
       
  2804 //!                29.-CloseLine
       
  2805 //!                30.-CloseSocketServ
       
  2806 //!                31.- CloseCustomApi
       
  2807 //!                32.- ClosePhone
       
  2808 //!                33.- CloseTelServer
       
  2809 //!@SYMTestStatus		Verified
       
  2810 //!@SYMTestPriority		high
       
  2811 //!@SYMTestExpectedResults
       
  2812 //!                Connect to a CSD Access Point in GSM mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2813 //!@SYMTestType			CIT
       
  2814 
       
  2815 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2816 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2817 		CREATE_OBJECT	RSocket		rSocket1
       
  2818 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2819 		CREATE_OBJECT	RConnection		rConnection1
       
  2820 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2821 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2822 		CREATE_OBJECT	RTelServer		telServer1
       
  2823 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2824 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2825 		COMMAND		telServer1		Connect
       
  2826 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command02
       
  2827 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command03
       
  2828 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0027-0001-SetSystemNetworkMode_command04
       
  2829 		OUTSTANDING
       
  2830 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2831 		OUTSTANDING
       
  2832 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0027-0001-ModeCheck_command06
       
  2833 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command07
       
  2834 		COMMAND		rSocketServ1		Connect
       
  2835 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command09
       
  2836 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0027-0001-SelectOutgoingIAP_command10
       
  2837 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0027-0001-Start_command11
       
  2838 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command12
       
  2839 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0027-0001-GetByName_command13
       
  2840 		OUTSTANDING
       
  2841 		COMMAND		rHostResolver1		Close
       
  2842 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0027-0001-Open_command15
       
  2843 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0027-0001-Connect_command16
       
  2844 		OUTSTANDING
       
  2845 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0027-0001-WriteRequest_command17
       
  2846 		OUTSTANDING
       
  2847 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0027-0001-StartFile_command18
       
  2848 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0027-0001-StartDealer_command19
       
  2849 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0027-0001-CheckHSDPA_command20
       
  2850 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0027-0001-RecvOneOrMore_command21
       
  2851 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0027-0001-EndFile_command22
       
  2852 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0027-0001-CalcDnloadStats_command23
       
  2853 		COMMAND		rSocket1		ShutDown
       
  2854 		OUTSTANDING
       
  2855 		COMMAND		rSocket1		Close
       
  2856 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0027-0001-VerifyData_command26
       
  2857 		COMMAND		rConnection1		Stop
       
  2858 		COMMAND		rConnection1		Close
       
  2859 		COMMAND		mobileLine1		Close
       
  2860 		COMMAND		rSocketServ1		Close
       
  2861 		COMMAND		mmCustomAPI1		Close
       
  2862 		COMMAND		rMobilePhone1		Close
       
  2863 		COMMAND		telServer1		Close
       
  2864 	END_TEST_BLOCK
       
  2865 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0027
       
  2866 
       
  2867 
       
  2868 
       
  2869 
       
  2870 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0028
       
  2871 
       
  2872 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0028
       
  2873 //!@SYMAPI
       
  2874 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2875 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2876 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2877 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2878 //!@SYMAuthor			ddamian
       
  2879 //!@SYMCreationDate		25/4/2008
       
  2880 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2881 //!@SYMTestActions
       
  2882 //!                1.- OpenTelServer
       
  2883 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2884 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2885 //!                4.- ModeChange (ChangeMode = GSM)
       
  2886 //!                5.- GetCurrentSystemNetworkModes
       
  2887 //!                6.- ModeCheck (CheckMode = GSM)
       
  2888 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2889 //!                8.- ConnectSocketServ
       
  2890 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2891 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2892 //!                11.- StartRConnection (Retries = 1)
       
  2893 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2894 //!                13.- GetByName (Address = {URL,address1})
       
  2895 //!                14.- CloseHostResolver
       
  2896 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2897 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2898 //!                17.-WriteRequest (File = /dy/small/0512k.bin; Protocol = HTTP)
       
  2899 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0512k-tc-0024.bin)
       
  2900 //!                19.-StartDealer (DataDealer = 0)
       
  2901 //!                20.-CheckHSDPA (HSDPA = )
       
  2902 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0512k-tc-0024.bin; DataDealer = 0; Duration = -1)
       
  2903 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0512k-tc-0024.bin)
       
  2904 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  2905 //!                24.-RSocketShutDown
       
  2906 //!                25.-RSocketClose
       
  2907 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0512k-tc-0024.bin; Checksum = e27c9e563d0e2752b813f6182934b0f4)
       
  2908 //!                27.-StopRConnection
       
  2909 //!                28.-CloseRConnection
       
  2910 //!                29.-CloseLine
       
  2911 //!                30.-CloseSocketServ
       
  2912 //!                31.- CloseCustomApi
       
  2913 //!                32.- ClosePhone
       
  2914 //!                33.- CloseTelServer
       
  2915 //!@SYMTestStatus		Verified
       
  2916 //!@SYMTestPriority		high
       
  2917 //!@SYMTestExpectedResults
       
  2918 //!                Connect to a CSD Access Point in GSM mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  2919 //!@SYMTestType			CIT
       
  2920 
       
  2921 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  2922 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2923 		CREATE_OBJECT	RSocket		rSocket1
       
  2924 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2925 		CREATE_OBJECT	RConnection		rConnection1
       
  2926 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2927 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2928 		CREATE_OBJECT	RTelServer		telServer1
       
  2929 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2930 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2931 		COMMAND		telServer1		Connect
       
  2932 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command02
       
  2933 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command03
       
  2934 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0028-0001-SetSystemNetworkMode_command04
       
  2935 		OUTSTANDING
       
  2936 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2937 		OUTSTANDING
       
  2938 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0028-0001-ModeCheck_command06
       
  2939 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command07
       
  2940 		COMMAND		rSocketServ1		Connect
       
  2941 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command09
       
  2942 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0028-0001-SelectOutgoingIAP_command10
       
  2943 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0028-0001-Start_command11
       
  2944 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command12
       
  2945 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0028-0001-GetByName_command13
       
  2946 		OUTSTANDING
       
  2947 		COMMAND		rHostResolver1		Close
       
  2948 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0028-0001-Open_command15
       
  2949 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0028-0001-Connect_command16
       
  2950 		OUTSTANDING
       
  2951 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0028-0001-WriteRequest_command17
       
  2952 		OUTSTANDING
       
  2953 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0028-0001-StartFile_command18
       
  2954 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0028-0001-StartDealer_command19
       
  2955 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0028-0001-CheckHSDPA_command20
       
  2956 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0028-0001-RecvOneOrMore_command21
       
  2957 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0028-0001-EndFile_command22
       
  2958 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0028-0001-CalcDnloadStats_command23
       
  2959 		COMMAND		rSocket1		ShutDown
       
  2960 		OUTSTANDING
       
  2961 		COMMAND		rSocket1		Close
       
  2962 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0028-0001-VerifyData_command26
       
  2963 		COMMAND		rConnection1		Stop
       
  2964 		COMMAND		rConnection1		Close
       
  2965 		COMMAND		mobileLine1		Close
       
  2966 		COMMAND		rSocketServ1		Close
       
  2967 		COMMAND		mmCustomAPI1		Close
       
  2968 		COMMAND		rMobilePhone1		Close
       
  2969 		COMMAND		telServer1		Close
       
  2970 	END_TEST_BLOCK
       
  2971 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0028
       
  2972 
       
  2973 
       
  2974 
       
  2975 
       
  2976 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0029
       
  2977 
       
  2978 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0029
       
  2979 //!@SYMAPI
       
  2980 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2981 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2982 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2983 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  2984 //!@SYMAuthor			ddamian
       
  2985 //!@SYMCreationDate		25/4/2008
       
  2986 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  2987 //!@SYMTestActions
       
  2988 //!                1.- OpenTelServer
       
  2989 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2990 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2991 //!                4.- ModeChange (ChangeMode = GSM)
       
  2992 //!                5.- GetCurrentSystemNetworkModes
       
  2993 //!                6.- ModeCheck (CheckMode = GSM)
       
  2994 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2995 //!                8.- ConnectSocketServ
       
  2996 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2997 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2998 //!                11.- StartRConnection (Retries = 1)
       
  2999 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3000 //!                13.- GetByName (Address = {URL,address1})
       
  3001 //!                14.- CloseHostResolver
       
  3002 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3003 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3004 //!                17.-WriteRequest (File = /dy/small/0064k.bin; Protocol = HTTP)
       
  3005 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0064k-tc-0025.bin)
       
  3006 //!                19.-StartDealer (DataDealer = 0)
       
  3007 //!                20.-CheckHSDPA (HSDPA = )
       
  3008 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0064k-tc-0025.bin; DataDealer = 0; Duration = -1)
       
  3009 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0064k-tc-0025.bin)
       
  3010 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3011 //!                24.-RSocketShutDown
       
  3012 //!                25.-RSocketClose
       
  3013 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0064k-tc-0025.bin; Checksum = d26a232d0279a9cb34529a9a05125f4a)
       
  3014 //!                27.-StopRConnection
       
  3015 //!                28.-CloseRConnection
       
  3016 //!                29.-CloseLine
       
  3017 //!                30.-CloseSocketServ
       
  3018 //!                31.- CloseCustomApi
       
  3019 //!                32.- ClosePhone
       
  3020 //!                33.- CloseTelServer
       
  3021 //!@SYMTestStatus		Verified
       
  3022 //!@SYMTestPriority		high
       
  3023 //!@SYMTestExpectedResults
       
  3024 //!                Connect to a CSD Access Point in GSM mode, download 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3025 //!@SYMTestType			CIT
       
  3026 
       
  3027 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3028 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3029 		CREATE_OBJECT	RSocket		rSocket1
       
  3030 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3031 		CREATE_OBJECT	RConnection		rConnection1
       
  3032 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3033 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3034 		CREATE_OBJECT	RTelServer		telServer1
       
  3035 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3036 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3037 		COMMAND		telServer1		Connect
       
  3038 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command02
       
  3039 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command03
       
  3040 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0029-0001-SetSystemNetworkMode_command04
       
  3041 		OUTSTANDING
       
  3042 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3043 		OUTSTANDING
       
  3044 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0029-0001-ModeCheck_command06
       
  3045 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command07
       
  3046 		COMMAND		rSocketServ1		Connect
       
  3047 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command09
       
  3048 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0029-0001-SelectOutgoingIAP_command10
       
  3049 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0029-0001-Start_command11
       
  3050 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command12
       
  3051 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0029-0001-GetByName_command13
       
  3052 		OUTSTANDING
       
  3053 		COMMAND		rHostResolver1		Close
       
  3054 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0029-0001-Open_command15
       
  3055 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0029-0001-Connect_command16
       
  3056 		OUTSTANDING
       
  3057 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0029-0001-WriteRequest_command17
       
  3058 		OUTSTANDING
       
  3059 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0029-0001-StartFile_command18
       
  3060 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0029-0001-StartDealer_command19
       
  3061 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0029-0001-CheckHSDPA_command20
       
  3062 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0029-0001-RecvOneOrMore_command21
       
  3063 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0029-0001-EndFile_command22
       
  3064 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0029-0001-CalcDnloadStats_command23
       
  3065 		COMMAND		rSocket1		ShutDown
       
  3066 		OUTSTANDING
       
  3067 		COMMAND		rSocket1		Close
       
  3068 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0029-0001-VerifyData_command26
       
  3069 		COMMAND		rConnection1		Stop
       
  3070 		COMMAND		rConnection1		Close
       
  3071 		COMMAND		mobileLine1		Close
       
  3072 		COMMAND		rSocketServ1		Close
       
  3073 		COMMAND		mmCustomAPI1		Close
       
  3074 		COMMAND		rMobilePhone1		Close
       
  3075 		COMMAND		telServer1		Close
       
  3076 	END_TEST_BLOCK
       
  3077 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0029
       
  3078 
       
  3079 
       
  3080 
       
  3081 
       
  3082 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0030
       
  3083 
       
  3084 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0030
       
  3085 //!@SYMAPI
       
  3086 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3087 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3088 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3089 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3090 //!@SYMAuthor			ddamian
       
  3091 //!@SYMCreationDate		25/4/2008
       
  3092 //!@SYMTestCaseDesc		Connect to a CSD Access Point in GSM mode, download 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3093 //!@SYMTestActions
       
  3094 //!                1.- OpenTelServer
       
  3095 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3096 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3097 //!                4.- ModeChange (ChangeMode = GSM)
       
  3098 //!                5.- GetCurrentSystemNetworkModes
       
  3099 //!                6.- ModeCheck (CheckMode = GSM)
       
  3100 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3101 //!                8.- ConnectSocketServ
       
  3102 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  3103 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  3104 //!                11.- StartRConnection (Retries = 1)
       
  3105 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3106 //!                13.- GetByName (Address = {URL,address1})
       
  3107 //!                14.- CloseHostResolver
       
  3108 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3109 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3110 //!                17.-WriteRequest (File = /dy/small/0008k.bin; Protocol = HTTP)
       
  3111 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0008k-tc-0026.bin)
       
  3112 //!                19.-StartDealer (DataDealer = 0)
       
  3113 //!                20.-CheckHSDPA (HSDPA = )
       
  3114 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0008k-tc-0026.bin; DataDealer = 0; Duration = -1)
       
  3115 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0008k-tc-0026.bin)
       
  3116 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3117 //!                24.-RSocketShutDown
       
  3118 //!                25.-RSocketClose
       
  3119 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0008k-tc-0026.bin; Checksum = a69a721002a248215c0e46d992583889)
       
  3120 //!                27.-StopRConnection
       
  3121 //!                28.-CloseRConnection
       
  3122 //!                29.-CloseLine
       
  3123 //!                30.-CloseSocketServ
       
  3124 //!                31.- CloseCustomApi
       
  3125 //!                32.- ClosePhone
       
  3126 //!                33.- CloseTelServer
       
  3127 //!@SYMTestStatus		Verified
       
  3128 //!@SYMTestPriority		high
       
  3129 //!@SYMTestExpectedResults
       
  3130 //!                Connect to a CSD Access Point in GSM mode, download 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3131 //!@SYMTestType			CIT
       
  3132 
       
  3133 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3134 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3135 		CREATE_OBJECT	RSocket		rSocket1
       
  3136 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3137 		CREATE_OBJECT	RConnection		rConnection1
       
  3138 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3139 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3140 		CREATE_OBJECT	RTelServer		telServer1
       
  3141 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3142 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3143 		COMMAND		telServer1		Connect
       
  3144 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command02
       
  3145 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command03
       
  3146 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0030-0001-SetSystemNetworkMode_command04
       
  3147 		OUTSTANDING
       
  3148 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3149 		OUTSTANDING
       
  3150 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0030-0001-ModeCheck_command06
       
  3151 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command07
       
  3152 		COMMAND		rSocketServ1		Connect
       
  3153 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command09
       
  3154 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0030-0001-SelectOutgoingIAP_command10
       
  3155 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0030-0001-Start_command11
       
  3156 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command12
       
  3157 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0030-0001-GetByName_command13
       
  3158 		OUTSTANDING
       
  3159 		COMMAND		rHostResolver1		Close
       
  3160 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0030-0001-Open_command15
       
  3161 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0030-0001-Connect_command16
       
  3162 		OUTSTANDING
       
  3163 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0030-0001-WriteRequest_command17
       
  3164 		OUTSTANDING
       
  3165 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0030-0001-StartFile_command18
       
  3166 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0030-0001-StartDealer_command19
       
  3167 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0030-0001-CheckHSDPA_command20
       
  3168 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0030-0001-RecvOneOrMore_command21
       
  3169 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0030-0001-EndFile_command22
       
  3170 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0030-0001-CalcDnloadStats_command23
       
  3171 		COMMAND		rSocket1		ShutDown
       
  3172 		OUTSTANDING
       
  3173 		COMMAND		rSocket1		Close
       
  3174 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0030-0001-VerifyData_command26
       
  3175 		COMMAND		rConnection1		Stop
       
  3176 		COMMAND		rConnection1		Close
       
  3177 		COMMAND		mobileLine1		Close
       
  3178 		COMMAND		rSocketServ1		Close
       
  3179 		COMMAND		mmCustomAPI1		Close
       
  3180 		COMMAND		rMobilePhone1		Close
       
  3181 		COMMAND		telServer1		Close
       
  3182 	END_TEST_BLOCK
       
  3183 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0030
       
  3184 
       
  3185 
       
  3186 
       
  3187 
       
  3188 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0031
       
  3189 
       
  3190 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0031
       
  3191 //!@SYMAPI
       
  3192 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3193 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3194 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3195 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3196 //!@SYMAuthor			ddamian
       
  3197 //!@SYMCreationDate		9/5/2008 
       
  3198 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3199 //!@SYMTestActions
       
  3200 //!                1.- OpenTelServer
       
  3201 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3202 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3203 //!                4.- ModeChange (ChangeMode = GSM)
       
  3204 //!                5.- GetCurrentSystemNetworkModes
       
  3205 //!                6.- ModeCheck (CheckMode = GSM)
       
  3206 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3207 //!                8.- ConnectSocketServ
       
  3208 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3209 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3210 //!                11.- StartRConnection (Retries = 1)
       
  3211 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3212 //!                13.- GetByName (Address = {URL,address1})
       
  3213 //!                14.- CloseHostResolver
       
  3214 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3215 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3216 //!                17.-WriteRequest (File = /dy/small/1024k.bin; Protocol = HTTP)
       
  3217 //!                18.-StartFile (Save = {DRIVES,SysDrive}\1024k-tc-0027.bin)
       
  3218 //!                19.-StartDealer (DataDealer = 0)
       
  3219 //!                20.-CheckHSDPA (HSDPA = )
       
  3220 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\1024k-tc-0027.bin; DataDealer = 0; Duration = -1)
       
  3221 //!                22.-EndFile (Save = {DRIVES,SysDrive}\1024k-tc-0027.bin)
       
  3222 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3223 //!                24.-RSocketShutDown
       
  3224 //!                25.-RSocketClose
       
  3225 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\1024k-tc-0027.bin; Checksum=d203ba06a618da4f107c08a87ca5cea3)
       
  3226 //!                27.-StopRConnection
       
  3227 //!                28.-CloseRConnection
       
  3228 //!                29.-CloseLine
       
  3229 //!                30.-CloseSocketServ
       
  3230 //!                31.- CloseCustomApi
       
  3231 //!                32.- ClosePhone
       
  3232 //!                33.- CloseTelServer
       
  3233 //!@SYMTestStatus		Verified
       
  3234 //!@SYMTestPriority		high
       
  3235 //!@SYMTestExpectedResults
       
  3236 //!                Connect to a HSCSD Access Point in GSM mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3237 //!@SYMTestType			CIT
       
  3238 
       
  3239 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3240 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3241 		CREATE_OBJECT	RSocket		rSocket1
       
  3242 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3243 		CREATE_OBJECT	RConnection		rConnection1
       
  3244 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3245 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3246 		CREATE_OBJECT	RTelServer		telServer1
       
  3247 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3248 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3249 		COMMAND		telServer1		Connect
       
  3250 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command02
       
  3251 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command03
       
  3252 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0031-0001-SetSystemNetworkMode_command04
       
  3253 		OUTSTANDING
       
  3254 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3255 		OUTSTANDING
       
  3256 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0031-0001-ModeCheck_command06
       
  3257 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command07
       
  3258 		COMMAND		rSocketServ1		Connect
       
  3259 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command09
       
  3260 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0031-0001-SelectOutgoingIAP_command10
       
  3261 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0031-0001-Start_command11
       
  3262 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command12
       
  3263 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0031-0001-GetByName_command13
       
  3264 		OUTSTANDING
       
  3265 		COMMAND		rHostResolver1		Close
       
  3266 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0031-0001-Open_command15
       
  3267 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0031-0001-Connect_command16
       
  3268 		OUTSTANDING
       
  3269 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0031-0001-WriteRequest_command17
       
  3270 		OUTSTANDING
       
  3271 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0031-0001-StartFile_command18
       
  3272 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0031-0001-StartDealer_command19
       
  3273 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0031-0001-CheckHSDPA_command20
       
  3274 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0031-0001-RecvOneOrMore_command21
       
  3275 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0031-0001-EndFile_command22
       
  3276 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0031-0001-CalcDnloadStats_command23
       
  3277 		COMMAND		rSocket1		ShutDown
       
  3278 		OUTSTANDING
       
  3279 		COMMAND		rSocket1		Close
       
  3280 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0031-0001-VerifyData_command26
       
  3281 		COMMAND		rConnection1		Stop
       
  3282 		COMMAND		rConnection1		Close
       
  3283 		COMMAND		mobileLine1		Close
       
  3284 		COMMAND		rSocketServ1		Close
       
  3285 		COMMAND		mmCustomAPI1		Close
       
  3286 		COMMAND		rMobilePhone1		Close
       
  3287 		COMMAND		telServer1		Close
       
  3288 	END_TEST_BLOCK
       
  3289 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0031
       
  3290 
       
  3291 
       
  3292 
       
  3293 
       
  3294 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0032
       
  3295 
       
  3296 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0032
       
  3297 //!@SYMAPI
       
  3298 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3299 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3300 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3301 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3302 //!@SYMAuthor			ddamian
       
  3303 //!@SYMCreationDate		9/5/2008 
       
  3304 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3305 //!@SYMTestActions
       
  3306 //!                1.- OpenTelServer
       
  3307 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3308 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3309 //!                4.- ModeChange (ChangeMode = GSM)
       
  3310 //!                5.- GetCurrentSystemNetworkModes
       
  3311 //!                6.- ModeCheck (CheckMode = GSM)
       
  3312 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3313 //!                8.- ConnectSocketServ
       
  3314 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3315 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3316 //!                11.- StartRConnection (Retries = 1)
       
  3317 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3318 //!                13.- GetByName (Address = {URL,address1})
       
  3319 //!                14.- CloseHostResolver
       
  3320 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3321 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3322 //!                17.-WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  3323 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0028.bin)
       
  3324 //!                19.-StartDealer (DataDealer = 0)
       
  3325 //!                20.-CheckHSDPA (HSDPA = )
       
  3326 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0028.bin; DataDealer = 0; Duration = -1)
       
  3327 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0028.bin)
       
  3328 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3329 //!                24.-RSocketShutDown
       
  3330 //!                25.-RSocketClose
       
  3331 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0128k-tc-0028.bin; Checksum=5d4779596d69ef04c6f58db95bd832de)
       
  3332 //!                27.-StopRConnection
       
  3333 //!                28.-CloseRConnection
       
  3334 //!                29.-CloseLine
       
  3335 //!                30.-CloseSocketServ
       
  3336 //!                31.- CloseCustomApi
       
  3337 //!                32.- ClosePhone
       
  3338 //!                33.- CloseTelServer
       
  3339 //!@SYMTestStatus		Verified
       
  3340 //!@SYMTestPriority		high
       
  3341 //!@SYMTestExpectedResults
       
  3342 //!                Connect to a HSCSD Access Point in GSM mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3343 //!@SYMTestType			CIT
       
  3344 
       
  3345 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3346 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3347 		CREATE_OBJECT	RSocket		rSocket1
       
  3348 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3349 		CREATE_OBJECT	RConnection		rConnection1
       
  3350 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3351 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3352 		CREATE_OBJECT	RTelServer		telServer1
       
  3353 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3354 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3355 		COMMAND		telServer1		Connect
       
  3356 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command02
       
  3357 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command03
       
  3358 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0032-0001-SetSystemNetworkMode_command04
       
  3359 		OUTSTANDING
       
  3360 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3361 		OUTSTANDING
       
  3362 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0032-0001-ModeCheck_command06
       
  3363 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command07
       
  3364 		COMMAND		rSocketServ1		Connect
       
  3365 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command09
       
  3366 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0032-0001-SelectOutgoingIAP_command10
       
  3367 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0032-0001-Start_command11
       
  3368 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command12
       
  3369 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0032-0001-GetByName_command13
       
  3370 		OUTSTANDING
       
  3371 		COMMAND		rHostResolver1		Close
       
  3372 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0032-0001-Open_command15
       
  3373 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0032-0001-Connect_command16
       
  3374 		OUTSTANDING
       
  3375 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0032-0001-WriteRequest_command17
       
  3376 		OUTSTANDING
       
  3377 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0032-0001-StartFile_command18
       
  3378 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0032-0001-StartDealer_command19
       
  3379 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0032-0001-CheckHSDPA_command20
       
  3380 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0032-0001-RecvOneOrMore_command21
       
  3381 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0032-0001-EndFile_command22
       
  3382 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0032-0001-CalcDnloadStats_command23
       
  3383 		COMMAND		rSocket1		ShutDown
       
  3384 		OUTSTANDING
       
  3385 		COMMAND		rSocket1		Close
       
  3386 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0032-0001-VerifyData_command26
       
  3387 		COMMAND		rConnection1		Stop
       
  3388 		COMMAND		rConnection1		Close
       
  3389 		COMMAND		mobileLine1		Close
       
  3390 		COMMAND		rSocketServ1		Close
       
  3391 		COMMAND		mmCustomAPI1		Close
       
  3392 		COMMAND		rMobilePhone1		Close
       
  3393 		COMMAND		telServer1		Close
       
  3394 	END_TEST_BLOCK
       
  3395 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0032
       
  3396 
       
  3397 
       
  3398 
       
  3399 
       
  3400 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0033
       
  3401 
       
  3402 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0033
       
  3403 //!@SYMAPI
       
  3404 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3405 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3406 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3407 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3408 //!@SYMAuthor			ddamian
       
  3409 //!@SYMCreationDate		9/5/2008 
       
  3410 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3411 //!@SYMTestActions
       
  3412 //!                1.- OpenTelServer
       
  3413 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3414 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3415 //!                4.- ModeChange (ChangeMode = GSM)
       
  3416 //!                5.- GetCurrentSystemNetworkModes
       
  3417 //!                6.- ModeCheck (CheckMode = GSM)
       
  3418 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3419 //!                8.- ConnectSocketServ
       
  3420 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3421 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3422 //!                11.- StartRConnection (Retries = 1)
       
  3423 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3424 //!                13.- GetByName (Address = {URL,address1})
       
  3425 //!                14.- CloseHostResolver
       
  3426 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3427 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3428 //!                17.-WriteRequest (File = /dy/small/0016k.bin; Protocol = HTTP)
       
  3429 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0016k-tc-0029.bin)
       
  3430 //!                19.-StartDealer (DataDealer = 0)
       
  3431 //!                20.-CheckHSDPA (HSDPA = )
       
  3432 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0016k-tc-0029.bin; DataDealer = 0; Duration = -1)
       
  3433 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0016k-tc-0029.bin)
       
  3434 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3435 //!                24.-RSocketShutDown
       
  3436 //!                25.-RSocketClose
       
  3437 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0016k-tc-0029.bin; Checksum=90cc7edd8fecf4ba6375f5c25cb0a21b)
       
  3438 //!                27.-StopRConnection
       
  3439 //!                28.-CloseRConnection
       
  3440 //!                29.-CloseLine
       
  3441 //!                30.-CloseSocketServ
       
  3442 //!                31.- CloseCustomApi
       
  3443 //!                32.- ClosePhone
       
  3444 //!                33.- CloseTelServer
       
  3445 //!@SYMTestStatus		Verified
       
  3446 //!@SYMTestPriority		high
       
  3447 //!@SYMTestExpectedResults
       
  3448 //!                Connect to a HSCSD Access Point in GSM mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3449 //!@SYMTestType			CIT
       
  3450 
       
  3451 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3452 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3453 		CREATE_OBJECT	RSocket		rSocket1
       
  3454 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3455 		CREATE_OBJECT	RConnection		rConnection1
       
  3456 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3457 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3458 		CREATE_OBJECT	RTelServer		telServer1
       
  3459 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3460 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3461 		COMMAND		telServer1		Connect
       
  3462 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command02
       
  3463 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command03
       
  3464 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0033-0001-SetSystemNetworkMode_command04
       
  3465 		OUTSTANDING
       
  3466 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3467 		OUTSTANDING
       
  3468 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0033-0001-ModeCheck_command06
       
  3469 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command07
       
  3470 		COMMAND		rSocketServ1		Connect
       
  3471 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command09
       
  3472 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0033-0001-SelectOutgoingIAP_command10
       
  3473 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0033-0001-Start_command11
       
  3474 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command12
       
  3475 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0033-0001-GetByName_command13
       
  3476 		OUTSTANDING
       
  3477 		COMMAND		rHostResolver1		Close
       
  3478 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0033-0001-Open_command15
       
  3479 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0033-0001-Connect_command16
       
  3480 		OUTSTANDING
       
  3481 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0033-0001-WriteRequest_command17
       
  3482 		OUTSTANDING
       
  3483 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0033-0001-StartFile_command18
       
  3484 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0033-0001-StartDealer_command19
       
  3485 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0033-0001-CheckHSDPA_command20
       
  3486 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0033-0001-RecvOneOrMore_command21
       
  3487 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0033-0001-EndFile_command22
       
  3488 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0033-0001-CalcDnloadStats_command23
       
  3489 		COMMAND		rSocket1		ShutDown
       
  3490 		OUTSTANDING
       
  3491 		COMMAND		rSocket1		Close
       
  3492 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0033-0001-VerifyData_command26
       
  3493 		COMMAND		rConnection1		Stop
       
  3494 		COMMAND		rConnection1		Close
       
  3495 		COMMAND		mobileLine1		Close
       
  3496 		COMMAND		rSocketServ1		Close
       
  3497 		COMMAND		mmCustomAPI1		Close
       
  3498 		COMMAND		rMobilePhone1		Close
       
  3499 		COMMAND		telServer1		Close
       
  3500 	END_TEST_BLOCK
       
  3501 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0033
       
  3502 
       
  3503 
       
  3504 
       
  3505 
       
  3506 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0034
       
  3507 
       
  3508 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0034
       
  3509 //!@SYMAPI
       
  3510 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3511 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3512 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3513 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3514 //!@SYMAuthor			ddamian
       
  3515 //!@SYMCreationDate		9/5/2008 
       
  3516 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3517 //!@SYMTestActions
       
  3518 //!                1.- OpenTelServer
       
  3519 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3520 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3521 //!                4.- ModeChange (ChangeMode = GSM)
       
  3522 //!                5.- GetCurrentSystemNetworkModes
       
  3523 //!                6.- ModeCheck (CheckMode = GSM)
       
  3524 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3525 //!                8.- ConnectSocketServ
       
  3526 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3527 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3528 //!                11.- StartRConnection (Retries = 1)
       
  3529 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3530 //!                13.- GetByName (Address = {URL,address1})
       
  3531 //!                14.- CloseHostResolver
       
  3532 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3533 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3534 //!                17.-WriteRequest (File = /dy/small/0001k.bin; Protocol = HTTP)
       
  3535 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0001k-tc-0030.bin)
       
  3536 //!                19.-StartDealer (DataDealer = 0)
       
  3537 //!                20.-CheckHSDPA (HSDPA = )
       
  3538 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0001k-tc-0030.bin; DataDealer = 0; Duration = -1)
       
  3539 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0001k-tc-0030.bin)
       
  3540 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3541 //!                24.-RSocketShutDown
       
  3542 //!                25.-RSocketClose
       
  3543 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0001k-tc-0030.bin; Checksum=710ecf58249a2cf783d6ecf528e1ba1a)
       
  3544 //!                27.-StopRConnection
       
  3545 //!                28.-CloseRConnection
       
  3546 //!                29.-CloseLine
       
  3547 //!                30.-CloseSocketServ
       
  3548 //!                31.- CloseCustomApi
       
  3549 //!                32.- ClosePhone
       
  3550 //!                33.- CloseTelServer
       
  3551 //!@SYMTestStatus		Verified
       
  3552 //!@SYMTestPriority		high
       
  3553 //!@SYMTestExpectedResults
       
  3554 //!                Connect to a HSCSD Access Point in GSM mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3555 //!@SYMTestType			CIT
       
  3556 
       
  3557 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3558 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3559 		CREATE_OBJECT	RSocket		rSocket1
       
  3560 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3561 		CREATE_OBJECT	RConnection		rConnection1
       
  3562 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3563 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3564 		CREATE_OBJECT	RTelServer		telServer1
       
  3565 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3566 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3567 		COMMAND		telServer1		Connect
       
  3568 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command02
       
  3569 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command03
       
  3570 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0034-0001-SetSystemNetworkMode_command04
       
  3571 		OUTSTANDING
       
  3572 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3573 		OUTSTANDING
       
  3574 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0034-0001-ModeCheck_command06
       
  3575 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command07
       
  3576 		COMMAND		rSocketServ1		Connect
       
  3577 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command09
       
  3578 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0034-0001-SelectOutgoingIAP_command10
       
  3579 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0034-0001-Start_command11
       
  3580 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command12
       
  3581 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0034-0001-GetByName_command13
       
  3582 		OUTSTANDING
       
  3583 		COMMAND		rHostResolver1		Close
       
  3584 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0034-0001-Open_command15
       
  3585 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0034-0001-Connect_command16
       
  3586 		OUTSTANDING
       
  3587 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0034-0001-WriteRequest_command17
       
  3588 		OUTSTANDING
       
  3589 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0034-0001-StartFile_command18
       
  3590 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0034-0001-StartDealer_command19
       
  3591 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0034-0001-CheckHSDPA_command20
       
  3592 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0034-0001-RecvOneOrMore_command21
       
  3593 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0034-0001-EndFile_command22
       
  3594 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0034-0001-CalcDnloadStats_command23
       
  3595 		COMMAND		rSocket1		ShutDown
       
  3596 		OUTSTANDING
       
  3597 		COMMAND		rSocket1		Close
       
  3598 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0034-0001-VerifyData_command26
       
  3599 		COMMAND		rConnection1		Stop
       
  3600 		COMMAND		rConnection1		Close
       
  3601 		COMMAND		mobileLine1		Close
       
  3602 		COMMAND		rSocketServ1		Close
       
  3603 		COMMAND		mmCustomAPI1		Close
       
  3604 		COMMAND		rMobilePhone1		Close
       
  3605 		COMMAND		telServer1		Close
       
  3606 	END_TEST_BLOCK
       
  3607 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0034
       
  3608 
       
  3609 
       
  3610 
       
  3611 
       
  3612 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0035
       
  3613 
       
  3614 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0035
       
  3615 //!@SYMAPI
       
  3616 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3617 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3618 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3619 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3620 //!@SYMAuthor			ddamian
       
  3621 //!@SYMCreationDate		9/5/2008 
       
  3622 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3623 //!@SYMTestActions
       
  3624 //!                1.- OpenTelServer
       
  3625 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3626 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3627 //!                4.- ModeChange (ChangeMode = GSM)
       
  3628 //!                5.- GetCurrentSystemNetworkModes
       
  3629 //!                6.- ModeCheck (CheckMode = GSM)
       
  3630 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3631 //!                8.- ConnectSocketServ
       
  3632 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3633 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3634 //!                11.- StartRConnection (Retries = 1)
       
  3635 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3636 //!                13.- GetByName (Address = {URL,address1})
       
  3637 //!                14.- CloseHostResolver
       
  3638 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3639 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3640 //!                17.-WriteRequest (File = /dy/small/0256k.bin; Protocol = HTTP)
       
  3641 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0256k-tc-0031.bin)
       
  3642 //!                19.-StartDealer (DataDealer = 0)
       
  3643 //!                20.-CheckHSDPA (HSDPA = )
       
  3644 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0256k-tc-0031.bin; DataDealer = 0; Duration = -1)
       
  3645 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0256k-tc-0031.bin)
       
  3646 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3647 //!                24.-RSocketShutDown
       
  3648 //!                25.-RSocketClose
       
  3649 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0256k-tc-0031.bin; Checksum = 0048909c2fb3c2c6818806202e6654ae)
       
  3650 //!                27.-StopRConnection
       
  3651 //!                28.-CloseRConnection
       
  3652 //!                29.-CloseLine
       
  3653 //!                30.-CloseSocketServ
       
  3654 //!                31.- CloseCustomApi
       
  3655 //!                32.- ClosePhone
       
  3656 //!                33.- CloseTelServer
       
  3657 //!@SYMTestStatus		Verified
       
  3658 //!@SYMTestPriority		high
       
  3659 //!@SYMTestExpectedResults
       
  3660 //!                Connect to a HSCSD Access Point in GSM mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3661 //!@SYMTestType			CIT
       
  3662 
       
  3663 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3664 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3665 		CREATE_OBJECT	RSocket		rSocket1
       
  3666 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3667 		CREATE_OBJECT	RConnection		rConnection1
       
  3668 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3669 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3670 		CREATE_OBJECT	RTelServer		telServer1
       
  3671 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3672 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3673 		COMMAND		telServer1		Connect
       
  3674 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command02
       
  3675 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command03
       
  3676 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0035-0001-SetSystemNetworkMode_command04
       
  3677 		OUTSTANDING
       
  3678 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3679 		OUTSTANDING
       
  3680 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0035-0001-ModeCheck_command06
       
  3681 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command07
       
  3682 		COMMAND		rSocketServ1		Connect
       
  3683 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command09
       
  3684 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0035-0001-SelectOutgoingIAP_command10
       
  3685 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0035-0001-Start_command11
       
  3686 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command12
       
  3687 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0035-0001-GetByName_command13
       
  3688 		OUTSTANDING
       
  3689 		COMMAND		rHostResolver1		Close
       
  3690 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0035-0001-Open_command15
       
  3691 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0035-0001-Connect_command16
       
  3692 		OUTSTANDING
       
  3693 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0035-0001-WriteRequest_command17
       
  3694 		OUTSTANDING
       
  3695 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0035-0001-StartFile_command18
       
  3696 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0035-0001-StartDealer_command19
       
  3697 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0035-0001-CheckHSDPA_command20
       
  3698 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0035-0001-RecvOneOrMore_command21
       
  3699 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0035-0001-EndFile_command22
       
  3700 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0035-0001-CalcDnloadStats_command23
       
  3701 		COMMAND		rSocket1		ShutDown
       
  3702 		OUTSTANDING
       
  3703 		COMMAND		rSocket1		Close
       
  3704 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0035-0001-VerifyData_command26
       
  3705 		COMMAND		rConnection1		Stop
       
  3706 		COMMAND		rConnection1		Close
       
  3707 		COMMAND		mobileLine1		Close
       
  3708 		COMMAND		rSocketServ1		Close
       
  3709 		COMMAND		mmCustomAPI1		Close
       
  3710 		COMMAND		rMobilePhone1		Close
       
  3711 		COMMAND		telServer1		Close
       
  3712 	END_TEST_BLOCK
       
  3713 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0035
       
  3714 
       
  3715 
       
  3716 
       
  3717 
       
  3718 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0036
       
  3719 
       
  3720 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0036
       
  3721 //!@SYMAPI
       
  3722 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3723 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3724 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3725 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3726 //!@SYMAuthor			ddamian
       
  3727 //!@SYMCreationDate		9/5/2008 
       
  3728 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3729 //!@SYMTestActions
       
  3730 //!                1.- OpenTelServer
       
  3731 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3732 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3733 //!                4.- ModeChange (ChangeMode = GSM)
       
  3734 //!                5.- GetCurrentSystemNetworkModes
       
  3735 //!                6.- ModeCheck (CheckMode = GSM)
       
  3736 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3737 //!                8.- ConnectSocketServ
       
  3738 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3739 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3740 //!                11.- StartRConnection (Retries = 1)
       
  3741 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3742 //!                13.- GetByName (Address = {URL,address1})
       
  3743 //!                14.- CloseHostResolver
       
  3744 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3745 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3746 //!                17.-WriteRequest (File = /dy/small/0002k.bin; Protocol = HTTP)
       
  3747 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0002k-tc-0032.bin)
       
  3748 //!                19.-StartDealer (DataDealer = 0)
       
  3749 //!                20.-CheckHSDPA (HSDPA = )
       
  3750 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0002k-tc-0032.bin; DataDealer = 0; Duration = -1)
       
  3751 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0002k-tc-0032.bin)
       
  3752 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3753 //!                24.-RSocketShutDown
       
  3754 //!                25.-RSocketClose
       
  3755 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0002k-tc-0032.bin; Checksum = 46eb89673fe25a797a7896fd62773df0)
       
  3756 //!                27.-StopRConnection
       
  3757 //!                28.-CloseRConnection
       
  3758 //!                29.-CloseLine
       
  3759 //!                30.-CloseSocketServ
       
  3760 //!                31.- CloseCustomApi
       
  3761 //!                32.- ClosePhone
       
  3762 //!                33.- CloseTelServer
       
  3763 //!@SYMTestStatus		Verified
       
  3764 //!@SYMTestPriority		high
       
  3765 //!@SYMTestExpectedResults
       
  3766 //!                Connect to a HSCSD Access Point in GSM mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3767 //!@SYMTestType			CIT
       
  3768 
       
  3769 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3770 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3771 		CREATE_OBJECT	RSocket		rSocket1
       
  3772 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3773 		CREATE_OBJECT	RConnection		rConnection1
       
  3774 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3775 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3776 		CREATE_OBJECT	RTelServer		telServer1
       
  3777 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3778 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3779 		COMMAND		telServer1		Connect
       
  3780 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command02
       
  3781 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command03
       
  3782 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0036-0001-SetSystemNetworkMode_command04
       
  3783 		OUTSTANDING
       
  3784 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3785 		OUTSTANDING
       
  3786 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0036-0001-ModeCheck_command06
       
  3787 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command07
       
  3788 		COMMAND		rSocketServ1		Connect
       
  3789 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command09
       
  3790 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0036-0001-SelectOutgoingIAP_command10
       
  3791 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0036-0001-Start_command11
       
  3792 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command12
       
  3793 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0036-0001-GetByName_command13
       
  3794 		OUTSTANDING
       
  3795 		COMMAND		rHostResolver1		Close
       
  3796 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0036-0001-Open_command15
       
  3797 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0036-0001-Connect_command16
       
  3798 		OUTSTANDING
       
  3799 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0036-0001-WriteRequest_command17
       
  3800 		OUTSTANDING
       
  3801 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0036-0001-StartFile_command18
       
  3802 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0036-0001-StartDealer_command19
       
  3803 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0036-0001-CheckHSDPA_command20
       
  3804 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0036-0001-RecvOneOrMore_command21
       
  3805 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0036-0001-EndFile_command22
       
  3806 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0036-0001-CalcDnloadStats_command23
       
  3807 		COMMAND		rSocket1		ShutDown
       
  3808 		OUTSTANDING
       
  3809 		COMMAND		rSocket1		Close
       
  3810 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0036-0001-VerifyData_command26
       
  3811 		COMMAND		rConnection1		Stop
       
  3812 		COMMAND		rConnection1		Close
       
  3813 		COMMAND		mobileLine1		Close
       
  3814 		COMMAND		rSocketServ1		Close
       
  3815 		COMMAND		mmCustomAPI1		Close
       
  3816 		COMMAND		rMobilePhone1		Close
       
  3817 		COMMAND		telServer1		Close
       
  3818 	END_TEST_BLOCK
       
  3819 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0036
       
  3820 
       
  3821 
       
  3822 
       
  3823 
       
  3824 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0037
       
  3825 
       
  3826 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0037
       
  3827 //!@SYMAPI
       
  3828 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3829 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3830 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3831 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3832 //!@SYMAuthor			ddamian
       
  3833 //!@SYMCreationDate		9/5/2008 
       
  3834 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3835 //!@SYMTestActions
       
  3836 //!                1.- OpenTelServer
       
  3837 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3838 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3839 //!                4.- ModeChange (ChangeMode = GSM)
       
  3840 //!                5.- GetCurrentSystemNetworkModes
       
  3841 //!                6.- ModeCheck (CheckMode = GSM)
       
  3842 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3843 //!                8.- ConnectSocketServ
       
  3844 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3845 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3846 //!                11.- StartRConnection (Retries = 1)
       
  3847 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3848 //!                13.- GetByName (Address = {URL,address1})
       
  3849 //!                14.- CloseHostResolver
       
  3850 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3851 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3852 //!                17.-WriteRequest (File = /dy/small/0032k.bin; Protocol = HTTP)
       
  3853 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0032k-tc-0033.bin)
       
  3854 //!                19.-StartDealer (DataDealer = 0)
       
  3855 //!                20.-CheckHSDPA (HSDPA = )
       
  3856 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0032k-tc-0033.bin; DataDealer = 0; Duration = -1)
       
  3857 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0032k-tc-0033.bin)
       
  3858 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3859 //!                24.-RSocketShutDown
       
  3860 //!                25.-RSocketClose
       
  3861 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0032k-tc-0033.bin; Checksum = 64fbc234be040b07806ae46ee8e8bdbc)
       
  3862 //!                27.-StopRConnection
       
  3863 //!                28.-CloseRConnection
       
  3864 //!                29.-CloseLine
       
  3865 //!                30.-CloseSocketServ
       
  3866 //!                31.- CloseCustomApi
       
  3867 //!                32.- ClosePhone
       
  3868 //!                33.- CloseTelServer
       
  3869 //!@SYMTestStatus		Verified
       
  3870 //!@SYMTestPriority		high
       
  3871 //!@SYMTestExpectedResults
       
  3872 //!                Connect to a HSCSD Access Point in GSM mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3873 //!@SYMTestType			CIT
       
  3874 
       
  3875 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3876 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3877 		CREATE_OBJECT	RSocket		rSocket1
       
  3878 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3879 		CREATE_OBJECT	RConnection		rConnection1
       
  3880 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3881 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3882 		CREATE_OBJECT	RTelServer		telServer1
       
  3883 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3884 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3885 		COMMAND		telServer1		Connect
       
  3886 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command02
       
  3887 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command03
       
  3888 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0037-0001-SetSystemNetworkMode_command04
       
  3889 		OUTSTANDING
       
  3890 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3891 		OUTSTANDING
       
  3892 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0037-0001-ModeCheck_command06
       
  3893 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command07
       
  3894 		COMMAND		rSocketServ1		Connect
       
  3895 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command09
       
  3896 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0037-0001-SelectOutgoingIAP_command10
       
  3897 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0037-0001-Start_command11
       
  3898 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command12
       
  3899 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0037-0001-GetByName_command13
       
  3900 		OUTSTANDING
       
  3901 		COMMAND		rHostResolver1		Close
       
  3902 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0037-0001-Open_command15
       
  3903 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0037-0001-Connect_command16
       
  3904 		OUTSTANDING
       
  3905 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0037-0001-WriteRequest_command17
       
  3906 		OUTSTANDING
       
  3907 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0037-0001-StartFile_command18
       
  3908 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0037-0001-StartDealer_command19
       
  3909 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0037-0001-CheckHSDPA_command20
       
  3910 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0037-0001-RecvOneOrMore_command21
       
  3911 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0037-0001-EndFile_command22
       
  3912 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0037-0001-CalcDnloadStats_command23
       
  3913 		COMMAND		rSocket1		ShutDown
       
  3914 		OUTSTANDING
       
  3915 		COMMAND		rSocket1		Close
       
  3916 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0037-0001-VerifyData_command26
       
  3917 		COMMAND		rConnection1		Stop
       
  3918 		COMMAND		rConnection1		Close
       
  3919 		COMMAND		mobileLine1		Close
       
  3920 		COMMAND		rSocketServ1		Close
       
  3921 		COMMAND		mmCustomAPI1		Close
       
  3922 		COMMAND		rMobilePhone1		Close
       
  3923 		COMMAND		telServer1		Close
       
  3924 	END_TEST_BLOCK
       
  3925 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0037
       
  3926 
       
  3927 
       
  3928 
       
  3929 
       
  3930 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0038
       
  3931 
       
  3932 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0038
       
  3933 //!@SYMAPI
       
  3934 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  3935 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  3936 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  3937 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  3938 //!@SYMAuthor			ddamian
       
  3939 //!@SYMCreationDate		9/5/2008 
       
  3940 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  3941 //!@SYMTestActions
       
  3942 //!                1.- OpenTelServer
       
  3943 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  3944 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  3945 //!                4.- ModeChange (ChangeMode = GSM)
       
  3946 //!                5.- GetCurrentSystemNetworkModes
       
  3947 //!                6.- ModeCheck (CheckMode = GSM)
       
  3948 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  3949 //!                8.- ConnectSocketServ
       
  3950 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  3951 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  3952 //!                11.- StartRConnection (Retries = 1)
       
  3953 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3954 //!                13.- GetByName (Address = {URL,address1})
       
  3955 //!                14.- CloseHostResolver
       
  3956 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  3957 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  3958 //!                17.-WriteRequest (File = /dy/big/3mb-1.txt; Protocol = HTTP)
       
  3959 //!                18.-StartFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0034.txt)
       
  3960 //!                19.-StartDealer (DataDealer = 0)
       
  3961 //!                20.-CheckHSDPA (HSDPA = )
       
  3962 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\3mb-1-tc-0034.txt; DataDealer = 0; Duration = -1)
       
  3963 //!                22.-EndFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0034.txt)
       
  3964 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  3965 //!                24.-RSocketShutDown
       
  3966 //!                25.-RSocketClose
       
  3967 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\3mb-1-tc-0034.txt; Checksum = 7fae292c77026cbb5a78a7da499032c5 )
       
  3968 //!                27.-StopRConnection
       
  3969 //!                28.-CloseRConnection
       
  3970 //!                29.-CloseLine
       
  3971 //!                30.-CloseSocketServ
       
  3972 //!                31.- CloseCustomApi
       
  3973 //!                32.- ClosePhone
       
  3974 //!                33.- CloseTelServer
       
  3975 //!@SYMTestStatus		Verified
       
  3976 //!@SYMTestPriority		high
       
  3977 //!@SYMTestExpectedResults
       
  3978 //!                Connect to a HSCSD Access Point in GSM mode, download a 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  3979 //!@SYMTestType			CIT
       
  3980 
       
  3981 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  3982 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  3983 		CREATE_OBJECT	RSocket		rSocket1
       
  3984 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  3985 		CREATE_OBJECT	RConnection		rConnection1
       
  3986 		CREATE_OBJECT	DataVerify		dataVerify1
       
  3987 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  3988 		CREATE_OBJECT	RTelServer		telServer1
       
  3989 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  3990 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  3991 		COMMAND		telServer1		Connect
       
  3992 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command02
       
  3993 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command03
       
  3994 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0038-0001-SetSystemNetworkMode_command04
       
  3995 		OUTSTANDING
       
  3996 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  3997 		OUTSTANDING
       
  3998 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0038-0001-ModeCheck_command06
       
  3999 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command07
       
  4000 		COMMAND		rSocketServ1		Connect
       
  4001 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command09
       
  4002 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0038-0001-SelectOutgoingIAP_command10
       
  4003 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0038-0001-Start_command11
       
  4004 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command12
       
  4005 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0038-0001-GetByName_command13
       
  4006 		OUTSTANDING
       
  4007 		COMMAND		rHostResolver1		Close
       
  4008 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0038-0001-Open_command15
       
  4009 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0038-0001-Connect_command16
       
  4010 		OUTSTANDING
       
  4011 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0038-0001-WriteRequest_command17
       
  4012 		OUTSTANDING
       
  4013 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0038-0001-StartFile_command18
       
  4014 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0038-0001-StartDealer_command19
       
  4015 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0038-0001-CheckHSDPA_command20
       
  4016 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0038-0001-RecvOneOrMore_command21
       
  4017 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0038-0001-EndFile_command22
       
  4018 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0038-0001-CalcDnloadStats_command23
       
  4019 		COMMAND		rSocket1		ShutDown
       
  4020 		OUTSTANDING
       
  4021 		COMMAND		rSocket1		Close
       
  4022 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0038-0001-VerifyData_command26
       
  4023 		COMMAND		rConnection1		Stop
       
  4024 		COMMAND		rConnection1		Close
       
  4025 		COMMAND		mobileLine1		Close
       
  4026 		COMMAND		rSocketServ1		Close
       
  4027 		COMMAND		mmCustomAPI1		Close
       
  4028 		COMMAND		rMobilePhone1		Close
       
  4029 		COMMAND		telServer1		Close
       
  4030 	END_TEST_BLOCK
       
  4031 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0038
       
  4032 
       
  4033 
       
  4034 
       
  4035 
       
  4036 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0039
       
  4037 
       
  4038 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0039
       
  4039 //!@SYMAPI
       
  4040 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4041 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4042 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4043 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4044 //!@SYMAuthor			ddamian
       
  4045 //!@SYMCreationDate		9/5/2008 
       
  4046 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4047 //!@SYMTestActions
       
  4048 //!                1.- OpenTelServer
       
  4049 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4050 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4051 //!                4.- ModeChange (ChangeMode = GSM)
       
  4052 //!                5.- GetCurrentSystemNetworkModes
       
  4053 //!                6.- ModeCheck (CheckMode = GSM)
       
  4054 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4055 //!                8.- ConnectSocketServ
       
  4056 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  4057 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  4058 //!                11.- StartRConnection (Retries = 1)
       
  4059 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4060 //!                13.- GetByName (Address = {URL,address1})
       
  4061 //!                14.- CloseHostResolver
       
  4062 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4063 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4064 //!                17.-WriteRequest (File = /dy/small/0004k.bin; Protocol = HTTP)
       
  4065 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0004k-tc-0035.bin)
       
  4066 //!                19.-StartDealer (DataDealer = 0)
       
  4067 //!                20.-CheckHSDPA (HSDPA = )
       
  4068 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0004k-tc-0035.bin; DataDealer = 0; Duration = -1)
       
  4069 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0004k-tc-0035.bin)
       
  4070 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4071 //!                24.-RSocketShutDown
       
  4072 //!                25.-RSocketClose
       
  4073 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0004k-tc-0035.bin; Checksum = bbc5e9b08e80626178ce7df5a50a1395)
       
  4074 //!                27.-StopRConnection
       
  4075 //!                28.-CloseRConnection
       
  4076 //!                29.-CloseLine
       
  4077 //!                30.-CloseSocketServ
       
  4078 //!                31.- CloseCustomApi
       
  4079 //!                32.- ClosePhone
       
  4080 //!                33.- CloseTelServer
       
  4081 //!@SYMTestStatus		Verified
       
  4082 //!@SYMTestPriority		high
       
  4083 //!@SYMTestExpectedResults
       
  4084 //!                Connect to a HSCSD Access Point in GSM mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4085 //!@SYMTestType			CIT
       
  4086 
       
  4087 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4088 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4089 		CREATE_OBJECT	RSocket		rSocket1
       
  4090 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4091 		CREATE_OBJECT	RConnection		rConnection1
       
  4092 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4093 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4094 		CREATE_OBJECT	RTelServer		telServer1
       
  4095 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4096 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4097 		COMMAND		telServer1		Connect
       
  4098 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command02
       
  4099 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command03
       
  4100 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0039-0001-SetSystemNetworkMode_command04
       
  4101 		OUTSTANDING
       
  4102 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4103 		OUTSTANDING
       
  4104 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0039-0001-ModeCheck_command06
       
  4105 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command07
       
  4106 		COMMAND		rSocketServ1		Connect
       
  4107 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command09
       
  4108 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0039-0001-SelectOutgoingIAP_command10
       
  4109 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0039-0001-Start_command11
       
  4110 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command12
       
  4111 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0039-0001-GetByName_command13
       
  4112 		OUTSTANDING
       
  4113 		COMMAND		rHostResolver1		Close
       
  4114 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0039-0001-Open_command15
       
  4115 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0039-0001-Connect_command16
       
  4116 		OUTSTANDING
       
  4117 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0039-0001-WriteRequest_command17
       
  4118 		OUTSTANDING
       
  4119 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0039-0001-StartFile_command18
       
  4120 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0039-0001-StartDealer_command19
       
  4121 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0039-0001-CheckHSDPA_command20
       
  4122 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0039-0001-RecvOneOrMore_command21
       
  4123 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0039-0001-EndFile_command22
       
  4124 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0039-0001-CalcDnloadStats_command23
       
  4125 		COMMAND		rSocket1		ShutDown
       
  4126 		OUTSTANDING
       
  4127 		COMMAND		rSocket1		Close
       
  4128 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0039-0001-VerifyData_command26
       
  4129 		COMMAND		rConnection1		Stop
       
  4130 		COMMAND		rConnection1		Close
       
  4131 		COMMAND		mobileLine1		Close
       
  4132 		COMMAND		rSocketServ1		Close
       
  4133 		COMMAND		mmCustomAPI1		Close
       
  4134 		COMMAND		rMobilePhone1		Close
       
  4135 		COMMAND		telServer1		Close
       
  4136 	END_TEST_BLOCK
       
  4137 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0039
       
  4138 
       
  4139 
       
  4140 
       
  4141 
       
  4142 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0040
       
  4143 
       
  4144 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0040
       
  4145 //!@SYMAPI
       
  4146 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4147 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4148 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4149 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4150 //!@SYMAuthor			ddamian
       
  4151 //!@SYMCreationDate		9/5/2008 
       
  4152 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4153 //!@SYMTestActions
       
  4154 //!                1.- OpenTelServer
       
  4155 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4156 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4157 //!                4.- ModeChange (ChangeMode = GSM)
       
  4158 //!                5.- GetCurrentSystemNetworkModes
       
  4159 //!                6.- ModeCheck (CheckMode = GSM)
       
  4160 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4161 //!                8.- ConnectSocketServ
       
  4162 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  4163 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  4164 //!                11.- StartRConnection (Retries = 1)
       
  4165 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4166 //!                13.- GetByName (Address = {URL,address1})
       
  4167 //!                14.- CloseHostResolver
       
  4168 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4169 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4170 //!                17.-WriteRequest (File = /dy/small/0512k.bin; Protocol = HTTP)
       
  4171 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0512k-tc-0036.bin)
       
  4172 //!                19.-StartDealer (DataDealer = 0)
       
  4173 //!                20.-CheckHSDPA (HSDPA = )
       
  4174 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0512k-tc-0036.bin; DataDealer = 0; Duration = -1)
       
  4175 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0512k-tc-0036.bin)
       
  4176 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4177 //!                24.-RSocketShutDown
       
  4178 //!                25.-RSocketClose
       
  4179 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0512k-tc-0036.bin; Checksum = e27c9e563d0e2752b813f6182934b0f4)
       
  4180 //!                27.-StopRConnection
       
  4181 //!                28.-CloseRConnection
       
  4182 //!                29.-CloseLine
       
  4183 //!                30.-CloseSocketServ
       
  4184 //!                31.- CloseCustomApi
       
  4185 //!                32.- ClosePhone
       
  4186 //!                33.- CloseTelServer
       
  4187 //!@SYMTestStatus		Verified
       
  4188 //!@SYMTestPriority		high
       
  4189 //!@SYMTestExpectedResults
       
  4190 //!                Connect to a HSCSD Access Point in GSM mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4191 //!@SYMTestType			CIT
       
  4192 
       
  4193 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4194 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4195 		CREATE_OBJECT	RSocket		rSocket1
       
  4196 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4197 		CREATE_OBJECT	RConnection		rConnection1
       
  4198 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4199 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4200 		CREATE_OBJECT	RTelServer		telServer1
       
  4201 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4202 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4203 		COMMAND		telServer1		Connect
       
  4204 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command02
       
  4205 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command03
       
  4206 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0040-0001-SetSystemNetworkMode_command04
       
  4207 		OUTSTANDING
       
  4208 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4209 		OUTSTANDING
       
  4210 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0040-0001-ModeCheck_command06
       
  4211 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command07
       
  4212 		COMMAND		rSocketServ1		Connect
       
  4213 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command09
       
  4214 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0040-0001-SelectOutgoingIAP_command10
       
  4215 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0040-0001-Start_command11
       
  4216 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command12
       
  4217 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0040-0001-GetByName_command13
       
  4218 		OUTSTANDING
       
  4219 		COMMAND		rHostResolver1		Close
       
  4220 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0040-0001-Open_command15
       
  4221 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0040-0001-Connect_command16
       
  4222 		OUTSTANDING
       
  4223 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0040-0001-WriteRequest_command17
       
  4224 		OUTSTANDING
       
  4225 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0040-0001-StartFile_command18
       
  4226 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0040-0001-StartDealer_command19
       
  4227 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0040-0001-CheckHSDPA_command20
       
  4228 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0040-0001-RecvOneOrMore_command21
       
  4229 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0040-0001-EndFile_command22
       
  4230 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0040-0001-CalcDnloadStats_command23
       
  4231 		COMMAND		rSocket1		ShutDown
       
  4232 		OUTSTANDING
       
  4233 		COMMAND		rSocket1		Close
       
  4234 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0040-0001-VerifyData_command26
       
  4235 		COMMAND		rConnection1		Stop
       
  4236 		COMMAND		rConnection1		Close
       
  4237 		COMMAND		mobileLine1		Close
       
  4238 		COMMAND		rSocketServ1		Close
       
  4239 		COMMAND		mmCustomAPI1		Close
       
  4240 		COMMAND		rMobilePhone1		Close
       
  4241 		COMMAND		telServer1		Close
       
  4242 	END_TEST_BLOCK
       
  4243 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0040
       
  4244 
       
  4245 
       
  4246 
       
  4247 
       
  4248 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0041
       
  4249 
       
  4250 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0041
       
  4251 //!@SYMAPI
       
  4252 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4253 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4254 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4255 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4256 //!@SYMAuthor			ddamian
       
  4257 //!@SYMCreationDate		9/5/2008 
       
  4258 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4259 //!@SYMTestActions
       
  4260 //!                1.- OpenTelServer
       
  4261 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4262 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4263 //!                4.- ModeChange (ChangeMode = GSM)
       
  4264 //!                5.- GetCurrentSystemNetworkModes
       
  4265 //!                6.- ModeCheck (CheckMode = GSM)
       
  4266 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4267 //!                8.- ConnectSocketServ
       
  4268 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  4269 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  4270 //!                11.- StartRConnection (Retries = 1)
       
  4271 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4272 //!                13.- GetByName (Address = {URL,address1})
       
  4273 //!                14.- CloseHostResolver
       
  4274 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4275 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4276 //!                17.-WriteRequest (File = /dy/small/0064k.bin; Protocol = HTTP)
       
  4277 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0064k-tc-0037.bin)
       
  4278 //!                19.-StartDealer (DataDealer = 0)
       
  4279 //!                20.-CheckHSDPA (HSDPA = )
       
  4280 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0064k-tc-0037.bin; DataDealer = 0; Duration = -1)
       
  4281 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0064k-tc-0037.bin)
       
  4282 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4283 //!                24.-RSocketShutDown
       
  4284 //!                25.-RSocketClose
       
  4285 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0064k-tc-0037.bin; Checksum = d26a232d0279a9cb34529a9a05125f4a)
       
  4286 //!                27.-StopRConnection
       
  4287 //!                28.-CloseRConnection
       
  4288 //!                29.-CloseLine
       
  4289 //!                30.-CloseSocketServ
       
  4290 //!                31.- CloseCustomApi
       
  4291 //!                32.- ClosePhone
       
  4292 //!                33.- CloseTelServer
       
  4293 //!@SYMTestStatus		Verified
       
  4294 //!@SYMTestPriority		high
       
  4295 //!@SYMTestExpectedResults
       
  4296 //!                Connect to a HSCSD Access Point in GSM mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4297 //!@SYMTestType			CIT
       
  4298 
       
  4299 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4300 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4301 		CREATE_OBJECT	RSocket		rSocket1
       
  4302 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4303 		CREATE_OBJECT	RConnection		rConnection1
       
  4304 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4305 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4306 		CREATE_OBJECT	RTelServer		telServer1
       
  4307 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4308 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4309 		COMMAND		telServer1		Connect
       
  4310 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command02
       
  4311 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command03
       
  4312 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0041-0001-SetSystemNetworkMode_command04
       
  4313 		OUTSTANDING
       
  4314 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4315 		OUTSTANDING
       
  4316 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0041-0001-ModeCheck_command06
       
  4317 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command07
       
  4318 		COMMAND		rSocketServ1		Connect
       
  4319 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command09
       
  4320 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0041-0001-SelectOutgoingIAP_command10
       
  4321 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0041-0001-Start_command11
       
  4322 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command12
       
  4323 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0041-0001-GetByName_command13
       
  4324 		OUTSTANDING
       
  4325 		COMMAND		rHostResolver1		Close
       
  4326 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0041-0001-Open_command15
       
  4327 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0041-0001-Connect_command16
       
  4328 		OUTSTANDING
       
  4329 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0041-0001-WriteRequest_command17
       
  4330 		OUTSTANDING
       
  4331 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0041-0001-StartFile_command18
       
  4332 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0041-0001-StartDealer_command19
       
  4333 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0041-0001-CheckHSDPA_command20
       
  4334 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0041-0001-RecvOneOrMore_command21
       
  4335 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0041-0001-EndFile_command22
       
  4336 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0041-0001-CalcDnloadStats_command23
       
  4337 		COMMAND		rSocket1		ShutDown
       
  4338 		OUTSTANDING
       
  4339 		COMMAND		rSocket1		Close
       
  4340 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0041-0001-VerifyData_command26
       
  4341 		COMMAND		rConnection1		Stop
       
  4342 		COMMAND		rConnection1		Close
       
  4343 		COMMAND		mobileLine1		Close
       
  4344 		COMMAND		rSocketServ1		Close
       
  4345 		COMMAND		mmCustomAPI1		Close
       
  4346 		COMMAND		rMobilePhone1		Close
       
  4347 		COMMAND		telServer1		Close
       
  4348 	END_TEST_BLOCK
       
  4349 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0041
       
  4350 
       
  4351 
       
  4352 
       
  4353 
       
  4354 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0042
       
  4355 
       
  4356 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0042
       
  4357 //!@SYMAPI
       
  4358 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4359 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4360 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4361 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4362 //!@SYMAuthor			ddamian
       
  4363 //!@SYMCreationDate		9/5/2008 
       
  4364 //!@SYMTestCaseDesc		Connect to a HSCSD Access Point in GSM mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4365 //!@SYMTestActions
       
  4366 //!                1.- OpenTelServer
       
  4367 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4368 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4369 //!                4.- ModeChange (ChangeMode = GSM)
       
  4370 //!                5.- GetCurrentSystemNetworkModes
       
  4371 //!                6.- ModeCheck (CheckMode = GSM)
       
  4372 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4373 //!                8.- ConnectSocketServ
       
  4374 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  4375 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  4376 //!                11.- StartRConnection (Retries = 1)
       
  4377 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4378 //!                13.- GetByName (Address = {URL,address1})
       
  4379 //!                14.- CloseHostResolver
       
  4380 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4381 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4382 //!                17.-WriteRequest (File = /dy/small/0008k.bin; Protocol = HTTP)
       
  4383 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0008k-tc-0038.bin)
       
  4384 //!                19.-StartDealer (DataDealer = 0)
       
  4385 //!                20.-CheckHSDPA (HSDPA = )
       
  4386 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0008k-tc-0038.bin; DataDealer = 0; Duration = -1)
       
  4387 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0008k-tc-0038.bin)
       
  4388 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4389 //!                24.-RSocketShutDown
       
  4390 //!                25.-RSocketClose
       
  4391 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0008k-tc-0038.bin; Checksum = a69a721002a248215c0e46d992583889)
       
  4392 //!                27.-StopRConnection
       
  4393 //!                28.-CloseRConnection
       
  4394 //!                29.-CloseLine
       
  4395 //!                30.-CloseSocketServ
       
  4396 //!                31.- CloseCustomApi
       
  4397 //!                32.- ClosePhone
       
  4398 //!                33.- CloseTelServer
       
  4399 //!@SYMTestStatus		Verified
       
  4400 //!@SYMTestPriority		high
       
  4401 //!@SYMTestExpectedResults
       
  4402 //!                Connect to a HSCSD Access Point in GSM mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4403 //!@SYMTestType			CIT
       
  4404 
       
  4405 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4406 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4407 		CREATE_OBJECT	RSocket		rSocket1
       
  4408 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4409 		CREATE_OBJECT	RConnection		rConnection1
       
  4410 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4411 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4412 		CREATE_OBJECT	RTelServer		telServer1
       
  4413 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4414 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4415 		COMMAND		telServer1		Connect
       
  4416 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command02
       
  4417 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command03
       
  4418 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0042-0001-SetSystemNetworkMode_command04
       
  4419 		OUTSTANDING
       
  4420 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4421 		OUTSTANDING
       
  4422 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0042-0001-ModeCheck_command06
       
  4423 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command07
       
  4424 		COMMAND		rSocketServ1		Connect
       
  4425 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command09
       
  4426 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0042-0001-SelectOutgoingIAP_command10
       
  4427 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0042-0001-Start_command11
       
  4428 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command12
       
  4429 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0042-0001-GetByName_command13
       
  4430 		OUTSTANDING
       
  4431 		COMMAND		rHostResolver1		Close
       
  4432 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0042-0001-Open_command15
       
  4433 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0042-0001-Connect_command16
       
  4434 		OUTSTANDING
       
  4435 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0042-0001-WriteRequest_command17
       
  4436 		OUTSTANDING
       
  4437 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0042-0001-StartFile_command18
       
  4438 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0042-0001-StartDealer_command19
       
  4439 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0042-0001-CheckHSDPA_command20
       
  4440 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0042-0001-RecvOneOrMore_command21
       
  4441 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0042-0001-EndFile_command22
       
  4442 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0042-0001-CalcDnloadStats_command23
       
  4443 		COMMAND		rSocket1		ShutDown
       
  4444 		OUTSTANDING
       
  4445 		COMMAND		rSocket1		Close
       
  4446 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0042-0001-VerifyData_command26
       
  4447 		COMMAND		rConnection1		Stop
       
  4448 		COMMAND		rConnection1		Close
       
  4449 		COMMAND		mobileLine1		Close
       
  4450 		COMMAND		rSocketServ1		Close
       
  4451 		COMMAND		mmCustomAPI1		Close
       
  4452 		COMMAND		rMobilePhone1		Close
       
  4453 		COMMAND		telServer1		Close
       
  4454 	END_TEST_BLOCK
       
  4455 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0042
       
  4456 
       
  4457 
       
  4458 
       
  4459 
       
  4460 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0043
       
  4461 
       
  4462 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0043
       
  4463 //!@SYMAPI
       
  4464 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4465 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4466 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4467 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4468 //!@SYMAuthor			ddamian
       
  4469 //!@SYMCreationDate		9/5/2008 
       
  4470 //!@SYMTestCaseDesc		Download file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card.
       
  4471 //!@SYMTestActions
       
  4472 //!                1.- OpenTelServer
       
  4473 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4474 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4475 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  4476 //!                5.- GetCurrentSystemNetworkModes
       
  4477 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  4478 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4479 //!                8.- ConnectSocketServ
       
  4480 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  4481 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  4482 //!                11.- StartRConnection (Retries = 1)
       
  4483 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4484 //!                13.- GetByName (Address = {URL,address1})
       
  4485 //!                14.- CloseHostResolver 
       
  4486 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4487 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4488 //!                17.- WriteRequest (File = /dy/small/0000k.bin; Protocol = HTTP)
       
  4489 //!                18.- StartFile (Save = {DRIVES,MMCDrive}\0000k-tc-0053.bin)
       
  4490 //!                19.- StartDealer (DataDealer = 0)
       
  4491 //!                20.- CheckHSDPA (HSDPA = Used)
       
  4492 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\0000k-tc-0053.bin; DataDealer = 0; Duration = -1)
       
  4493 //!                22.- EndFile (Save = {DRIVES,MMCDrive}\0000k-tc-0053.bin)
       
  4494 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4495 //!                24.- RSocketShutDown
       
  4496 //!                25.- RSocketClose
       
  4497 //!                26.- VerifyData(VerifyType= MD5; VerifyFile= {DRIVES,MMCDrive}\0000k-tc-0053.bin; Checksum=d41d8cd98f00b204e9800998ecf8427e)
       
  4498 //!                27.- StopRConnection
       
  4499 //!                28.- CloseRConnection
       
  4500 //!                29.- CloseLine
       
  4501 //!                30.- CloseSocketServ
       
  4502 //!                31.- CloseCustomApi
       
  4503 //!                32.- ClosePhone
       
  4504 //!                33.- CloseTelServer
       
  4505 //!@SYMTestStatus		Verified
       
  4506 //!@SYMTestPriority		high
       
  4507 //!@SYMTestExpectedResults
       
  4508 //!                Download file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card. Execution will return no error where access point available.
       
  4509 //!@SYMTestType			CIT
       
  4510 
       
  4511 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4512 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4513 		CREATE_OBJECT	RSocket		rSocket1
       
  4514 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4515 		CREATE_OBJECT	RConnection		rConnection1
       
  4516 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4517 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4518 		CREATE_OBJECT	RTelServer		telServer1
       
  4519 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4520 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4521 		COMMAND		telServer1		Connect
       
  4522 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command02
       
  4523 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command03
       
  4524 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0043-0001-SetSystemNetworkMode_command04
       
  4525 		OUTSTANDING
       
  4526 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4527 		OUTSTANDING
       
  4528 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0043-0001-ModeCheck_command06
       
  4529 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command07
       
  4530 		COMMAND		rSocketServ1		Connect
       
  4531 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command09
       
  4532 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0043-0001-SelectOutgoingIAP_command10
       
  4533 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0043-0001-Start_command11
       
  4534 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command12
       
  4535 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0043-0001-GetByName_command13
       
  4536 		OUTSTANDING
       
  4537 		COMMAND		rHostResolver1		Close
       
  4538 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0043-0001-Open_command15
       
  4539 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0043-0001-Connect_command16
       
  4540 		OUTSTANDING
       
  4541 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0043-0001-WriteRequest_command17
       
  4542 		OUTSTANDING
       
  4543 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0043-0001-StartFile_command18
       
  4544 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0043-0001-StartDealer_command19
       
  4545 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0043-0001-CheckHSDPA_command20
       
  4546 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0043-0001-RecvOneOrMore_command21
       
  4547 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0043-0001-EndFile_command22
       
  4548 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0043-0001-CalcDnloadStats_command23
       
  4549 		COMMAND		rSocket1		ShutDown
       
  4550 		OUTSTANDING
       
  4551 		COMMAND		rSocket1		Close
       
  4552 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0043-0001-VerifyData_command26
       
  4553 		COMMAND		rConnection1		Stop
       
  4554 		COMMAND		rConnection1		Close
       
  4555 		COMMAND		mobileLine1		Close
       
  4556 		COMMAND		rSocketServ1		Close
       
  4557 		COMMAND		mmCustomAPI1		Close
       
  4558 		COMMAND		rMobilePhone1		Close
       
  4559 		COMMAND		telServer1		Close
       
  4560 	END_TEST_BLOCK
       
  4561 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0043
       
  4562 
       
  4563 
       
  4564 
       
  4565 
       
  4566 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0044
       
  4567 
       
  4568 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0044
       
  4569 //!@SYMAPI
       
  4570 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4571 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4572 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4573 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4574 //!@SYMAuthor			ddamian
       
  4575 //!@SYMCreationDate		9/5/2008 
       
  4576 //!@SYMTestCaseDesc		Download a 75MB file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card.
       
  4577 //!@SYMTestActions
       
  4578 //!                1.- OpenTelServer
       
  4579 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4580 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4581 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  4582 //!                5.- GetCurrentSystemNetworkModes
       
  4583 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  4584 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4585 //!                8.- ConnectSocketServ
       
  4586 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  4587 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  4588 //!                11.- StartRConnection (Retries = 1)
       
  4589 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4590 //!                13.- GetByName (Address = {URL,address1})
       
  4591 //!                14.- CloseHostResolver 
       
  4592 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4593 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4594 //!                17.- WriteRequest (File = /dy/small/75MB.bin; Protocol = HTTP)
       
  4595 //!                18.- StartFile (Save = {DRIVES,MMCDrive}\75MB-tc-0054.bin)
       
  4596 //!                19.- StartDealer (DataDealer = 0)
       
  4597 //!                20.- CheckHSDPA (HSDPA = Used)
       
  4598 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\75MB-tc-0054.bin; DataDealer = 0; Duration = -1)
       
  4599 //!                22.- EndFile (Save = {DRIVES,MMCDrive}\75MB-tc-0054.bin)
       
  4600 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4601 //!                24.- RSocketShutDown
       
  4602 //!                25.- RSocketClose
       
  4603 //!                26.- VerifyData(VerifyType= MD5; VerifyFile={DRIVES,MMCDrive}\75MB-tc-0054.bin; Checksum=c5fd73b7ad33a7ba851f45ca0b126cec)
       
  4604 //!                27.- StopRConnection
       
  4605 //!                28.- CloseRConnection
       
  4606 //!                29.- CloseLine
       
  4607 //!                30.- CloseSocketServ
       
  4608 //!                31.- CloseCustomApi
       
  4609 //!                32.- ClosePhone
       
  4610 //!                33.- CloseTelServer
       
  4611 //!@SYMTestStatus		Verified
       
  4612 //!@SYMTestPriority		high
       
  4613 //!@SYMTestExpectedResults
       
  4614 //!                Download a 75MB file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card. Execution will return no error where access point available.
       
  4615 //!@SYMTestType			CIT
       
  4616 
       
  4617 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4618 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4619 		CREATE_OBJECT	RSocket		rSocket1
       
  4620 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4621 		CREATE_OBJECT	RConnection		rConnection1
       
  4622 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4623 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4624 		CREATE_OBJECT	RTelServer		telServer1
       
  4625 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4626 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4627 		COMMAND		telServer1		Connect
       
  4628 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command02
       
  4629 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command03
       
  4630 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0044-0001-SetSystemNetworkMode_command04
       
  4631 		OUTSTANDING
       
  4632 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4633 		OUTSTANDING
       
  4634 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0044-0001-ModeCheck_command06
       
  4635 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command07
       
  4636 		COMMAND		rSocketServ1		Connect
       
  4637 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command09
       
  4638 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0044-0001-SelectOutgoingIAP_command10
       
  4639 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0044-0001-Start_command11
       
  4640 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command12
       
  4641 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0044-0001-GetByName_command13
       
  4642 		OUTSTANDING
       
  4643 		COMMAND		rHostResolver1		Close
       
  4644 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0044-0001-Open_command15
       
  4645 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0044-0001-Connect_command16
       
  4646 		OUTSTANDING
       
  4647 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0044-0001-WriteRequest_command17
       
  4648 		OUTSTANDING
       
  4649 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0044-0001-StartFile_command18
       
  4650 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0044-0001-StartDealer_command19
       
  4651 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0044-0001-CheckHSDPA_command20
       
  4652 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0044-0001-RecvOneOrMore_command21
       
  4653 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0044-0001-EndFile_command22
       
  4654 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0044-0001-CalcDnloadStats_command23
       
  4655 		COMMAND		rSocket1		ShutDown
       
  4656 		OUTSTANDING
       
  4657 		COMMAND		rSocket1		Close
       
  4658 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0044-0001-VerifyData_command26
       
  4659 		COMMAND		rConnection1		Stop
       
  4660 		COMMAND		rConnection1		Close
       
  4661 		COMMAND		mobileLine1		Close
       
  4662 		COMMAND		rSocketServ1		Close
       
  4663 		COMMAND		mmCustomAPI1		Close
       
  4664 		COMMAND		rMobilePhone1		Close
       
  4665 		COMMAND		telServer1		Close
       
  4666 	END_TEST_BLOCK
       
  4667 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0044
       
  4668 
       
  4669 
       
  4670 
       
  4671 
       
  4672 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0045
       
  4673 
       
  4674 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0045
       
  4675 //!@SYMAPI
       
  4676 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4677 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4678 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4679 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4680 //!@SYMAuthor			ddamian
       
  4681 //!@SYMCreationDate		9/5/2008 
       
  4682 //!@SYMTestCaseDesc		Download a 150MB file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card.
       
  4683 //!@SYMTestActions
       
  4684 //!                1.- OpenTelServer
       
  4685 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4686 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4687 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  4688 //!                5.- GetCurrentSystemNetworkModes
       
  4689 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  4690 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4691 //!                8.- ConnectSocketServ
       
  4692 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  4693 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  4694 //!                11.- StartRConnection (Retries = 1)
       
  4695 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4696 //!                13.- GetByName (Address = {URL,address1})
       
  4697 //!                14.- CloseHostResolver 
       
  4698 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4699 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4700 //!                17.- WriteRequest (File = /dy/big/150MB.bin; Protocol = HTTP)
       
  4701 //!                18.- StartFile (Save = {DRIVES,MMCDrive}\150MB-tc-0055.bin)
       
  4702 //!                19.- StartDealer (DataDealer = 0)
       
  4703 //!                20.- CheckHSDPA (HSDPA = Used)
       
  4704 //!                21.- DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\150MB-tc-0055.bin; DataDealer = 0; Duration = -1)
       
  4705 //!                22.- EndFile (Save = {DRIVES,MMCDrive}\150MB-tc-0055.bin)
       
  4706 //!                23.- CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4707 //!                24.- RSocketShutDown
       
  4708 //!                25.- RSocketClose
       
  4709 //!                26.- VerifyData(VerifyType= MD5; VerifyFile={DRIVES,MMCDrive}\150MB-tc-0055.bin; Checksum=6fe954699cba15eadab9d354120e3aec)
       
  4710 //!                27.- StopRConnection
       
  4711 //!                28.- CloseRConnection
       
  4712 //!                29.- CloseLine
       
  4713 //!                30.- CloseSocketServ
       
  4714 //!                31.- CloseCustomApi
       
  4715 //!                32.- ClosePhone
       
  4716 //!                33.- CloseTelServer
       
  4717 //!@SYMTestStatus		Verified
       
  4718 //!@SYMTestPriority		high
       
  4719 //!@SYMTestExpectedResults
       
  4720 //!                Download a 150MB file using HSDPA in WCDMA mode and verify received file with MD5 checksum. File will be saved in memory card. Execution will return no error where access point available.
       
  4721 //!@SYMTestType			CIT
       
  4722 
       
  4723 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4724 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4725 		CREATE_OBJECT	RSocket		rSocket1
       
  4726 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4727 		CREATE_OBJECT	RConnection		rConnection1
       
  4728 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4729 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4730 		CREATE_OBJECT	RTelServer		telServer1
       
  4731 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4732 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4733 		COMMAND		telServer1		Connect
       
  4734 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command02
       
  4735 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command03
       
  4736 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0045-0001-SetSystemNetworkMode_command04
       
  4737 		OUTSTANDING
       
  4738 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4739 		OUTSTANDING
       
  4740 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0045-0001-ModeCheck_command06
       
  4741 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command07
       
  4742 		COMMAND		rSocketServ1		Connect
       
  4743 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command09
       
  4744 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0045-0001-SelectOutgoingIAP_command10
       
  4745 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0045-0001-Start_command11
       
  4746 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command12
       
  4747 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0045-0001-GetByName_command13
       
  4748 		OUTSTANDING
       
  4749 		COMMAND		rHostResolver1		Close
       
  4750 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0045-0001-Open_command15
       
  4751 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0045-0001-Connect_command16
       
  4752 		OUTSTANDING
       
  4753 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0045-0001-WriteRequest_command17
       
  4754 		OUTSTANDING
       
  4755 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0045-0001-StartFile_command18
       
  4756 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0045-0001-StartDealer_command19
       
  4757 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0045-0001-CheckHSDPA_command20
       
  4758 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0045-0001-RecvOneOrMore_command21
       
  4759 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0045-0001-EndFile_command22
       
  4760 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0045-0001-CalcDnloadStats_command23
       
  4761 		COMMAND		rSocket1		ShutDown
       
  4762 		OUTSTANDING
       
  4763 		COMMAND		rSocket1		Close
       
  4764 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0045-0001-VerifyData_command26
       
  4765 		COMMAND		rConnection1		Stop
       
  4766 		COMMAND		rConnection1		Close
       
  4767 		COMMAND		mobileLine1		Close
       
  4768 		COMMAND		rSocketServ1		Close
       
  4769 		COMMAND		mmCustomAPI1		Close
       
  4770 		COMMAND		rMobilePhone1		Close
       
  4771 		COMMAND		telServer1		Close
       
  4772 	END_TEST_BLOCK
       
  4773 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0045
       
  4774 
       
  4775 
       
  4776 
       
  4777 
       
  4778 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0046
       
  4779 
       
  4780 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0046
       
  4781 //!@SYMAPI
       
  4782 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4783 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4784 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4785 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4786 //!@SYMAuthor			ddamian
       
  4787 //!@SYMCreationDate		9/5/2008 
       
  4788 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4789 //!@SYMTestActions
       
  4790 //!                1.- OpenTelServer
       
  4791 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4792 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4793 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  4794 //!                5.- GetCurrentSystemNetworkModes
       
  4795 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  4796 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4797 //!                8.- ConnectSocketServ
       
  4798 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  4799 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  4800 //!                11.- StartRConnection (Retries = 1)
       
  4801 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4802 //!                13.- GetByName (Address = {URL,address1})
       
  4803 //!                14.- CloseHostResolver
       
  4804 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4805 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4806 //!                17.-WriteRequest (File = /dy/small/0256k.bin; Protocol = HTTP)
       
  4807 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0256k-tc-0056.bin)
       
  4808 //!                19.-StartDealer (DataDealer = 0)
       
  4809 //!                20.-CheckHSDPA (HSDPA = )
       
  4810 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0256k-tc-0056.bin; DataDealer = 0; Duration = -1)
       
  4811 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0256k-tc-0056.bin)
       
  4812 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4813 //!                24.-RSocketShutDown
       
  4814 //!                25.-RSocketClose
       
  4815 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\00256k-tc-0056.bin; Checksum= 0048909c2fb3c2c6818806202e6654ae)
       
  4816 //!                27.-StopRConnection
       
  4817 //!                28.-CloseRConnection
       
  4818 //!                29.-CloseLine
       
  4819 //!                30.-CloseSocketServ
       
  4820 //!                31.- CloseCustomApi
       
  4821 //!                32.- ClosePhone
       
  4822 //!                33.- CloseTelServer
       
  4823 //!@SYMTestStatus		Verified
       
  4824 //!@SYMTestPriority		high
       
  4825 //!@SYMTestExpectedResults
       
  4826 //!                Connect to a GPRS Access Point in WCDMA mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4827 //!@SYMTestType			CIT
       
  4828 
       
  4829 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4830 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4831 		CREATE_OBJECT	RSocket		rSocket1
       
  4832 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4833 		CREATE_OBJECT	RConnection		rConnection1
       
  4834 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4835 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4836 		CREATE_OBJECT	RTelServer		telServer1
       
  4837 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4838 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4839 		COMMAND		telServer1		Connect
       
  4840 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command02
       
  4841 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command03
       
  4842 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0046-0001-SetSystemNetworkMode_command04
       
  4843 		OUTSTANDING
       
  4844 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4845 		OUTSTANDING
       
  4846 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0046-0001-ModeCheck_command06
       
  4847 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command07
       
  4848 		COMMAND		rSocketServ1		Connect
       
  4849 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command09
       
  4850 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0046-0001-SelectOutgoingIAP_command10
       
  4851 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0046-0001-Start_command11
       
  4852 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command12
       
  4853 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0046-0001-GetByName_command13
       
  4854 		OUTSTANDING
       
  4855 		COMMAND		rHostResolver1		Close
       
  4856 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0046-0001-Open_command15
       
  4857 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0046-0001-Connect_command16
       
  4858 		OUTSTANDING
       
  4859 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0046-0001-WriteRequest_command17
       
  4860 		OUTSTANDING
       
  4861 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0046-0001-StartFile_command18
       
  4862 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0046-0001-StartDealer_command19
       
  4863 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0046-0001-CheckHSDPA_command20
       
  4864 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0046-0001-RecvOneOrMore_command21
       
  4865 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0046-0001-EndFile_command22
       
  4866 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0046-0001-CalcDnloadStats_command23
       
  4867 		COMMAND		rSocket1		ShutDown
       
  4868 		OUTSTANDING
       
  4869 		COMMAND		rSocket1		Close
       
  4870 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0046-0001-VerifyData_command26
       
  4871 		COMMAND		rConnection1		Stop
       
  4872 		COMMAND		rConnection1		Close
       
  4873 		COMMAND		mobileLine1		Close
       
  4874 		COMMAND		rSocketServ1		Close
       
  4875 		COMMAND		mmCustomAPI1		Close
       
  4876 		COMMAND		rMobilePhone1		Close
       
  4877 		COMMAND		telServer1		Close
       
  4878 	END_TEST_BLOCK
       
  4879 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0046
       
  4880 
       
  4881 
       
  4882 
       
  4883 
       
  4884 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0047
       
  4885 
       
  4886 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0047
       
  4887 //!@SYMAPI
       
  4888 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4889 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4890 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4891 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4892 //!@SYMAuthor			ddamian
       
  4893 //!@SYMCreationDate		9/5/2008 
       
  4894 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  4895 //!@SYMTestActions
       
  4896 //!                1.- OpenTelServer
       
  4897 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  4898 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  4899 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  4900 //!                5.- GetCurrentSystemNetworkModes
       
  4901 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  4902 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  4903 //!                8.- ConnectSocketServ
       
  4904 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  4905 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  4906 //!                11.- StartRConnection (Retries = 1)
       
  4907 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4908 //!                13.- GetByName (Address = {URL,address1})
       
  4909 //!                14.- CloseHostResolver
       
  4910 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  4911 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  4912 //!                17.-WriteRequest (File = /dy/small/0002k.bin; Protocol = HTTP)
       
  4913 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0002k-tc-0057.bin)
       
  4914 //!                19.-StartDealer (DataDealer = 0)
       
  4915 //!                20.-CheckHSDPA (HSDPA = )
       
  4916 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0002k-tc-0057.bin; DataDealer = 0; Duration = -1)
       
  4917 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0002k-tc-0057.bin)
       
  4918 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  4919 //!                24.-RSocketShutDown
       
  4920 //!                25.-RSocketClose
       
  4921 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0002k-tc-0057.bin; Checksum= 46eb89673fe25a797a7896fd62773df0 )
       
  4922 //!                27.-StopRConnection
       
  4923 //!                28.-CloseRConnection
       
  4924 //!                29.-CloseLine
       
  4925 //!                30.-CloseSocketServ
       
  4926 //!                31.- CloseCustomApi
       
  4927 //!                32.- ClosePhone
       
  4928 //!                33.- CloseTelServer
       
  4929 //!@SYMTestStatus		Verified
       
  4930 //!@SYMTestPriority		high
       
  4931 //!@SYMTestExpectedResults
       
  4932 //!                Connect to a GPRS Access Point in WCDMA mode, download a 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  4933 //!@SYMTestType			CIT
       
  4934 
       
  4935 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  4936 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  4937 		CREATE_OBJECT	RSocket		rSocket1
       
  4938 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  4939 		CREATE_OBJECT	RConnection		rConnection1
       
  4940 		CREATE_OBJECT	DataVerify		dataVerify1
       
  4941 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  4942 		CREATE_OBJECT	RTelServer		telServer1
       
  4943 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  4944 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  4945 		COMMAND		telServer1		Connect
       
  4946 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command02
       
  4947 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command03
       
  4948 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0047-0001-SetSystemNetworkMode_command04
       
  4949 		OUTSTANDING
       
  4950 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  4951 		OUTSTANDING
       
  4952 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0047-0001-ModeCheck_command06
       
  4953 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command07
       
  4954 		COMMAND		rSocketServ1		Connect
       
  4955 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command09
       
  4956 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0047-0001-SelectOutgoingIAP_command10
       
  4957 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0047-0001-Start_command11
       
  4958 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command12
       
  4959 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0047-0001-GetByName_command13
       
  4960 		OUTSTANDING
       
  4961 		COMMAND		rHostResolver1		Close
       
  4962 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0047-0001-Open_command15
       
  4963 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0047-0001-Connect_command16
       
  4964 		OUTSTANDING
       
  4965 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0047-0001-WriteRequest_command17
       
  4966 		OUTSTANDING
       
  4967 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0047-0001-StartFile_command18
       
  4968 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0047-0001-StartDealer_command19
       
  4969 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0047-0001-CheckHSDPA_command20
       
  4970 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0047-0001-RecvOneOrMore_command21
       
  4971 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0047-0001-EndFile_command22
       
  4972 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0047-0001-CalcDnloadStats_command23
       
  4973 		COMMAND		rSocket1		ShutDown
       
  4974 		OUTSTANDING
       
  4975 		COMMAND		rSocket1		Close
       
  4976 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0047-0001-VerifyData_command26
       
  4977 		COMMAND		rConnection1		Stop
       
  4978 		COMMAND		rConnection1		Close
       
  4979 		COMMAND		mobileLine1		Close
       
  4980 		COMMAND		rSocketServ1		Close
       
  4981 		COMMAND		mmCustomAPI1		Close
       
  4982 		COMMAND		rMobilePhone1		Close
       
  4983 		COMMAND		telServer1		Close
       
  4984 	END_TEST_BLOCK
       
  4985 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0047
       
  4986 
       
  4987 
       
  4988 
       
  4989 
       
  4990 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0048
       
  4991 
       
  4992 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0048
       
  4993 //!@SYMAPI
       
  4994 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  4995 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  4996 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  4997 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  4998 //!@SYMAuthor			ddamian
       
  4999 //!@SYMCreationDate		9/5/2008 
       
  5000 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5001 //!@SYMTestActions
       
  5002 //!                1.- OpenTelServer
       
  5003 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5004 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5005 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5006 //!                5.- GetCurrentSystemNetworkModes
       
  5007 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5008 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5009 //!                8.- ConnectSocketServ
       
  5010 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5011 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5012 //!                11.- StartRConnection (Retries = 1)
       
  5013 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5014 //!                13.- GetByName (Address = {URL,address1})
       
  5015 //!                14.- CloseHostResolver
       
  5016 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5017 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5018 //!                17.-WriteRequest (File = /dy/small/0032k.bin; Protocol = HTTP)
       
  5019 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0032k-tc-0058.bin)
       
  5020 //!                19.-StartDealer (DataDealer = 0)
       
  5021 //!                20.-CheckHSDPA (HSDPA = )
       
  5022 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0032k-tc-0058.bin; DataDealer = 0; Duration = -1)
       
  5023 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0032k-tc-0058.bin)
       
  5024 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5025 //!                24.-RSocketShutDown
       
  5026 //!                25.-RSocketClose
       
  5027 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0032k-tc-0058.bin; Checksum= 64fbc234be040b07806ae46ee8e8bdbc)
       
  5028 //!                27.-StopRConnection
       
  5029 //!                28.-CloseRConnection
       
  5030 //!                29.-CloseLine
       
  5031 //!                30.-CloseSocketServ
       
  5032 //!                31.- CloseCustomApi
       
  5033 //!                32.- ClosePhone
       
  5034 //!                33.- CloseTelServer
       
  5035 //!@SYMTestStatus		Verified
       
  5036 //!@SYMTestPriority		high
       
  5037 //!@SYMTestExpectedResults
       
  5038 //!                Connect to a GPRS Access Point in WCDMA mode, download a 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5039 //!@SYMTestType			CIT
       
  5040 
       
  5041 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5042 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5043 		CREATE_OBJECT	RSocket		rSocket1
       
  5044 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5045 		CREATE_OBJECT	RConnection		rConnection1
       
  5046 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5047 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5048 		CREATE_OBJECT	RTelServer		telServer1
       
  5049 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5050 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5051 		COMMAND		telServer1		Connect
       
  5052 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command02
       
  5053 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command03
       
  5054 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0048-0001-SetSystemNetworkMode_command04
       
  5055 		OUTSTANDING
       
  5056 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5057 		OUTSTANDING
       
  5058 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0048-0001-ModeCheck_command06
       
  5059 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command07
       
  5060 		COMMAND		rSocketServ1		Connect
       
  5061 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command09
       
  5062 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0048-0001-SelectOutgoingIAP_command10
       
  5063 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0048-0001-Start_command11
       
  5064 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command12
       
  5065 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0048-0001-GetByName_command13
       
  5066 		OUTSTANDING
       
  5067 		COMMAND		rHostResolver1		Close
       
  5068 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0048-0001-Open_command15
       
  5069 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0048-0001-Connect_command16
       
  5070 		OUTSTANDING
       
  5071 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0048-0001-WriteRequest_command17
       
  5072 		OUTSTANDING
       
  5073 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0048-0001-StartFile_command18
       
  5074 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0048-0001-StartDealer_command19
       
  5075 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0048-0001-CheckHSDPA_command20
       
  5076 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0048-0001-RecvOneOrMore_command21
       
  5077 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0048-0001-EndFile_command22
       
  5078 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0048-0001-CalcDnloadStats_command23
       
  5079 		COMMAND		rSocket1		ShutDown
       
  5080 		OUTSTANDING
       
  5081 		COMMAND		rSocket1		Close
       
  5082 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0048-0001-VerifyData_command26
       
  5083 		COMMAND		rConnection1		Stop
       
  5084 		COMMAND		rConnection1		Close
       
  5085 		COMMAND		mobileLine1		Close
       
  5086 		COMMAND		rSocketServ1		Close
       
  5087 		COMMAND		mmCustomAPI1		Close
       
  5088 		COMMAND		rMobilePhone1		Close
       
  5089 		COMMAND		telServer1		Close
       
  5090 	END_TEST_BLOCK
       
  5091 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0048
       
  5092 
       
  5093 
       
  5094 
       
  5095 
       
  5096 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0049
       
  5097 
       
  5098 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0049
       
  5099 //!@SYMAPI
       
  5100 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5101 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5102 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5103 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5104 //!@SYMAuthor			ddamian
       
  5105 //!@SYMCreationDate		9/5/2008 
       
  5106 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5107 //!@SYMTestActions
       
  5108 //!                1.- OpenTelServer
       
  5109 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5110 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5111 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5112 //!                5.- GetCurrentSystemNetworkModes
       
  5113 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5114 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5115 //!                8.- ConnectSocketServ
       
  5116 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5117 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5118 //!                11.- StartRConnection (Retries = 1)
       
  5119 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5120 //!                13.- GetByName (Address = {URL,address1})
       
  5121 //!                14.- CloseHostResolver
       
  5122 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5123 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5124 //!                17.-WriteRequest (File = /dy/big/3mb-1.txt; Protocol = HTTP)
       
  5125 //!                18.-StartFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0059.txt)
       
  5126 //!                19.-StartDealer (DataDealer = 0)
       
  5127 //!                20.-CheckHSDPA (HSDPA = )
       
  5128 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\3mb-1-tc-0059.txt; DataDealer = 0; Duration = -1)
       
  5129 //!                22.-EndFile (Save = {DRIVES,SysDrive}\3mb-1-tc-0059.txt)
       
  5130 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5131 //!                24.-RSocketShutDown
       
  5132 //!                25.-RSocketClose
       
  5133 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\3mb-1-tc-0059.txt; Checksum = 7fae292c77026cbb5a78a7da499032c5 )
       
  5134 //!                27.-StopRConnection
       
  5135 //!                28.-CloseRConnection
       
  5136 //!                29.-CloseLine
       
  5137 //!                30.-CloseSocketServ
       
  5138 //!                31.- CloseCustomApi
       
  5139 //!                32.- ClosePhone
       
  5140 //!                33.- CloseTelServer
       
  5141 //!@SYMTestStatus		Verified
       
  5142 //!@SYMTestPriority		high
       
  5143 //!@SYMTestExpectedResults
       
  5144 //!                Connect to a GPRS Access Point in WCDMA mode, download a 3MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5145 //!@SYMTestType			CIT
       
  5146 
       
  5147 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5148 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5149 		CREATE_OBJECT	RSocket		rSocket1
       
  5150 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5151 		CREATE_OBJECT	RConnection		rConnection1
       
  5152 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5153 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5154 		CREATE_OBJECT	RTelServer		telServer1
       
  5155 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5156 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5157 		COMMAND		telServer1		Connect
       
  5158 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command02
       
  5159 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command03
       
  5160 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0049-0001-SetSystemNetworkMode_command04
       
  5161 		OUTSTANDING
       
  5162 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5163 		OUTSTANDING
       
  5164 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0049-0001-ModeCheck_command06
       
  5165 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command07
       
  5166 		COMMAND		rSocketServ1		Connect
       
  5167 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command09
       
  5168 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0049-0001-SelectOutgoingIAP_command10
       
  5169 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0049-0001-Start_command11
       
  5170 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command12
       
  5171 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0049-0001-GetByName_command13
       
  5172 		OUTSTANDING
       
  5173 		COMMAND		rHostResolver1		Close
       
  5174 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0049-0001-Open_command15
       
  5175 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0049-0001-Connect_command16
       
  5176 		OUTSTANDING
       
  5177 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0049-0001-WriteRequest_command17
       
  5178 		OUTSTANDING
       
  5179 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0049-0001-StartFile_command18
       
  5180 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0049-0001-StartDealer_command19
       
  5181 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0049-0001-CheckHSDPA_command20
       
  5182 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0049-0001-RecvOneOrMore_command21
       
  5183 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0049-0001-EndFile_command22
       
  5184 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0049-0001-CalcDnloadStats_command23
       
  5185 		COMMAND		rSocket1		ShutDown
       
  5186 		OUTSTANDING
       
  5187 		COMMAND		rSocket1		Close
       
  5188 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0049-0001-VerifyData_command26
       
  5189 		COMMAND		rConnection1		Stop
       
  5190 		COMMAND		rConnection1		Close
       
  5191 		COMMAND		mobileLine1		Close
       
  5192 		COMMAND		rSocketServ1		Close
       
  5193 		COMMAND		mmCustomAPI1		Close
       
  5194 		COMMAND		rMobilePhone1		Close
       
  5195 		COMMAND		telServer1		Close
       
  5196 	END_TEST_BLOCK
       
  5197 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0049
       
  5198 
       
  5199 
       
  5200 
       
  5201 
       
  5202 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0050
       
  5203 
       
  5204 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0050
       
  5205 //!@SYMAPI
       
  5206 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5207 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5208 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5209 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5210 //!@SYMAuthor			ddamian
       
  5211 //!@SYMCreationDate		9/5/2008 
       
  5212 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5213 //!@SYMTestActions
       
  5214 //!                1.- OpenTelServer
       
  5215 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5216 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5217 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5218 //!                5.- GetCurrentSystemNetworkModes
       
  5219 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5220 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5221 //!                8.- ConnectSocketServ
       
  5222 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5223 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5224 //!                11.- StartRConnection (Retries = 1)
       
  5225 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5226 //!                13.- GetByName (Address = {URL,address1})
       
  5227 //!                14.- CloseHostResolver
       
  5228 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5229 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5230 //!                17.-WriteRequest (File = /dy/small/0004k.bin; Protocol = HTTP)
       
  5231 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0004k-tc-0060.bin)
       
  5232 //!                19.-StartDealer (DataDealer = 0)
       
  5233 //!                20.-CheckHSDPA (HSDPA = )
       
  5234 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0004k-tc-0060.bin; DataDealer = 0; Duration = -1)
       
  5235 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0004k-tc-0060.bin)
       
  5236 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5237 //!                24.-RSocketShutDown
       
  5238 //!                25.-RSocketClose
       
  5239 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0004k-tc-0060.bin; Checksum= bbc5e9b08e80626178ce7df5a50a1395)
       
  5240 //!                27.-StopRConnection
       
  5241 //!                28.-CloseRConnection
       
  5242 //!                29.-CloseLine
       
  5243 //!                30.-CloseSocketServ
       
  5244 //!                31.- CloseCustomApi
       
  5245 //!                32.- ClosePhone
       
  5246 //!                33.- CloseTelServer
       
  5247 //!@SYMTestStatus		Verified
       
  5248 //!@SYMTestPriority		high
       
  5249 //!@SYMTestExpectedResults
       
  5250 //!                Connect to a GPRS Access Point in WCDMA mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5251 //!@SYMTestType			CIT
       
  5252 
       
  5253 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5254 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5255 		CREATE_OBJECT	RSocket		rSocket1
       
  5256 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5257 		CREATE_OBJECT	RConnection		rConnection1
       
  5258 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5259 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5260 		CREATE_OBJECT	RTelServer		telServer1
       
  5261 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5262 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5263 		COMMAND		telServer1		Connect
       
  5264 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command02
       
  5265 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command03
       
  5266 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0050-0001-SetSystemNetworkMode_command04
       
  5267 		OUTSTANDING
       
  5268 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5269 		OUTSTANDING
       
  5270 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0050-0001-ModeCheck_command06
       
  5271 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command07
       
  5272 		COMMAND		rSocketServ1		Connect
       
  5273 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command09
       
  5274 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0050-0001-SelectOutgoingIAP_command10
       
  5275 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0050-0001-Start_command11
       
  5276 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command12
       
  5277 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0050-0001-GetByName_command13
       
  5278 		OUTSTANDING
       
  5279 		COMMAND		rHostResolver1		Close
       
  5280 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0050-0001-Open_command15
       
  5281 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0050-0001-Connect_command16
       
  5282 		OUTSTANDING
       
  5283 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0050-0001-WriteRequest_command17
       
  5284 		OUTSTANDING
       
  5285 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0050-0001-StartFile_command18
       
  5286 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0050-0001-StartDealer_command19
       
  5287 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0050-0001-CheckHSDPA_command20
       
  5288 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0050-0001-RecvOneOrMore_command21
       
  5289 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0050-0001-EndFile_command22
       
  5290 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0050-0001-CalcDnloadStats_command23
       
  5291 		COMMAND		rSocket1		ShutDown
       
  5292 		OUTSTANDING
       
  5293 		COMMAND		rSocket1		Close
       
  5294 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0050-0001-VerifyData_command26
       
  5295 		COMMAND		rConnection1		Stop
       
  5296 		COMMAND		rConnection1		Close
       
  5297 		COMMAND		mobileLine1		Close
       
  5298 		COMMAND		rSocketServ1		Close
       
  5299 		COMMAND		mmCustomAPI1		Close
       
  5300 		COMMAND		rMobilePhone1		Close
       
  5301 		COMMAND		telServer1		Close
       
  5302 	END_TEST_BLOCK
       
  5303 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0050
       
  5304 
       
  5305 
       
  5306 
       
  5307 
       
  5308 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0051
       
  5309 
       
  5310 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0051
       
  5311 //!@SYMAPI
       
  5312 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5313 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5314 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5315 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5316 //!@SYMAuthor			ddamian
       
  5317 //!@SYMCreationDate		9/5/2008 
       
  5318 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5319 //!@SYMTestActions
       
  5320 //!                1.- OpenTelServer
       
  5321 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5322 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5323 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5324 //!                5.- GetCurrentSystemNetworkModes
       
  5325 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5326 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5327 //!                8.- ConnectSocketServ
       
  5328 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5329 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5330 //!                11.- StartRConnection (Retries = 1)
       
  5331 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5332 //!                13.- GetByName (Address = {URL,address1})
       
  5333 //!                14.- CloseHostResolver
       
  5334 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5335 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5336 //!                17.-WriteRequest (File = /dy/small/0512k.bin; Protocol = HTTP)
       
  5337 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0512k-tc-0061.bin)
       
  5338 //!                19.-StartDealer (DataDealer = 0)
       
  5339 //!                20.-CheckHSDPA (HSDPA = )
       
  5340 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0512k-tc-0061.bin; DataDealer = 0; Duration = -1)
       
  5341 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0512k-tc-0061.bin)
       
  5342 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5343 //!                24.-RSocketShutDown
       
  5344 //!                25.-RSocketClose
       
  5345 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0512k-tc-0061.bin; Checksum=e27c9e563d0e2752b813f6182934b0f4)
       
  5346 //!                27.-StopRConnection
       
  5347 //!                28.-CloseRConnection
       
  5348 //!                29.-CloseLine
       
  5349 //!                30.-CloseSocketServ
       
  5350 //!                31.- CloseCustomApi
       
  5351 //!                32.- ClosePhone
       
  5352 //!                33.- CloseTelServer
       
  5353 //!@SYMTestStatus		Verified
       
  5354 //!@SYMTestPriority		high
       
  5355 //!@SYMTestExpectedResults
       
  5356 //!                Connect to a GPRS Access Point in WCDMA mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5357 //!@SYMTestType			CIT
       
  5358 
       
  5359 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5360 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5361 		CREATE_OBJECT	RSocket		rSocket1
       
  5362 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5363 		CREATE_OBJECT	RConnection		rConnection1
       
  5364 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5365 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5366 		CREATE_OBJECT	RTelServer		telServer1
       
  5367 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5368 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5369 		COMMAND		telServer1		Connect
       
  5370 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command02
       
  5371 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command03
       
  5372 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0051-0001-SetSystemNetworkMode_command04
       
  5373 		OUTSTANDING
       
  5374 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5375 		OUTSTANDING
       
  5376 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0051-0001-ModeCheck_command06
       
  5377 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command07
       
  5378 		COMMAND		rSocketServ1		Connect
       
  5379 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command09
       
  5380 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0051-0001-SelectOutgoingIAP_command10
       
  5381 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0051-0001-Start_command11
       
  5382 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command12
       
  5383 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0051-0001-GetByName_command13
       
  5384 		OUTSTANDING
       
  5385 		COMMAND		rHostResolver1		Close
       
  5386 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0051-0001-Open_command15
       
  5387 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0051-0001-Connect_command16
       
  5388 		OUTSTANDING
       
  5389 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0051-0001-WriteRequest_command17
       
  5390 		OUTSTANDING
       
  5391 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0051-0001-StartFile_command18
       
  5392 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0051-0001-StartDealer_command19
       
  5393 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0051-0001-CheckHSDPA_command20
       
  5394 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0051-0001-RecvOneOrMore_command21
       
  5395 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0051-0001-EndFile_command22
       
  5396 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0051-0001-CalcDnloadStats_command23
       
  5397 		COMMAND		rSocket1		ShutDown
       
  5398 		OUTSTANDING
       
  5399 		COMMAND		rSocket1		Close
       
  5400 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0051-0001-VerifyData_command26
       
  5401 		COMMAND		rConnection1		Stop
       
  5402 		COMMAND		rConnection1		Close
       
  5403 		COMMAND		mobileLine1		Close
       
  5404 		COMMAND		rSocketServ1		Close
       
  5405 		COMMAND		mmCustomAPI1		Close
       
  5406 		COMMAND		rMobilePhone1		Close
       
  5407 		COMMAND		telServer1		Close
       
  5408 	END_TEST_BLOCK
       
  5409 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0051
       
  5410 
       
  5411 
       
  5412 
       
  5413 
       
  5414 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0052
       
  5415 
       
  5416 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0052
       
  5417 //!@SYMAPI
       
  5418 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5419 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5420 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5421 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5422 //!@SYMAuthor			ddamian
       
  5423 //!@SYMCreationDate		9/5/2008 
       
  5424 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5425 //!@SYMTestActions
       
  5426 //!                1.- OpenTelServer
       
  5427 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5428 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5429 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5430 //!                5.- GetCurrentSystemNetworkModes
       
  5431 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5432 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5433 //!                8.- ConnectSocketServ
       
  5434 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5435 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5436 //!                11.- StartRConnection (Retries = 1)
       
  5437 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5438 //!                13.- GetByName (Address = {URL,address1})
       
  5439 //!                14.- CloseHostResolver
       
  5440 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5441 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5442 //!                17.-WriteRequest (File = /dy/small/0064k.bin; Protocol = HTTP)
       
  5443 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0064k-tc-0062.bin)
       
  5444 //!                19.-StartDealer (DataDealer = 0)
       
  5445 //!                20.-CheckHSDPA (HSDPA = )
       
  5446 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0064k-tc-0062.bin; DataDealer = 0; Duration = -1)
       
  5447 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0064k-tc-0062.bin)
       
  5448 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5449 //!                24.-RSocketShutDown
       
  5450 //!                25.-RSocketClose
       
  5451 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0064k-tc-0062.bin; Checksum=d26a232d0279a9cb34529a9a05125f4a)
       
  5452 //!                27.-StopRConnection
       
  5453 //!                28.-CloseRConnection
       
  5454 //!                29.-CloseLine
       
  5455 //!                30.-CloseSocketServ
       
  5456 //!                31.- CloseCustomApi
       
  5457 //!                32.- ClosePhone
       
  5458 //!                33.- CloseTelServer
       
  5459 //!@SYMTestStatus		Verified
       
  5460 //!@SYMTestPriority		high
       
  5461 //!@SYMTestExpectedResults
       
  5462 //!                Connect to a GPRS Access Point in WCDMA mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5463 //!@SYMTestType			CIT
       
  5464 
       
  5465 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5466 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5467 		CREATE_OBJECT	RSocket		rSocket1
       
  5468 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5469 		CREATE_OBJECT	RConnection		rConnection1
       
  5470 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5471 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5472 		CREATE_OBJECT	RTelServer		telServer1
       
  5473 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5474 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5475 		COMMAND		telServer1		Connect
       
  5476 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command02
       
  5477 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command03
       
  5478 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0052-0001-SetSystemNetworkMode_command04
       
  5479 		OUTSTANDING
       
  5480 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5481 		OUTSTANDING
       
  5482 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0052-0001-ModeCheck_command06
       
  5483 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command07
       
  5484 		COMMAND		rSocketServ1		Connect
       
  5485 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command09
       
  5486 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0052-0001-SelectOutgoingIAP_command10
       
  5487 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0052-0001-Start_command11
       
  5488 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command12
       
  5489 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0052-0001-GetByName_command13
       
  5490 		OUTSTANDING
       
  5491 		COMMAND		rHostResolver1		Close
       
  5492 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0052-0001-Open_command15
       
  5493 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0052-0001-Connect_command16
       
  5494 		OUTSTANDING
       
  5495 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0052-0001-WriteRequest_command17
       
  5496 		OUTSTANDING
       
  5497 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0052-0001-StartFile_command18
       
  5498 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0052-0001-StartDealer_command19
       
  5499 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0052-0001-CheckHSDPA_command20
       
  5500 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0052-0001-RecvOneOrMore_command21
       
  5501 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0052-0001-EndFile_command22
       
  5502 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0052-0001-CalcDnloadStats_command23
       
  5503 		COMMAND		rSocket1		ShutDown
       
  5504 		OUTSTANDING
       
  5505 		COMMAND		rSocket1		Close
       
  5506 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0052-0001-VerifyData_command26
       
  5507 		COMMAND		rConnection1		Stop
       
  5508 		COMMAND		rConnection1		Close
       
  5509 		COMMAND		mobileLine1		Close
       
  5510 		COMMAND		rSocketServ1		Close
       
  5511 		COMMAND		mmCustomAPI1		Close
       
  5512 		COMMAND		rMobilePhone1		Close
       
  5513 		COMMAND		telServer1		Close
       
  5514 	END_TEST_BLOCK
       
  5515 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0052
       
  5516 
       
  5517 
       
  5518 
       
  5519 
       
  5520 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0053
       
  5521 
       
  5522 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0053
       
  5523 //!@SYMAPI
       
  5524 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5525 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5526 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5527 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5528 //!@SYMAuthor			ddamian
       
  5529 //!@SYMCreationDate		9/5/2008 
       
  5530 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5531 //!@SYMTestActions
       
  5532 //!                1.- OpenTelServer
       
  5533 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5534 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5535 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5536 //!                5.- GetCurrentSystemNetworkModes
       
  5537 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5538 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5539 //!                8.- ConnectSocketServ
       
  5540 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5541 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5542 //!                11.- StartRConnection (Retries = 1)
       
  5543 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5544 //!                13.- GetByName (Address = {URL,address1})
       
  5545 //!                14.- CloseHostResolver
       
  5546 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5547 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5548 //!                17.-WriteRequest (File = /dy/small/0008k.bin; Protocol = HTTP)
       
  5549 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0008k-tc-0063.bin)
       
  5550 //!                19.-StartDealer (DataDealer = 0)
       
  5551 //!                20.-CheckHSDPA (HSDPA = )
       
  5552 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0008k-tc-0063.bin; DataDealer = 0; Duration = -1)
       
  5553 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0008k-tc-0063.bin)
       
  5554 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5555 //!                24.-RSocketShutDown
       
  5556 //!                25.-RSocketClose
       
  5557 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0008k-tc-0063.bin; Checksum=a69a721002a248215c0e46d992583889)
       
  5558 //!                27.-StopRConnection
       
  5559 //!                28.-CloseRConnection
       
  5560 //!                29.-CloseLine
       
  5561 //!                30.-CloseSocketServ
       
  5562 //!                31.- CloseCustomApi
       
  5563 //!                32.- ClosePhone
       
  5564 //!                33.- CloseTelServer
       
  5565 //!@SYMTestStatus		Verified
       
  5566 //!@SYMTestPriority		high
       
  5567 //!@SYMTestExpectedResults
       
  5568 //!                Connect to a GPRS Access Point in WCDMA mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5569 //!@SYMTestType			CIT
       
  5570 
       
  5571 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5572 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5573 		CREATE_OBJECT	RSocket		rSocket1
       
  5574 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5575 		CREATE_OBJECT	RConnection		rConnection1
       
  5576 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5577 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5578 		CREATE_OBJECT	RTelServer		telServer1
       
  5579 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5580 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5581 		COMMAND		telServer1		Connect
       
  5582 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command02
       
  5583 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command03
       
  5584 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0053-0001-SetSystemNetworkMode_command04
       
  5585 		OUTSTANDING
       
  5586 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5587 		OUTSTANDING
       
  5588 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0053-0001-ModeCheck_command06
       
  5589 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command07
       
  5590 		COMMAND		rSocketServ1		Connect
       
  5591 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command09
       
  5592 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0053-0001-SelectOutgoingIAP_command10
       
  5593 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0053-0001-Start_command11
       
  5594 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command12
       
  5595 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0053-0001-GetByName_command13
       
  5596 		OUTSTANDING
       
  5597 		COMMAND		rHostResolver1		Close
       
  5598 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0053-0001-Open_command15
       
  5599 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0053-0001-Connect_command16
       
  5600 		OUTSTANDING
       
  5601 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0053-0001-WriteRequest_command17
       
  5602 		OUTSTANDING
       
  5603 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0053-0001-StartFile_command18
       
  5604 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0053-0001-StartDealer_command19
       
  5605 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0053-0001-CheckHSDPA_command20
       
  5606 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0053-0001-RecvOneOrMore_command21
       
  5607 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0053-0001-EndFile_command22
       
  5608 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0053-0001-CalcDnloadStats_command23
       
  5609 		COMMAND		rSocket1		ShutDown
       
  5610 		OUTSTANDING
       
  5611 		COMMAND		rSocket1		Close
       
  5612 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0053-0001-VerifyData_command26
       
  5613 		COMMAND		rConnection1		Stop
       
  5614 		COMMAND		rConnection1		Close
       
  5615 		COMMAND		mobileLine1		Close
       
  5616 		COMMAND		rSocketServ1		Close
       
  5617 		COMMAND		mmCustomAPI1		Close
       
  5618 		COMMAND		rMobilePhone1		Close
       
  5619 		COMMAND		telServer1		Close
       
  5620 	END_TEST_BLOCK
       
  5621 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0053
       
  5622 
       
  5623 
       
  5624 
       
  5625 
       
  5626 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0054
       
  5627 
       
  5628 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0054
       
  5629 //!@SYMAPI
       
  5630 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5631 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5632 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5633 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5634 //!@SYMAuthor			ddamian
       
  5635 //!@SYMCreationDate		9/5/2008 
       
  5636 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download a 10MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in memory card.
       
  5637 //!@SYMTestActions
       
  5638 //!                1.- OpenTelServer
       
  5639 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5640 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5641 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5642 //!                5.- GetCurrentSystemNetworkModes
       
  5643 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5644 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5645 //!                8.- ConnectSocketServ
       
  5646 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5647 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5648 //!                11.- StartRConnection (Retries = 1)
       
  5649 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5650 //!                13.- GetByName (Address = {URL,address1})
       
  5651 //!                14.- CloseHostResolver
       
  5652 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5653 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5654 //!                17.-WriteRequest (File = /dy/big/10MB.bin; Protocol = HTTP)
       
  5655 //!                18.-StartFile (Save = {DRIVES,MMCDrive}\10MB-tc-0064.bin)
       
  5656 //!                19.-StartDealer (DataDealer = 0)
       
  5657 //!                20.-CheckHSDPA (HSDPA = )
       
  5658 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\10MB-tc-0064.bin; DataDealer = 0; Duration = -1)
       
  5659 //!                22.-EndFile (Save = {DRIVES,MMCDrive}\10MB-tc-0064.bin)
       
  5660 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5661 //!                24.-RSocketShutDown
       
  5662 //!                25.-RSocketClose
       
  5663 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,MMCDrive}\10MB-tc-0064.bin; Checksum=7045203f899299cc906e9bba59d47a04)
       
  5664 //!                27.-StopRConnection
       
  5665 //!                28.-CloseRConnection
       
  5666 //!                29.-CloseLine
       
  5667 //!                30.-CloseSocketServ
       
  5668 //!                31.- CloseCustomApi
       
  5669 //!                32.- ClosePhone
       
  5670 //!                33.- CloseTelServer
       
  5671 //!@SYMTestStatus		Verified
       
  5672 //!@SYMTestPriority		high
       
  5673 //!@SYMTestExpectedResults
       
  5674 //!                Connect to a GPRS Access Point in WCDMA mode, download a 10MB file using HTTP protocol and verify received file integrity using checksum. File will be saved in memory card. Execution will return no error where access point available.
       
  5675 //!@SYMTestType			CIT
       
  5676 
       
  5677 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5678 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5679 		CREATE_OBJECT	RSocket		rSocket1
       
  5680 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5681 		CREATE_OBJECT	RConnection		rConnection1
       
  5682 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5683 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5684 		CREATE_OBJECT	RTelServer		telServer1
       
  5685 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5686 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5687 		COMMAND		telServer1		Connect
       
  5688 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command02
       
  5689 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command03
       
  5690 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0054-0001-SetSystemNetworkMode_command04
       
  5691 		OUTSTANDING
       
  5692 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5693 		OUTSTANDING
       
  5694 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0054-0001-ModeCheck_command06
       
  5695 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command07
       
  5696 		COMMAND		rSocketServ1		Connect
       
  5697 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command09
       
  5698 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0054-0001-SelectOutgoingIAP_command10
       
  5699 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0054-0001-Start_command11
       
  5700 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command12
       
  5701 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0054-0001-GetByName_command13
       
  5702 		OUTSTANDING
       
  5703 		COMMAND		rHostResolver1		Close
       
  5704 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0054-0001-Open_command15
       
  5705 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0054-0001-Connect_command16
       
  5706 		OUTSTANDING
       
  5707 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0054-0001-WriteRequest_command17
       
  5708 		OUTSTANDING
       
  5709 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0054-0001-StartFile_command18
       
  5710 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0054-0001-StartDealer_command19
       
  5711 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0054-0001-CheckHSDPA_command20
       
  5712 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0054-0001-RecvOneOrMore_command21
       
  5713 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0054-0001-EndFile_command22
       
  5714 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0054-0001-CalcDnloadStats_command23
       
  5715 		COMMAND		rSocket1		ShutDown
       
  5716 		OUTSTANDING
       
  5717 		COMMAND		rSocket1		Close
       
  5718 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0054-0001-VerifyData_command26
       
  5719 		COMMAND		rConnection1		Stop
       
  5720 		COMMAND		rConnection1		Close
       
  5721 		COMMAND		mobileLine1		Close
       
  5722 		COMMAND		rSocketServ1		Close
       
  5723 		COMMAND		mmCustomAPI1		Close
       
  5724 		COMMAND		rMobilePhone1		Close
       
  5725 		COMMAND		telServer1		Close
       
  5726 	END_TEST_BLOCK
       
  5727 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0054
       
  5728 
       
  5729 
       
  5730 
       
  5731 
       
  5732 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0055
       
  5733 
       
  5734 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0055
       
  5735 //!@SYMAPI
       
  5736 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5737 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5738 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5739 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5740 //!@SYMAuthor			ddamian
       
  5741 //!@SYMCreationDate		9/5/2008 
       
  5742 //!@SYMTestCaseDesc		Connect to a GPRS Access Point in WCDMA mode, download file using HTTP protocol and verify received file integrity using checksum. File will be saved in memory card.
       
  5743 //!@SYMTestActions
       
  5744 //!                1.- OpenTelServer
       
  5745 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5746 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5747 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5748 //!                5.- GetCurrentSystemNetworkModes
       
  5749 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5750 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5751 //!                8.- ConnectSocketServ
       
  5752 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  5753 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  5754 //!                11.- StartRConnection (Retries = 1)
       
  5755 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5756 //!                13.- GetByName (Address = {URL,address1})
       
  5757 //!                14.- CloseHostResolver
       
  5758 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5759 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5760 //!                17.-WriteRequest (File = /dy/small/0000k.bin; Protocol = HTTP)
       
  5761 //!                18.-StartFile (Save = {DRIVES,MMCDrive}\0000k-tc-0065.bin)
       
  5762 //!                19.-StartDealer (DataDealer = 0)
       
  5763 //!                20.-CheckHSDPA (HSDPA = )
       
  5764 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,MMCDrive}\0000k-tc-0065.bin; DataDealer = 0; Duration = -1)
       
  5765 //!                22.-EndFile (Save = {DRIVES,MMCDrive}\0000k-tc-0065.bin)
       
  5766 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5767 //!                24.-RSocketShutDown
       
  5768 //!                25.-RSocketClose
       
  5769 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,MMCDrive}\0000k-tc-0065.bin; Checksum=d41d8cd98f00b204e9800998ecf8427e)
       
  5770 //!                27.-StopRConnection
       
  5771 //!                28.-CloseRConnection
       
  5772 //!                29.-CloseLine
       
  5773 //!                30.-CloseSocketServ
       
  5774 //!                31.- CloseCustomApi
       
  5775 //!                32.- ClosePhone
       
  5776 //!                33.- CloseTelServer
       
  5777 //!@SYMTestStatus		Verified
       
  5778 //!@SYMTestPriority		high
       
  5779 //!@SYMTestExpectedResults
       
  5780 //!                Connect to a GPRS Access Point in WCDMA mode, download file using HTTP protocol and verify received file integrity using checksum. File will be saved in memory card. Execution will return no error where access point available.
       
  5781 //!@SYMTestType			CIT
       
  5782 
       
  5783 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5784 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5785 		CREATE_OBJECT	RSocket		rSocket1
       
  5786 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5787 		CREATE_OBJECT	RConnection		rConnection1
       
  5788 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5789 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5790 		CREATE_OBJECT	RTelServer		telServer1
       
  5791 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5792 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5793 		COMMAND		telServer1		Connect
       
  5794 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command02
       
  5795 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command03
       
  5796 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0055-0001-SetSystemNetworkMode_command04
       
  5797 		OUTSTANDING
       
  5798 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5799 		OUTSTANDING
       
  5800 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0055-0001-ModeCheck_command06
       
  5801 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command07
       
  5802 		COMMAND		rSocketServ1		Connect
       
  5803 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command09
       
  5804 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0055-0001-SelectOutgoingIAP_command10
       
  5805 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0055-0001-Start_command11
       
  5806 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command12
       
  5807 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0055-0001-GetByName_command13
       
  5808 		OUTSTANDING
       
  5809 		COMMAND		rHostResolver1		Close
       
  5810 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0055-0001-Open_command15
       
  5811 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0055-0001-Connect_command16
       
  5812 		OUTSTANDING
       
  5813 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0055-0001-WriteRequest_command17
       
  5814 		OUTSTANDING
       
  5815 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0055-0001-StartFile_command18
       
  5816 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0055-0001-StartDealer_command19
       
  5817 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0055-0001-CheckHSDPA_command20
       
  5818 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0055-0001-RecvOneOrMore_command21
       
  5819 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0055-0001-EndFile_command22
       
  5820 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0055-0001-CalcDnloadStats_command23
       
  5821 		COMMAND		rSocket1		ShutDown
       
  5822 		OUTSTANDING
       
  5823 		COMMAND		rSocket1		Close
       
  5824 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0055-0001-VerifyData_command26
       
  5825 		COMMAND		rConnection1		Stop
       
  5826 		COMMAND		rConnection1		Close
       
  5827 		COMMAND		mobileLine1		Close
       
  5828 		COMMAND		rSocketServ1		Close
       
  5829 		COMMAND		mmCustomAPI1		Close
       
  5830 		COMMAND		rMobilePhone1		Close
       
  5831 		COMMAND		telServer1		Close
       
  5832 	END_TEST_BLOCK
       
  5833 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0055
       
  5834 
       
  5835 
       
  5836 
       
  5837 
       
  5838 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0056
       
  5839 
       
  5840 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0056
       
  5841 //!@SYMAPI
       
  5842 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5843 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5844 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5845 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5846 //!@SYMAuthor			ddamian
       
  5847 //!@SYMCreationDate		9/5/2008 
       
  5848 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5849 //!@SYMTestActions
       
  5850 //!                1.- OpenTelServer
       
  5851 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5852 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5853 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5854 //!                5.- GetCurrentSystemNetworkModes
       
  5855 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5856 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5857 //!                8.- ConnectSocketServ
       
  5858 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  5859 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  5860 //!                11.- StartRConnection (Retries = 1)
       
  5861 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5862 //!                13.- GetByName (Address = {URL,address1})
       
  5863 //!                14.- CloseHostResolver
       
  5864 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5865 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5866 //!                17.-WriteRequest (File = /dy/small/0001k.bin; Protocol = HTTP)
       
  5867 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0001k-tc-0077.bin)
       
  5868 //!                19.-StartDealer (DataDealer = 0)
       
  5869 //!                20.-CheckHSDPA (HSDPA = )
       
  5870 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0001k-tc-0077.bin; DataDealer = 0; Duration = -1)
       
  5871 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0001k-tc-0077.bin)
       
  5872 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5873 //!                24.-RSocketShutDown
       
  5874 //!                25.-RSocketClose
       
  5875 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0001k-tc-0077.bin; Checksum=710ecf58249a2cf783d6ecf528e1ba1a)
       
  5876 //!                27.-StopRConnection
       
  5877 //!                28.-CloseRConnection
       
  5878 //!                29.-CloseLine
       
  5879 //!                30.-CloseSocketServ
       
  5880 //!                31.- CloseCustomApi
       
  5881 //!                32.- ClosePhone
       
  5882 //!                33.- CloseTelServer
       
  5883 //!@SYMTestStatus		Implemented
       
  5884 //!@SYMTestPriority		high
       
  5885 //!@SYMTestExpectedResults
       
  5886 //!                Connect to a CSD Access Point in WCDMA mode, download a 1kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5887 //!@SYMTestType			CIT
       
  5888 
       
  5889 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5890 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5891 		CREATE_OBJECT	RSocket		rSocket1
       
  5892 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5893 		CREATE_OBJECT	RConnection		rConnection1
       
  5894 		CREATE_OBJECT	DataVerify		dataVerify1
       
  5895 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  5896 		CREATE_OBJECT	RTelServer		telServer1
       
  5897 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  5898 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  5899 		COMMAND		telServer1		Connect
       
  5900 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command02
       
  5901 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command03
       
  5902 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0056-0001-SetSystemNetworkMode_command04
       
  5903 		OUTSTANDING
       
  5904 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  5905 		OUTSTANDING
       
  5906 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0056-0001-ModeCheck_command06
       
  5907 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command07
       
  5908 		COMMAND		rSocketServ1		Connect
       
  5909 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command09
       
  5910 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0056-0001-SelectOutgoingIAP_command10
       
  5911 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0056-0001-Start_command11
       
  5912 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command12
       
  5913 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0056-0001-GetByName_command13
       
  5914 		OUTSTANDING
       
  5915 		COMMAND		rHostResolver1		Close
       
  5916 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0056-0001-Open_command15
       
  5917 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0056-0001-Connect_command16
       
  5918 		OUTSTANDING
       
  5919 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0056-0001-WriteRequest_command17
       
  5920 		OUTSTANDING
       
  5921 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0056-0001-StartFile_command18
       
  5922 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0056-0001-StartDealer_command19
       
  5923 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0056-0001-CheckHSDPA_command20
       
  5924 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0056-0001-RecvOneOrMore_command21
       
  5925 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0056-0001-EndFile_command22
       
  5926 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0056-0001-CalcDnloadStats_command23
       
  5927 		COMMAND		rSocket1		ShutDown
       
  5928 		OUTSTANDING
       
  5929 		COMMAND		rSocket1		Close
       
  5930 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0056-0001-VerifyData_command26
       
  5931 		COMMAND		rConnection1		Stop
       
  5932 		COMMAND		rConnection1		Close
       
  5933 		COMMAND		mobileLine1		Close
       
  5934 		COMMAND		rSocketServ1		Close
       
  5935 		COMMAND		mmCustomAPI1		Close
       
  5936 		COMMAND		rMobilePhone1		Close
       
  5937 		COMMAND		telServer1		Close
       
  5938 	END_TEST_BLOCK
       
  5939 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0056
       
  5940 
       
  5941 
       
  5942 
       
  5943 
       
  5944 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0057
       
  5945 
       
  5946 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0057
       
  5947 //!@SYMAPI
       
  5948 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  5949 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  5950 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  5951 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  5952 //!@SYMAuthor			ddamian
       
  5953 //!@SYMCreationDate		9/5/2008 
       
  5954 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  5955 //!@SYMTestActions
       
  5956 //!                1.- OpenTelServer
       
  5957 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  5958 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  5959 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  5960 //!                5.- GetCurrentSystemNetworkModes
       
  5961 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  5962 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  5963 //!                8.- ConnectSocketServ
       
  5964 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  5965 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  5966 //!                11.- StartRConnection (Retries = 1)
       
  5967 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5968 //!                13.- GetByName (Address = {URL,address1})
       
  5969 //!                14.- CloseHostResolver
       
  5970 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  5971 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  5972 //!                17.-WriteRequest (File = /dy/small/0008k.bin; Protocol = HTTP)
       
  5973 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0008k-tc-0078.bin)
       
  5974 //!                19.-StartDealer (DataDealer = 0)
       
  5975 //!                20.-CheckHSDPA (HSDPA = )
       
  5976 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0008k-tc-0078.bin; DataDealer = 0; Duration = -1)
       
  5977 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0008k-tc-0078.bin)
       
  5978 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  5979 //!                24.-RSocketShutDown
       
  5980 //!                25.-RSocketClose
       
  5981 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0008k-tc-0078.bin; Checksum=a69a721002a248215c0e46d992583889)
       
  5982 //!                27.-StopRConnection
       
  5983 //!                28.-CloseRConnection
       
  5984 //!                29.-CloseLine
       
  5985 //!                30.-CloseSocketServ
       
  5986 //!                31.- CloseCustomApi
       
  5987 //!                32.- ClosePhone
       
  5988 //!                33.- CloseTelServer
       
  5989 //!@SYMTestStatus		Implemented
       
  5990 //!@SYMTestPriority		high
       
  5991 //!@SYMTestExpectedResults
       
  5992 //!                Connect to a CSD Access Point in WCDMA mode, download a 8kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  5993 //!@SYMTestType			CIT
       
  5994 
       
  5995 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  5996 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  5997 		CREATE_OBJECT	RSocket		rSocket1
       
  5998 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  5999 		CREATE_OBJECT	RConnection		rConnection1
       
  6000 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6001 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6002 		CREATE_OBJECT	RTelServer		telServer1
       
  6003 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6004 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6005 		COMMAND		telServer1		Connect
       
  6006 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command02
       
  6007 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command03
       
  6008 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0057-0001-SetSystemNetworkMode_command04
       
  6009 		OUTSTANDING
       
  6010 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6011 		OUTSTANDING
       
  6012 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0057-0001-ModeCheck_command06
       
  6013 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command07
       
  6014 		COMMAND		rSocketServ1		Connect
       
  6015 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command09
       
  6016 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0057-0001-SelectOutgoingIAP_command10
       
  6017 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0057-0001-Start_command11
       
  6018 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command12
       
  6019 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0057-0001-GetByName_command13
       
  6020 		OUTSTANDING
       
  6021 		COMMAND		rHostResolver1		Close
       
  6022 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0057-0001-Open_command15
       
  6023 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0057-0001-Connect_command16
       
  6024 		OUTSTANDING
       
  6025 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0057-0001-WriteRequest_command17
       
  6026 		OUTSTANDING
       
  6027 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0057-0001-StartFile_command18
       
  6028 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0057-0001-StartDealer_command19
       
  6029 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0057-0001-CheckHSDPA_command20
       
  6030 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0057-0001-RecvOneOrMore_command21
       
  6031 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0057-0001-EndFile_command22
       
  6032 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0057-0001-CalcDnloadStats_command23
       
  6033 		COMMAND		rSocket1		ShutDown
       
  6034 		OUTSTANDING
       
  6035 		COMMAND		rSocket1		Close
       
  6036 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0057-0001-VerifyData_command26
       
  6037 		COMMAND		rConnection1		Stop
       
  6038 		COMMAND		rConnection1		Close
       
  6039 		COMMAND		mobileLine1		Close
       
  6040 		COMMAND		rSocketServ1		Close
       
  6041 		COMMAND		mmCustomAPI1		Close
       
  6042 		COMMAND		rMobilePhone1		Close
       
  6043 		COMMAND		telServer1		Close
       
  6044 	END_TEST_BLOCK
       
  6045 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0057
       
  6046 
       
  6047 
       
  6048 
       
  6049 
       
  6050 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0058
       
  6051 
       
  6052 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0058
       
  6053 //!@SYMAPI
       
  6054 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6055 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6056 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6057 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6058 //!@SYMAuthor			ddamian
       
  6059 //!@SYMCreationDate		9/5/2008 
       
  6060 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6061 //!@SYMTestActions
       
  6062 //!                1.- OpenTelServer
       
  6063 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6064 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6065 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6066 //!                5.- GetCurrentSystemNetworkModes
       
  6067 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6068 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6069 //!                8.- ConnectSocketServ
       
  6070 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6071 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6072 //!                11.- StartRConnection (Retries = 1)
       
  6073 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6074 //!                13.- GetByName (Address = {URL,address1})
       
  6075 //!                14.- CloseHostResolver
       
  6076 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6077 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6078 //!                17.-WriteRequest (File = /dy/small/0064k.bin; Protocol = HTTP)
       
  6079 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0064k-tc-0079.bin)
       
  6080 //!                19.-StartDealer (DataDealer = 0)
       
  6081 //!                20.-CheckHSDPA (HSDPA = )
       
  6082 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0064k-tc-0079.bin; DataDealer = 0; Duration = -1)
       
  6083 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0064k-tc-0079.bin)
       
  6084 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6085 //!                24.-RSocketShutDown
       
  6086 //!                25.-RSocketClose
       
  6087 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0064k-tc-0079.bin; Checksum=d26a232d0279a9cb34529a9a05125f4a)
       
  6088 //!                27.-StopRConnection
       
  6089 //!                28.-CloseRConnection
       
  6090 //!                29.-CloseLine
       
  6091 //!                30.-CloseSocketServ
       
  6092 //!                31.- CloseCustomApi
       
  6093 //!                32.- ClosePhone
       
  6094 //!                33.- CloseTelServer
       
  6095 //!@SYMTestStatus		Implemented
       
  6096 //!@SYMTestPriority		high
       
  6097 //!@SYMTestExpectedResults
       
  6098 //!                Connect to a CSD Access Point in WCDMA mode, download a 64kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6099 //!@SYMTestType			CIT
       
  6100 
       
  6101 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6102 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6103 		CREATE_OBJECT	RSocket		rSocket1
       
  6104 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6105 		CREATE_OBJECT	RConnection		rConnection1
       
  6106 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6107 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6108 		CREATE_OBJECT	RTelServer		telServer1
       
  6109 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6110 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6111 		COMMAND		telServer1		Connect
       
  6112 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command02
       
  6113 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command03
       
  6114 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0058-0001-SetSystemNetworkMode_command04
       
  6115 		OUTSTANDING
       
  6116 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6117 		OUTSTANDING
       
  6118 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0058-0001-ModeCheck_command06
       
  6119 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command07
       
  6120 		COMMAND		rSocketServ1		Connect
       
  6121 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command09
       
  6122 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0058-0001-SelectOutgoingIAP_command10
       
  6123 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0058-0001-Start_command11
       
  6124 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command12
       
  6125 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0058-0001-GetByName_command13
       
  6126 		OUTSTANDING
       
  6127 		COMMAND		rHostResolver1		Close
       
  6128 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0058-0001-Open_command15
       
  6129 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0058-0001-Connect_command16
       
  6130 		OUTSTANDING
       
  6131 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0058-0001-WriteRequest_command17
       
  6132 		OUTSTANDING
       
  6133 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0058-0001-StartFile_command18
       
  6134 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0058-0001-StartDealer_command19
       
  6135 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0058-0001-CheckHSDPA_command20
       
  6136 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0058-0001-RecvOneOrMore_command21
       
  6137 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0058-0001-EndFile_command22
       
  6138 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0058-0001-CalcDnloadStats_command23
       
  6139 		COMMAND		rSocket1		ShutDown
       
  6140 		OUTSTANDING
       
  6141 		COMMAND		rSocket1		Close
       
  6142 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0058-0001-VerifyData_command26
       
  6143 		COMMAND		rConnection1		Stop
       
  6144 		COMMAND		rConnection1		Close
       
  6145 		COMMAND		mobileLine1		Close
       
  6146 		COMMAND		rSocketServ1		Close
       
  6147 		COMMAND		mmCustomAPI1		Close
       
  6148 		COMMAND		rMobilePhone1		Close
       
  6149 		COMMAND		telServer1		Close
       
  6150 	END_TEST_BLOCK
       
  6151 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0058
       
  6152 
       
  6153 
       
  6154 
       
  6155 
       
  6156 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0059
       
  6157 
       
  6158 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0059
       
  6159 //!@SYMAPI
       
  6160 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6161 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6162 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6163 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6164 //!@SYMAuthor			ddamian
       
  6165 //!@SYMCreationDate		9/5/2008 
       
  6166 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6167 //!@SYMTestActions
       
  6168 //!                1.- OpenTelServer
       
  6169 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6170 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6171 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6172 //!                5.- GetCurrentSystemNetworkModes
       
  6173 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6174 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6175 //!                8.- ConnectSocketServ
       
  6176 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6177 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6178 //!                11.- StartRConnection (Retries = 1)
       
  6179 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6180 //!                13.- GetByName (Address = {URL,address1})
       
  6181 //!                14.- CloseHostResolver
       
  6182 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6183 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6184 //!                17.-WriteRequest (File = /dy/small/0128k.bin; Protocol = HTTP)
       
  6185 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0128k-tc-0080.bin)
       
  6186 //!                19.-StartDealer (DataDealer = 0)
       
  6187 //!                20.-CheckHSDPA (HSDPA = )
       
  6188 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0128k-tc-0080.bin; DataDealer = 0; Duration = -1)
       
  6189 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0128k-tc-0080.bin)
       
  6190 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6191 //!                24.-RSocketShutDown
       
  6192 //!                25.-RSocketClose
       
  6193 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0128k-tc-0080.bin; Checksum=5d4779596d69ef04c6f58db95bd832de)
       
  6194 //!                27.-StopRConnection
       
  6195 //!                28.-CloseRConnection
       
  6196 //!                29.-CloseLine
       
  6197 //!                30.-CloseSocketServ
       
  6198 //!                31.- CloseCustomApi
       
  6199 //!                32.- ClosePhone
       
  6200 //!                33.- CloseTelServer
       
  6201 //!@SYMTestStatus		Implemented
       
  6202 //!@SYMTestPriority		high
       
  6203 //!@SYMTestExpectedResults
       
  6204 //!                Connect to a CSD Access Point in WCDMA mode, download a 128kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6205 //!@SYMTestType			CIT
       
  6206 
       
  6207 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6208 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6209 		CREATE_OBJECT	RSocket		rSocket1
       
  6210 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6211 		CREATE_OBJECT	RConnection		rConnection1
       
  6212 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6213 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6214 		CREATE_OBJECT	RTelServer		telServer1
       
  6215 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6216 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6217 		COMMAND		telServer1		Connect
       
  6218 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command02
       
  6219 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command03
       
  6220 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0059-0001-SetSystemNetworkMode_command04
       
  6221 		OUTSTANDING
       
  6222 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6223 		OUTSTANDING
       
  6224 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0059-0001-ModeCheck_command06
       
  6225 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command07
       
  6226 		COMMAND		rSocketServ1		Connect
       
  6227 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command09
       
  6228 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0059-0001-SelectOutgoingIAP_command10
       
  6229 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0059-0001-Start_command11
       
  6230 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command12
       
  6231 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0059-0001-GetByName_command13
       
  6232 		OUTSTANDING
       
  6233 		COMMAND		rHostResolver1		Close
       
  6234 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0059-0001-Open_command15
       
  6235 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0059-0001-Connect_command16
       
  6236 		OUTSTANDING
       
  6237 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0059-0001-WriteRequest_command17
       
  6238 		OUTSTANDING
       
  6239 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0059-0001-StartFile_command18
       
  6240 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0059-0001-StartDealer_command19
       
  6241 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0059-0001-CheckHSDPA_command20
       
  6242 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0059-0001-RecvOneOrMore_command21
       
  6243 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0059-0001-EndFile_command22
       
  6244 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0059-0001-CalcDnloadStats_command23
       
  6245 		COMMAND		rSocket1		ShutDown
       
  6246 		OUTSTANDING
       
  6247 		COMMAND		rSocket1		Close
       
  6248 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0059-0001-VerifyData_command26
       
  6249 		COMMAND		rConnection1		Stop
       
  6250 		COMMAND		rConnection1		Close
       
  6251 		COMMAND		mobileLine1		Close
       
  6252 		COMMAND		rSocketServ1		Close
       
  6253 		COMMAND		mmCustomAPI1		Close
       
  6254 		COMMAND		rMobilePhone1		Close
       
  6255 		COMMAND		telServer1		Close
       
  6256 	END_TEST_BLOCK
       
  6257 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0059
       
  6258 
       
  6259 
       
  6260 
       
  6261 
       
  6262 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0060
       
  6263 
       
  6264 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0060
       
  6265 //!@SYMAPI
       
  6266 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6267 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6268 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6269 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6270 //!@SYMAuthor			ddamian
       
  6271 //!@SYMCreationDate		9/5/2008 
       
  6272 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6273 //!@SYMTestActions
       
  6274 //!                1.- OpenTelServer
       
  6275 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6276 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6277 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6278 //!                5.- GetCurrentSystemNetworkModes
       
  6279 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6280 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6281 //!                8.- ConnectSocketServ
       
  6282 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6283 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6284 //!                11.- StartRConnection (Retries = 1)
       
  6285 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6286 //!                13.- GetByName (Address = {URL,address1})
       
  6287 //!                14.- CloseHostResolver
       
  6288 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6289 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6290 //!                17.-WriteRequest (File = /dy/small/0512k.bin; Protocol = HTTP)
       
  6291 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0512k-tc-0081.bin)
       
  6292 //!                19.-StartDealer (DataDealer = 0)
       
  6293 //!                20.-CheckHSDPA (HSDPA = )
       
  6294 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0512k-tc-0081.bin; DataDealer = 0; Duration = -1)
       
  6295 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0512k-tc-0081.bin)
       
  6296 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6297 //!                24.-RSocketShutDown
       
  6298 //!                25.-RSocketClose
       
  6299 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0512k-tc-0081.bin; Checksum=e27c9e563d0e2752b813f6182934b0f4)
       
  6300 //!                27.-StopRConnection
       
  6301 //!                28.-CloseRConnection
       
  6302 //!                29.-CloseLine
       
  6303 //!                30.-CloseSocketServ
       
  6304 //!                31.- CloseCustomApi
       
  6305 //!                32.- ClosePhone
       
  6306 //!                33.- CloseTelServer
       
  6307 //!@SYMTestStatus		Implemented
       
  6308 //!@SYMTestPriority		high
       
  6309 //!@SYMTestExpectedResults
       
  6310 //!                Connect to a CSD Access Point in WCDMA mode, download a 512kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6311 //!@SYMTestType			CIT
       
  6312 
       
  6313 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6314 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6315 		CREATE_OBJECT	RSocket		rSocket1
       
  6316 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6317 		CREATE_OBJECT	RConnection		rConnection1
       
  6318 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6319 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6320 		CREATE_OBJECT	RTelServer		telServer1
       
  6321 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6322 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6323 		COMMAND		telServer1		Connect
       
  6324 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command02
       
  6325 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command03
       
  6326 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0060-0001-SetSystemNetworkMode_command04
       
  6327 		OUTSTANDING
       
  6328 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6329 		OUTSTANDING
       
  6330 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0060-0001-ModeCheck_command06
       
  6331 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command07
       
  6332 		COMMAND		rSocketServ1		Connect
       
  6333 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command09
       
  6334 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0060-0001-SelectOutgoingIAP_command10
       
  6335 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0060-0001-Start_command11
       
  6336 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command12
       
  6337 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0060-0001-GetByName_command13
       
  6338 		OUTSTANDING
       
  6339 		COMMAND		rHostResolver1		Close
       
  6340 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0060-0001-Open_command15
       
  6341 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0060-0001-Connect_command16
       
  6342 		OUTSTANDING
       
  6343 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0060-0001-WriteRequest_command17
       
  6344 		OUTSTANDING
       
  6345 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0060-0001-StartFile_command18
       
  6346 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0060-0001-StartDealer_command19
       
  6347 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0060-0001-CheckHSDPA_command20
       
  6348 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0060-0001-RecvOneOrMore_command21
       
  6349 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0060-0001-EndFile_command22
       
  6350 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0060-0001-CalcDnloadStats_command23
       
  6351 		COMMAND		rSocket1		ShutDown
       
  6352 		OUTSTANDING
       
  6353 		COMMAND		rSocket1		Close
       
  6354 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0060-0001-VerifyData_command26
       
  6355 		COMMAND		rConnection1		Stop
       
  6356 		COMMAND		rConnection1		Close
       
  6357 		COMMAND		mobileLine1		Close
       
  6358 		COMMAND		rSocketServ1		Close
       
  6359 		COMMAND		mmCustomAPI1		Close
       
  6360 		COMMAND		rMobilePhone1		Close
       
  6361 		COMMAND		telServer1		Close
       
  6362 	END_TEST_BLOCK
       
  6363 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0060
       
  6364 
       
  6365 
       
  6366 
       
  6367 
       
  6368 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0061
       
  6369 
       
  6370 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0061
       
  6371 //!@SYMAPI
       
  6372 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6373 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6374 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6375 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6376 //!@SYMAuthor			ddamian
       
  6377 //!@SYMCreationDate		9/5/2008 
       
  6378 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6379 //!@SYMTestActions
       
  6380 //!                1.- OpenTelServer
       
  6381 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6382 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6383 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6384 //!                5.- GetCurrentSystemNetworkModes
       
  6385 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6386 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6387 //!                8.- ConnectSocketServ
       
  6388 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6389 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6390 //!                11.- StartRConnection (Retries = 1)
       
  6391 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6392 //!                13.- GetByName (Address = {URL,address1})
       
  6393 //!                14.- CloseHostResolver
       
  6394 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6395 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6396 //!                17.-WriteRequest (File = /dy/small/1024k.bin; Protocol = HTTP)
       
  6397 //!                18.-StartFile (Save = {DRIVES,SysDrive}\1024k-tc-0082.bin)
       
  6398 //!                19.-StartDealer (DataDealer = 0)
       
  6399 //!                20.-CheckHSDPA (HSDPA = )
       
  6400 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\1024k-tc-0082.bin; DataDealer = 0; Duration = -1)
       
  6401 //!                22.-EndFile (Save = {DRIVES,SysDrive}\1024k-tc-0082.bin)
       
  6402 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6403 //!                24.-RSocketShutDown
       
  6404 //!                25.-RSocketClose
       
  6405 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\1024k-tc-0082.bin; Checksum=d203ba06a618da4f107c08a87ca5cea3)
       
  6406 //!                27.-StopRConnection
       
  6407 //!                28.-CloseRConnection
       
  6408 //!                29.-CloseLine
       
  6409 //!                30.-CloseSocketServ
       
  6410 //!                31.- CloseCustomApi
       
  6411 //!                32.- ClosePhone
       
  6412 //!                33.- CloseTelServer
       
  6413 //!@SYMTestStatus		Implemented
       
  6414 //!@SYMTestPriority		high
       
  6415 //!@SYMTestExpectedResults
       
  6416 //!                Connect to a CSD Access Point in WCDMA mode, download a 1024kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6417 //!@SYMTestType			CIT
       
  6418 
       
  6419 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6420 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6421 		CREATE_OBJECT	RSocket		rSocket1
       
  6422 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6423 		CREATE_OBJECT	RConnection		rConnection1
       
  6424 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6425 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6426 		CREATE_OBJECT	RTelServer		telServer1
       
  6427 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6428 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6429 		COMMAND		telServer1		Connect
       
  6430 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command02
       
  6431 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command03
       
  6432 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0061-0001-SetSystemNetworkMode_command04
       
  6433 		OUTSTANDING
       
  6434 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6435 		OUTSTANDING
       
  6436 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0061-0001-ModeCheck_command06
       
  6437 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command07
       
  6438 		COMMAND		rSocketServ1		Connect
       
  6439 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command09
       
  6440 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0061-0001-SelectOutgoingIAP_command10
       
  6441 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0061-0001-Start_command11
       
  6442 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command12
       
  6443 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0061-0001-GetByName_command13
       
  6444 		OUTSTANDING
       
  6445 		COMMAND		rHostResolver1		Close
       
  6446 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0061-0001-Open_command15
       
  6447 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0061-0001-Connect_command16
       
  6448 		OUTSTANDING
       
  6449 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0061-0001-WriteRequest_command17
       
  6450 		OUTSTANDING
       
  6451 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0061-0001-StartFile_command18
       
  6452 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0061-0001-StartDealer_command19
       
  6453 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0061-0001-CheckHSDPA_command20
       
  6454 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0061-0001-RecvOneOrMore_command21
       
  6455 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0061-0001-EndFile_command22
       
  6456 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0061-0001-CalcDnloadStats_command23
       
  6457 		COMMAND		rSocket1		ShutDown
       
  6458 		OUTSTANDING
       
  6459 		COMMAND		rSocket1		Close
       
  6460 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0061-0001-VerifyData_command26
       
  6461 		COMMAND		rConnection1		Stop
       
  6462 		COMMAND		rConnection1		Close
       
  6463 		COMMAND		mobileLine1		Close
       
  6464 		COMMAND		rSocketServ1		Close
       
  6465 		COMMAND		mmCustomAPI1		Close
       
  6466 		COMMAND		rMobilePhone1		Close
       
  6467 		COMMAND		telServer1		Close
       
  6468 	END_TEST_BLOCK
       
  6469 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0061
       
  6470 
       
  6471 
       
  6472 
       
  6473 
       
  6474 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0062
       
  6475 
       
  6476 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0062
       
  6477 //!@SYMAPI
       
  6478 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6479 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6480 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6481 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6482 //!@SYMAuthor			ddamian
       
  6483 //!@SYMCreationDate		9/5/2008 
       
  6484 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6485 //!@SYMTestActions
       
  6486 //!                1.- OpenTelServer
       
  6487 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6488 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6489 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6490 //!                5.- GetCurrentSystemNetworkModes
       
  6491 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6492 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6493 //!                8.- ConnectSocketServ
       
  6494 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6495 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6496 //!                11.- StartRConnection (Retries = 1)
       
  6497 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6498 //!                13.- GetByName (Address = {URL,address1})
       
  6499 //!                14.- CloseHostResolver
       
  6500 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6501 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6502 //!                17.-WriteRequest (File = /dy/small/0002k.bin; Protocol = HTTP)
       
  6503 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0002k-tc-0083.bin)
       
  6504 //!                19.-StartDealer (DataDealer = 0)
       
  6505 //!                20.-CheckHSDPA (HSDPA = )
       
  6506 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0002k-tc-0083.bin; DataDealer = 0; Duration = -1)
       
  6507 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0002k-tc-0083.bin)
       
  6508 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6509 //!                24.-RSocketShutDown
       
  6510 //!                25.-RSocketClose
       
  6511 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0002k-tc-0083.bin; Checksum= 46eb89673fe25a797a7896fd62773df0 )
       
  6512 //!                27.-StopRConnection
       
  6513 //!                28.-CloseRConnection
       
  6514 //!                29.-CloseLine
       
  6515 //!                30.-CloseSocketServ
       
  6516 //!                31.- CloseCustomApi
       
  6517 //!                32.- ClosePhone
       
  6518 //!                33.- CloseTelServer
       
  6519 //!@SYMTestStatus		Implemented
       
  6520 //!@SYMTestPriority		high
       
  6521 //!@SYMTestExpectedResults
       
  6522 //!                Connect to a CSD Access Point in WCDMA mode, download 2kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6523 //!@SYMTestType			CIT
       
  6524 
       
  6525 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6526 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6527 		CREATE_OBJECT	RSocket		rSocket1
       
  6528 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6529 		CREATE_OBJECT	RConnection		rConnection1
       
  6530 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6531 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6532 		CREATE_OBJECT	RTelServer		telServer1
       
  6533 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6534 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6535 		COMMAND		telServer1		Connect
       
  6536 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command02
       
  6537 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command03
       
  6538 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0062-0001-SetSystemNetworkMode_command04
       
  6539 		OUTSTANDING
       
  6540 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6541 		OUTSTANDING
       
  6542 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0062-0001-ModeCheck_command06
       
  6543 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command07
       
  6544 		COMMAND		rSocketServ1		Connect
       
  6545 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command09
       
  6546 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0062-0001-SelectOutgoingIAP_command10
       
  6547 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0062-0001-Start_command11
       
  6548 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command12
       
  6549 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0062-0001-GetByName_command13
       
  6550 		OUTSTANDING
       
  6551 		COMMAND		rHostResolver1		Close
       
  6552 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0062-0001-Open_command15
       
  6553 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0062-0001-Connect_command16
       
  6554 		OUTSTANDING
       
  6555 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0062-0001-WriteRequest_command17
       
  6556 		OUTSTANDING
       
  6557 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0062-0001-StartFile_command18
       
  6558 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0062-0001-StartDealer_command19
       
  6559 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0062-0001-CheckHSDPA_command20
       
  6560 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0062-0001-RecvOneOrMore_command21
       
  6561 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0062-0001-EndFile_command22
       
  6562 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0062-0001-CalcDnloadStats_command23
       
  6563 		COMMAND		rSocket1		ShutDown
       
  6564 		OUTSTANDING
       
  6565 		COMMAND		rSocket1		Close
       
  6566 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0062-0001-VerifyData_command26
       
  6567 		COMMAND		rConnection1		Stop
       
  6568 		COMMAND		rConnection1		Close
       
  6569 		COMMAND		mobileLine1		Close
       
  6570 		COMMAND		rSocketServ1		Close
       
  6571 		COMMAND		mmCustomAPI1		Close
       
  6572 		COMMAND		rMobilePhone1		Close
       
  6573 		COMMAND		telServer1		Close
       
  6574 	END_TEST_BLOCK
       
  6575 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0062
       
  6576 
       
  6577 
       
  6578 
       
  6579 
       
  6580 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0063
       
  6581 
       
  6582 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0063
       
  6583 //!@SYMAPI
       
  6584 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6585 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6586 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6587 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6588 //!@SYMAuthor			ddamian
       
  6589 //!@SYMCreationDate		9/5/2008 
       
  6590 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6591 //!@SYMTestActions
       
  6592 //!                1.- OpenTelServer
       
  6593 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6594 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6595 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6596 //!                5.- GetCurrentSystemNetworkModes
       
  6597 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6598 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6599 //!                8.- ConnectSocketServ
       
  6600 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6601 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6602 //!                11.- StartRConnection (Retries = 1)
       
  6603 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6604 //!                13.- GetByName (Address = {URL,address1})
       
  6605 //!                14.- CloseHostResolver
       
  6606 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6607 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6608 //!                17.-WriteRequest (File = /dy/small/0004k.bin; Protocol = HTTP)
       
  6609 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0004k-tc-0084.bin)
       
  6610 //!                19.-StartDealer (DataDealer = 0)
       
  6611 //!                20.-CheckHSDPA (HSDPA = )
       
  6612 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0004k-tc-0084.bin; DataDealer = 0; Duration = -1)
       
  6613 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0004k-tc-0084.bin)
       
  6614 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6615 //!                24.-RSocketShutDown
       
  6616 //!                25.-RSocketClose
       
  6617 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0004k-tc-0084.bin; Checksum= bbc5e9b08e80626178ce7df5a50a1395)
       
  6618 //!                27.-StopRConnection
       
  6619 //!                28.-CloseRConnection
       
  6620 //!                29.-CloseLine
       
  6621 //!                30.-CloseSocketServ
       
  6622 //!                31.- CloseCustomApi
       
  6623 //!                32.- ClosePhone
       
  6624 //!                33.- CloseTelServer
       
  6625 //!@SYMTestStatus		Implemented
       
  6626 //!@SYMTestPriority		high
       
  6627 //!@SYMTestExpectedResults
       
  6628 //!                Connect to a CSD Access Point in WCDMA mode, download a 4kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6629 //!@SYMTestType			CIT
       
  6630 
       
  6631 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6632 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6633 		CREATE_OBJECT	RSocket		rSocket1
       
  6634 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6635 		CREATE_OBJECT	RConnection		rConnection1
       
  6636 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6637 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6638 		CREATE_OBJECT	RTelServer		telServer1
       
  6639 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6640 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6641 		COMMAND		telServer1		Connect
       
  6642 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command02
       
  6643 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command03
       
  6644 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0063-0001-SetSystemNetworkMode_command04
       
  6645 		OUTSTANDING
       
  6646 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6647 		OUTSTANDING
       
  6648 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0063-0001-ModeCheck_command06
       
  6649 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command07
       
  6650 		COMMAND		rSocketServ1		Connect
       
  6651 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command09
       
  6652 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0063-0001-SelectOutgoingIAP_command10
       
  6653 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0063-0001-Start_command11
       
  6654 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command12
       
  6655 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0063-0001-GetByName_command13
       
  6656 		OUTSTANDING
       
  6657 		COMMAND		rHostResolver1		Close
       
  6658 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0063-0001-Open_command15
       
  6659 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0063-0001-Connect_command16
       
  6660 		OUTSTANDING
       
  6661 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0063-0001-WriteRequest_command17
       
  6662 		OUTSTANDING
       
  6663 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0063-0001-StartFile_command18
       
  6664 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0063-0001-StartDealer_command19
       
  6665 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0063-0001-CheckHSDPA_command20
       
  6666 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0063-0001-RecvOneOrMore_command21
       
  6667 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0063-0001-EndFile_command22
       
  6668 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0063-0001-CalcDnloadStats_command23
       
  6669 		COMMAND		rSocket1		ShutDown
       
  6670 		OUTSTANDING
       
  6671 		COMMAND		rSocket1		Close
       
  6672 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0063-0001-VerifyData_command26
       
  6673 		COMMAND		rConnection1		Stop
       
  6674 		COMMAND		rConnection1		Close
       
  6675 		COMMAND		mobileLine1		Close
       
  6676 		COMMAND		rSocketServ1		Close
       
  6677 		COMMAND		mmCustomAPI1		Close
       
  6678 		COMMAND		rMobilePhone1		Close
       
  6679 		COMMAND		telServer1		Close
       
  6680 	END_TEST_BLOCK
       
  6681 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0063
       
  6682 
       
  6683 
       
  6684 
       
  6685 
       
  6686 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0064
       
  6687 
       
  6688 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0064
       
  6689 //!@SYMAPI
       
  6690 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6691 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6692 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6693 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6694 //!@SYMAuthor			ddamian
       
  6695 //!@SYMCreationDate		9/5/2008 
       
  6696 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6697 //!@SYMTestActions
       
  6698 //!                1.- OpenTelServer
       
  6699 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6700 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6701 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6702 //!                5.- GetCurrentSystemNetworkModes
       
  6703 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6704 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6705 //!                8.- ConnectSocketServ
       
  6706 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6707 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6708 //!                11.- StartRConnection (Retries = 1)
       
  6709 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6710 //!                13.- GetByName (Address = {URL,address1})
       
  6711 //!                14.- CloseHostResolver
       
  6712 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6713 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6714 //!                17.-WriteRequest (File = /dy/small/0016k.bin; Protocol = HTTP)
       
  6715 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0016k-tc-0085.bin)
       
  6716 //!                19.-StartDealer (DataDealer = 0)
       
  6717 //!                20.-CheckHSDPA (HSDPA = )
       
  6718 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0016k-tc-0085.bin; DataDealer = 0; Duration = -1)
       
  6719 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0016k-tc-0085.bin)
       
  6720 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6721 //!                24.-RSocketShutDown
       
  6722 //!                25.-RSocketClose
       
  6723 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0016k-tc-0085.bin; Checksum= 90cc7edd8fecf4ba6375f5c25cb0a21b)
       
  6724 //!                27.-StopRConnection
       
  6725 //!                28.-CloseRConnection
       
  6726 //!                29.-CloseLine
       
  6727 //!                30.-CloseSocketServ
       
  6728 //!                31.- CloseCustomApi
       
  6729 //!                32.- ClosePhone
       
  6730 //!                33.- CloseTelServer
       
  6731 //!@SYMTestStatus		Implemented
       
  6732 //!@SYMTestPriority		high
       
  6733 //!@SYMTestExpectedResults
       
  6734 //!                Connect to a CSD Access Point in WCDMA mode, download a 16kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6735 //!@SYMTestType			CIT
       
  6736 
       
  6737 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6738 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6739 		CREATE_OBJECT	RSocket		rSocket1
       
  6740 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6741 		CREATE_OBJECT	RConnection		rConnection1
       
  6742 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6743 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6744 		CREATE_OBJECT	RTelServer		telServer1
       
  6745 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6746 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6747 		COMMAND		telServer1		Connect
       
  6748 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command02
       
  6749 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command03
       
  6750 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0064-0001-SetSystemNetworkMode_command04
       
  6751 		OUTSTANDING
       
  6752 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6753 		OUTSTANDING
       
  6754 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0064-0001-ModeCheck_command06
       
  6755 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command07
       
  6756 		COMMAND		rSocketServ1		Connect
       
  6757 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command09
       
  6758 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0064-0001-SelectOutgoingIAP_command10
       
  6759 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0064-0001-Start_command11
       
  6760 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command12
       
  6761 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0064-0001-GetByName_command13
       
  6762 		OUTSTANDING
       
  6763 		COMMAND		rHostResolver1		Close
       
  6764 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0064-0001-Open_command15
       
  6765 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0064-0001-Connect_command16
       
  6766 		OUTSTANDING
       
  6767 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0064-0001-WriteRequest_command17
       
  6768 		OUTSTANDING
       
  6769 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0064-0001-StartFile_command18
       
  6770 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0064-0001-StartDealer_command19
       
  6771 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0064-0001-CheckHSDPA_command20
       
  6772 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0064-0001-RecvOneOrMore_command21
       
  6773 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0064-0001-EndFile_command22
       
  6774 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0064-0001-CalcDnloadStats_command23
       
  6775 		COMMAND		rSocket1		ShutDown
       
  6776 		OUTSTANDING
       
  6777 		COMMAND		rSocket1		Close
       
  6778 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0064-0001-VerifyData_command26
       
  6779 		COMMAND		rConnection1		Stop
       
  6780 		COMMAND		rConnection1		Close
       
  6781 		COMMAND		mobileLine1		Close
       
  6782 		COMMAND		rSocketServ1		Close
       
  6783 		COMMAND		mmCustomAPI1		Close
       
  6784 		COMMAND		rMobilePhone1		Close
       
  6785 		COMMAND		telServer1		Close
       
  6786 	END_TEST_BLOCK
       
  6787 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0064
       
  6788 
       
  6789 
       
  6790 
       
  6791 
       
  6792 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0065
       
  6793 
       
  6794 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0065
       
  6795 //!@SYMAPI
       
  6796 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6797 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6798 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6799 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6800 //!@SYMAuthor			ddamian
       
  6801 //!@SYMCreationDate		9/5/2008 
       
  6802 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6803 //!@SYMTestActions
       
  6804 //!                1.- OpenTelServer
       
  6805 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6806 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6807 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6808 //!                5.- GetCurrentSystemNetworkModes
       
  6809 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6810 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6811 //!                8.- ConnectSocketServ
       
  6812 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6813 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6814 //!                11.- StartRConnection (Retries = 1)
       
  6815 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6816 //!                13.- GetByName (Address = {URL,address1})
       
  6817 //!                14.- CloseHostResolver
       
  6818 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6819 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6820 //!                17.-WriteRequest (File = /dy/small/0032k.bin; Protocol = HTTP)
       
  6821 //!                18.-StartFile (Save = {DRIVES,SysDrive}\0032k-tc-0086.bin)
       
  6822 //!                19.-StartDealer (DataDealer = 0)
       
  6823 //!                20.-CheckHSDPA (HSDPA = )
       
  6824 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0032k-tc-0086.bin; DataDealer = 0; Duration = -1)
       
  6825 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0032k-tc-0086.bin)
       
  6826 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6827 //!                24.-RSocketShutDown
       
  6828 //!                25.-RSocketClose
       
  6829 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0032k-tc-0086.bin; Checksum= 64fbc234be040b07806ae46ee8e8bdbc)
       
  6830 //!                27.-StopRConnection
       
  6831 //!                28.-CloseRConnection
       
  6832 //!                29.-CloseLine
       
  6833 //!                30.-CloseSocketServ
       
  6834 //!                31.- CloseCustomApi
       
  6835 //!                32.- ClosePhone
       
  6836 //!                33.- CloseTelServer
       
  6837 //!@SYMTestStatus		Implemented
       
  6838 //!@SYMTestPriority		high
       
  6839 //!@SYMTestExpectedResults
       
  6840 //!                Connect to a CSD Access Point in WCDMA mode, download 32kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6841 //!@SYMTestType			CIT
       
  6842 
       
  6843 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6844 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6845 		CREATE_OBJECT	RSocket		rSocket1
       
  6846 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6847 		CREATE_OBJECT	RConnection		rConnection1
       
  6848 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6849 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6850 		CREATE_OBJECT	RTelServer		telServer1
       
  6851 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6852 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6853 		COMMAND		telServer1		Connect
       
  6854 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command02
       
  6855 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command03
       
  6856 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0065-0001-SetSystemNetworkMode_command04
       
  6857 		OUTSTANDING
       
  6858 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6859 		OUTSTANDING
       
  6860 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0065-0001-ModeCheck_command06
       
  6861 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command07
       
  6862 		COMMAND		rSocketServ1		Connect
       
  6863 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command09
       
  6864 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0065-0001-SelectOutgoingIAP_command10
       
  6865 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0065-0001-Start_command11
       
  6866 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command12
       
  6867 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0065-0001-GetByName_command13
       
  6868 		OUTSTANDING
       
  6869 		COMMAND		rHostResolver1		Close
       
  6870 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0065-0001-Open_command15
       
  6871 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0065-0001-Connect_command16
       
  6872 		OUTSTANDING
       
  6873 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0065-0001-WriteRequest_command17
       
  6874 		OUTSTANDING
       
  6875 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0065-0001-StartFile_command18
       
  6876 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0065-0001-StartDealer_command19
       
  6877 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0065-0001-CheckHSDPA_command20
       
  6878 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0065-0001-RecvOneOrMore_command21
       
  6879 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0065-0001-EndFile_command22
       
  6880 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0065-0001-CalcDnloadStats_command23
       
  6881 		COMMAND		rSocket1		ShutDown
       
  6882 		OUTSTANDING
       
  6883 		COMMAND		rSocket1		Close
       
  6884 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0065-0001-VerifyData_command26
       
  6885 		COMMAND		rConnection1		Stop
       
  6886 		COMMAND		rConnection1		Close
       
  6887 		COMMAND		mobileLine1		Close
       
  6888 		COMMAND		rSocketServ1		Close
       
  6889 		COMMAND		mmCustomAPI1		Close
       
  6890 		COMMAND		rMobilePhone1		Close
       
  6891 		COMMAND		telServer1		Close
       
  6892 	END_TEST_BLOCK
       
  6893 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0065
       
  6894 
       
  6895 
       
  6896 
       
  6897 
       
  6898 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0066
       
  6899 
       
  6900 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0066
       
  6901 //!@SYMAPI
       
  6902 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  6903 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  6904 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  6905 //!                void RSocket:: RecvOneOrMore(TDes8 {ref}aDesc, TUint flags, TRequestStatus {ref}aStatus, TSockXfrLength {ref}aLen);
       
  6906 //!@SYMAuthor			ddamian
       
  6907 //!@SYMCreationDate		9/5/2008 
       
  6908 //!@SYMTestCaseDesc		Connect to a CSD Access Point in WCDMA mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive.
       
  6909 //!@SYMTestActions
       
  6910 //!                1.- OpenTelServer
       
  6911 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  6912 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  6913 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  6914 //!                5.- GetCurrentSystemNetworkModes
       
  6915 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  6916 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  6917 //!                8.- ConnectSocketServ
       
  6918 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  6919 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  6920 //!                11.- StartRConnection (Retries = 1)
       
  6921 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6922 //!                13.- GetByName (Address = {URL,address1})
       
  6923 //!                14.- CloseHostResolver
       
  6924 //!                15.-RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  6925 //!                16.-RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  6926 //!                17.-WriteRequest (File = /dy/small/0256k.bin; Protocol = HTTP)
       
  6927 //!                18.-StartFile (Save = {DRIVES,SysDrive}\00256k-tc-0087.bin)
       
  6928 //!                19.-StartDealer (DataDealer = 0)
       
  6929 //!                20.-CheckHSDPA (HSDPA = )
       
  6930 //!                21.-DownloadToFile (Protocol = HTTP; Save = {DRIVES,SysDrive}\0256k-tc-0087.bin; DataDealer = 0; Duration = -1)
       
  6931 //!                22.-EndFile (Save = {DRIVES,SysDrive}\0256k-tc-0087.bin)
       
  6932 //!                23.-CalcDnloadStats (Duration = -1; MinSpeed = -1)
       
  6933 //!                24.-RSocketShutDown
       
  6934 //!                25.-RSocketClose
       
  6935 //!                26.-VerifyData (VerifyType = MD5; VerifyFile = {DRIVES,SysDrive}\0256k-tc-0087.bin; Checksum= 0048909c2fb3c2c6818806202e6654ae)
       
  6936 //!                27.-StopRConnection
       
  6937 //!                28.-CloseRConnection
       
  6938 //!                29.-CloseLine
       
  6939 //!                30.-CloseSocketServ
       
  6940 //!                31.- CloseCustomApi
       
  6941 //!                32.- ClosePhone
       
  6942 //!                33.- CloseTelServer
       
  6943 //!@SYMTestStatus		Implemented
       
  6944 //!@SYMTestPriority		high
       
  6945 //!@SYMTestExpectedResults
       
  6946 //!                Connect to a CSD Access Point in WCDMA mode, download a 256kB file using HTTP protocol and verify received file integrity using checksum. File will be saved in SysDrive. Execution will return no error where access point available.
       
  6947 //!@SYMTestType			CIT
       
  6948 
       
  6949 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_download.ini
       
  6950 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  6951 		CREATE_OBJECT	RSocket		rSocket1
       
  6952 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  6953 		CREATE_OBJECT	RConnection		rConnection1
       
  6954 		CREATE_OBJECT	DataVerify		dataVerify1
       
  6955 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  6956 		CREATE_OBJECT	RTelServer		telServer1
       
  6957 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  6958 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  6959 		COMMAND		telServer1		Connect
       
  6960 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command02
       
  6961 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command03
       
  6962 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Download-0066-0001-SetSystemNetworkMode_command04
       
  6963 		OUTSTANDING
       
  6964 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  6965 		OUTSTANDING
       
  6966 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Download-0066-0001-ModeCheck_command06
       
  6967 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command07
       
  6968 		COMMAND		rSocketServ1		Connect
       
  6969 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command09
       
  6970 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Download-0066-0001-SelectOutgoingIAP_command10
       
  6971 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Download-0066-0001-Start_command11
       
  6972 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command12
       
  6973 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Download-0066-0001-GetByName_command13
       
  6974 		OUTSTANDING
       
  6975 		COMMAND		rHostResolver1		Close
       
  6976 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Download-0066-0001-Open_command15
       
  6977 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Download-0066-0001-Connect_command16
       
  6978 		OUTSTANDING
       
  6979 		COMMAND		rSocket1		WriteRequest			TELEPHONY-Comms-Download-0066-0001-WriteRequest_command17
       
  6980 		OUTSTANDING
       
  6981 		COMMAND		rSocket1		StartFile			TELEPHONY-Comms-Download-0066-0001-StartFile_command18
       
  6982 		COMMAND		rSocket1		StartDealer			TELEPHONY-Comms-Download-0066-0001-StartDealer_command19
       
  6983 		COMMAND		rSocket1		CheckHSDPA			TELEPHONY-Comms-Download-0066-0001-CheckHSDPA_command20
       
  6984 		COMMAND		rSocket1		RecvOneOrMore			TELEPHONY-Comms-Download-0066-0001-RecvOneOrMore_command21
       
  6985 		COMMAND		rSocket1		EndFile			TELEPHONY-Comms-Download-0066-0001-EndFile_command22
       
  6986 		COMMAND		rSocket1		CalcDnloadStats			TELEPHONY-Comms-Download-0066-0001-CalcDnloadStats_command23
       
  6987 		COMMAND		rSocket1		ShutDown
       
  6988 		OUTSTANDING
       
  6989 		COMMAND		rSocket1		Close
       
  6990 		COMMAND		dataVerify1		VerifyData			TELEPHONY-Comms-Download-0066-0001-VerifyData_command26
       
  6991 		COMMAND		rConnection1		Stop
       
  6992 		COMMAND		rConnection1		Close
       
  6993 		COMMAND		mobileLine1		Close
       
  6994 		COMMAND		rSocketServ1		Close
       
  6995 		COMMAND		mmCustomAPI1		Close
       
  6996 		COMMAND		rMobilePhone1		Close
       
  6997 		COMMAND		telServer1		Close
       
  6998 	END_TEST_BLOCK
       
  6999 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_DOWNLOAD-0066
       
  7000 
       
  7001 DELAY 10000