cellularsrvapitest/datatransferhaitest/scripts/telephony_comms-validation-automated_upload.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_upload
       
    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_UPLOAD-0001
       
    37 
       
    38 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-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 :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
    44 //!@SYMAuthor			ddamian
       
    45 //!@SYMCreationDate		9/5/2008 
       
    46 //!@SYMTestCaseDesc		Connect to a GPRS access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol.
       
    47 //!@SYMTestActions
       
    48 //!                1.- OpenTelServer
       
    49 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
    50 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
    51 //!                4.- ModeChange (ChangeMode = Dual)
       
    52 //!                5.- GetCurrentSystemNetworkModes
       
    53 //!                6.- ModeCheck (CheckMode = Dual)
       
    54 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
    55 //!                8.- ConnectToSocketServ
       
    56 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
    57 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
    58 //!                11.- StartRConnection (Retries = 1)
       
    59 //!                12.- OpenHostResolver (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
    60 //!                13.- GetByName (Address = {URL,address1})
       
    61 //!                14.- CloseHostResolver
       
    62 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
    63 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
    64 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
    65 //!                18.- RSocketWrite
       
    66 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
    67 //!                20.- EndRequest
       
    68 //!                21.- RSocketWrite
       
    69 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
    70 //!                23.- RSocketShutDown
       
    71 //!                24.- RSocketClose
       
    72 //!                25.- StopRConnection
       
    73 //!                26.- CloseRConnection
       
    74 //!                27.- CloseLine
       
    75 //!                28.- CloseSocketServ
       
    76 //!                29.- CloseCustomApi
       
    77 //!                30.- ClosePhone
       
    78 //!                31.- CloseTelServer
       
    79 //!@SYMTestStatus		Verified
       
    80 //!@SYMTestPriority		high
       
    81 //!@SYMTestExpectedResults
       
    82 //!                Connect to a GPRS access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
    83 //!@SYMTestType			CIT
       
    84 
       
    85 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
    86 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
    87 		CREATE_OBJECT	RSocket		rSocket1
       
    88 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
    89 		CREATE_OBJECT	RConnection		rConnection1
       
    90 		CREATE_OBJECT	DataVerify		dataVerify1
       
    91 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
    92 		CREATE_OBJECT	RTelServer		telServer1
       
    93 		CREATE_OBJECT	RMobileLine		mobileLine1
       
    94 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
    95 		COMMAND		telServer1		Connect
       
    96 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command02
       
    97 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command03
       
    98 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0001-0001-SetSystemNetworkMode_command04
       
    99 		OUTSTANDING
       
   100 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   101 		OUTSTANDING
       
   102 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0001-0001-ModeCheck_command06
       
   103 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command07
       
   104 		COMMAND		rSocketServ1		Connect
       
   105 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command09
       
   106 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0001-0001-SelectOutgoingIAP_command10
       
   107 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0001-0001-Start_command11
       
   108 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command12
       
   109 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0001-0001-GetByName_command13
       
   110 		OUTSTANDING
       
   111 		COMMAND		rHostResolver1		Close
       
   112 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0001-0001-Open_command15
       
   113 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0001-0001-Connect_command16
       
   114 		OUTSTANDING
       
   115 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0001-0001-BuildRequest_command17
       
   116 		COMMAND		rSocket1		Write
       
   117 		OUTSTANDING
       
   118 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0001-0001-SendBytesToSocket_command19
       
   119 		COMMAND		rSocket1		EndRequest
       
   120 		COMMAND		rSocket1		Write
       
   121 		OUTSTANDING
       
   122 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0001-0001-ResponseFromServer_command22
       
   123 		COMMAND		rSocket1		ShutDown
       
   124 		OUTSTANDING
       
   125 		COMMAND		rSocket1		Close
       
   126 		COMMAND		rConnection1		Stop
       
   127 		COMMAND		rConnection1		Close
       
   128 		COMMAND		mobileLine1		Close
       
   129 		COMMAND		rSocketServ1		Close
       
   130 		COMMAND		mmCustomAPI1		Close
       
   131 		COMMAND		rMobilePhone1		Close
       
   132 		COMMAND		telServer1		Close
       
   133 	END_TEST_BLOCK
       
   134 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0001
       
   135 
       
   136 
       
   137 
       
   138 
       
   139 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0002
       
   140 
       
   141 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0002
       
   142 //!@SYMAPI
       
   143 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   144 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   145 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   146 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   147 //!@SYMAuthor			ddamian
       
   148 //!@SYMCreationDate		9/5/2008 
       
   149 //!@SYMTestCaseDesc		Connect to a GPRS access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol.
       
   150 //!@SYMTestActions
       
   151 //!                1.- OpenTelServer
       
   152 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   153 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   154 //!                4.- ModeChange (ChangeMode = Dual)
       
   155 //!                5.- GetCurrentSystemNetworkModes
       
   156 //!                6.- ModeCheck (CheckMode = Dual)
       
   157 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   158 //!                8.- ConnectToSocketServ
       
   159 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   160 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   161 //!                11.- StartRConnection (Retries = 1)
       
   162 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   163 //!                13.- GetByName (Address = {URL,address1})
       
   164 //!                14.- CloseHostResolver
       
   165 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   166 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   167 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
   168 //!                18.- RSocketWrite
       
   169 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
   170 //!                20.- EndRequest
       
   171 //!                21.- RSocketWrite
       
   172 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   173 //!                23.- RSocketShutDown
       
   174 //!                24.- RSocketClose
       
   175 //!                25.- StopRConnection
       
   176 //!                26.- CloseRConnection
       
   177 //!                27.- CloseLine
       
   178 //!                28.- CloseSocketServ
       
   179 //!                29.- CloseCustomApi
       
   180 //!                30.- ClosePhone
       
   181 //!                31.- CloseTelServer
       
   182 //!@SYMTestStatus		Verified
       
   183 //!@SYMTestPriority		high
       
   184 //!@SYMTestExpectedResults
       
   185 //!                Connect to a GPRS access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
   186 //!@SYMTestType			CIT
       
   187 
       
   188 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   189 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   190 		CREATE_OBJECT	RSocket		rSocket1
       
   191 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   192 		CREATE_OBJECT	RConnection		rConnection1
       
   193 		CREATE_OBJECT	DataVerify		dataVerify1
       
   194 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   195 		CREATE_OBJECT	RTelServer		telServer1
       
   196 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   197 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   198 		COMMAND		telServer1		Connect
       
   199 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command02
       
   200 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command03
       
   201 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0002-0001-SetSystemNetworkMode_command04
       
   202 		OUTSTANDING
       
   203 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   204 		OUTSTANDING
       
   205 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0002-0001-ModeCheck_command06
       
   206 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command07
       
   207 		COMMAND		rSocketServ1		Connect
       
   208 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command09
       
   209 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0002-0001-SelectOutgoingIAP_command10
       
   210 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0002-0001-Start_command11
       
   211 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command12
       
   212 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0002-0001-GetByName_command13
       
   213 		OUTSTANDING
       
   214 		COMMAND		rHostResolver1		Close
       
   215 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0002-0001-Open_command15
       
   216 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0002-0001-Connect_command16
       
   217 		OUTSTANDING
       
   218 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0002-0001-BuildRequest_command17
       
   219 		COMMAND		rSocket1		Write
       
   220 		OUTSTANDING
       
   221 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0002-0001-SendBytesToSocket_command19
       
   222 		COMMAND		rSocket1		EndRequest
       
   223 		COMMAND		rSocket1		Write
       
   224 		OUTSTANDING
       
   225 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0002-0001-ResponseFromServer_command22
       
   226 		COMMAND		rSocket1		ShutDown
       
   227 		OUTSTANDING
       
   228 		COMMAND		rSocket1		Close
       
   229 		COMMAND		rConnection1		Stop
       
   230 		COMMAND		rConnection1		Close
       
   231 		COMMAND		mobileLine1		Close
       
   232 		COMMAND		rSocketServ1		Close
       
   233 		COMMAND		mmCustomAPI1		Close
       
   234 		COMMAND		rMobilePhone1		Close
       
   235 		COMMAND		telServer1		Close
       
   236 	END_TEST_BLOCK
       
   237 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0002
       
   238 
       
   239 
       
   240 
       
   241 
       
   242 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0003
       
   243 
       
   244 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0003
       
   245 //!@SYMAPI
       
   246 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   247 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   248 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   249 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   250 //!@SYMAuthor			ddamian
       
   251 //!@SYMCreationDate		9/5/2008 
       
   252 //!@SYMTestCaseDesc		Connect to a GPRS access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol.
       
   253 //!@SYMTestActions
       
   254 //!                1.- OpenTelServer
       
   255 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   256 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   257 //!                4.- ModeChange (ChangeMode = Dual)
       
   258 //!                5.- GetCurrentSystemNetworkModes
       
   259 //!                6.- ModeCheck (CheckMode = Dual)
       
   260 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   261 //!                8.- ConnectToSocketServ
       
   262 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   263 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   264 //!                11.- StartRConnection (Retries = 1)
       
   265 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   266 //!                13.- GetByName (Address = {URL,address1})
       
   267 //!                14.- CloseHostResolver
       
   268 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   269 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   270 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
   271 //!                18.- RSocketWrite
       
   272 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
   273 //!                20.- EndRequest
       
   274 //!                21.- RSocketWrite
       
   275 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   276 //!                23.- RSocketShutDown
       
   277 //!                24.- RSocketClose
       
   278 //!                25.- StopRConnection
       
   279 //!                26.- CloseRConnection
       
   280 //!                27.- CloseLine
       
   281 //!                28.- CloseSocketServ
       
   282 //!                29.- CloseCustomApi
       
   283 //!                30.- ClosePhone
       
   284 //!                31.- CloseTelServer
       
   285 //!@SYMTestStatus		Verified
       
   286 //!@SYMTestPriority		high
       
   287 //!@SYMTestExpectedResults
       
   288 //!                Connect to a GPRS access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
   289 //!@SYMTestType			CIT
       
   290 
       
   291 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   292 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   293 		CREATE_OBJECT	RSocket		rSocket1
       
   294 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   295 		CREATE_OBJECT	RConnection		rConnection1
       
   296 		CREATE_OBJECT	DataVerify		dataVerify1
       
   297 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   298 		CREATE_OBJECT	RTelServer		telServer1
       
   299 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   300 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   301 		COMMAND		telServer1		Connect
       
   302 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command02
       
   303 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command03
       
   304 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0003-0001-SetSystemNetworkMode_command04
       
   305 		OUTSTANDING
       
   306 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   307 		OUTSTANDING
       
   308 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0003-0001-ModeCheck_command06
       
   309 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command07
       
   310 		COMMAND		rSocketServ1		Connect
       
   311 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command09
       
   312 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0003-0001-SelectOutgoingIAP_command10
       
   313 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0003-0001-Start_command11
       
   314 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command12
       
   315 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0003-0001-GetByName_command13
       
   316 		OUTSTANDING
       
   317 		COMMAND		rHostResolver1		Close
       
   318 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0003-0001-Open_command15
       
   319 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0003-0001-Connect_command16
       
   320 		OUTSTANDING
       
   321 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0003-0001-BuildRequest_command17
       
   322 		COMMAND		rSocket1		Write
       
   323 		OUTSTANDING
       
   324 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0003-0001-SendBytesToSocket_command19
       
   325 		COMMAND		rSocket1		EndRequest
       
   326 		COMMAND		rSocket1		Write
       
   327 		OUTSTANDING
       
   328 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0003-0001-ResponseFromServer_command22
       
   329 		COMMAND		rSocket1		ShutDown
       
   330 		OUTSTANDING
       
   331 		COMMAND		rSocket1		Close
       
   332 		COMMAND		rConnection1		Stop
       
   333 		COMMAND		rConnection1		Close
       
   334 		COMMAND		mobileLine1		Close
       
   335 		COMMAND		rSocketServ1		Close
       
   336 		COMMAND		mmCustomAPI1		Close
       
   337 		COMMAND		rMobilePhone1		Close
       
   338 		COMMAND		telServer1		Close
       
   339 	END_TEST_BLOCK
       
   340 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0003
       
   341 
       
   342 
       
   343 
       
   344 
       
   345 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0004
       
   346 
       
   347 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0004
       
   348 //!@SYMAPI
       
   349 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   350 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   351 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   352 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   353 //!@SYMAuthor			ddamian
       
   354 //!@SYMCreationDate		9/5/2008 
       
   355 //!@SYMTestCaseDesc		Connect to a GPRS access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol.
       
   356 //!@SYMTestActions
       
   357 //!                1.- OpenTelServer
       
   358 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   359 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   360 //!                4.- ModeChange (ChangeMode = GSM)
       
   361 //!                5.- GetCurrentSystemNetworkModes
       
   362 //!                6.- ModeCheck (CheckMode = GSM)
       
   363 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   364 //!                8.- ConnectToSocketServ
       
   365 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   366 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   367 //!                11.- StartRConnection (Retries = 1)
       
   368 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   369 //!                13.- GetByName (Address = {URL,address1})
       
   370 //!                14.- CloseHostResolver
       
   371 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   372 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   373 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
   374 //!                18.- RSocketWrite
       
   375 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
   376 //!                20.- EndRequest
       
   377 //!                21.- RSocketWrite
       
   378 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   379 //!                23.- RSocketShutDown
       
   380 //!                24.- RSocketClose
       
   381 //!                25.- StopRConnection
       
   382 //!                26.- CloseRConnection
       
   383 //!                27.- CloseLine
       
   384 //!                28.- CloseSocketServ
       
   385 //!                29.- CloseCustomApi
       
   386 //!                30.- ClosePhone
       
   387 //!                31.- CloseTelServer
       
   388 //!@SYMTestStatus		Verified
       
   389 //!@SYMTestPriority		high
       
   390 //!@SYMTestExpectedResults
       
   391 //!                Connect to a GPRS access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
   392 //!@SYMTestType			CIT
       
   393 
       
   394 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   395 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   396 		CREATE_OBJECT	RSocket		rSocket1
       
   397 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   398 		CREATE_OBJECT	RConnection		rConnection1
       
   399 		CREATE_OBJECT	DataVerify		dataVerify1
       
   400 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   401 		CREATE_OBJECT	RTelServer		telServer1
       
   402 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   403 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   404 		COMMAND		telServer1		Connect
       
   405 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command02
       
   406 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command03
       
   407 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0004-0001-SetSystemNetworkMode_command04
       
   408 		OUTSTANDING
       
   409 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   410 		OUTSTANDING
       
   411 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0004-0001-ModeCheck_command06
       
   412 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command07
       
   413 		COMMAND		rSocketServ1		Connect
       
   414 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command09
       
   415 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0004-0001-SelectOutgoingIAP_command10
       
   416 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0004-0001-Start_command11
       
   417 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command12
       
   418 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0004-0001-GetByName_command13
       
   419 		OUTSTANDING
       
   420 		COMMAND		rHostResolver1		Close
       
   421 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0004-0001-Open_command15
       
   422 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0004-0001-Connect_command16
       
   423 		OUTSTANDING
       
   424 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0004-0001-BuildRequest_command17
       
   425 		COMMAND		rSocket1		Write
       
   426 		OUTSTANDING
       
   427 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0004-0001-SendBytesToSocket_command19
       
   428 		COMMAND		rSocket1		EndRequest
       
   429 		COMMAND		rSocket1		Write
       
   430 		OUTSTANDING
       
   431 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0004-0001-ResponseFromServer_command22
       
   432 		COMMAND		rSocket1		ShutDown
       
   433 		OUTSTANDING
       
   434 		COMMAND		rSocket1		Close
       
   435 		COMMAND		rConnection1		Stop
       
   436 		COMMAND		rConnection1		Close
       
   437 		COMMAND		mobileLine1		Close
       
   438 		COMMAND		rSocketServ1		Close
       
   439 		COMMAND		mmCustomAPI1		Close
       
   440 		COMMAND		rMobilePhone1		Close
       
   441 		COMMAND		telServer1		Close
       
   442 	END_TEST_BLOCK
       
   443 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0004
       
   444 
       
   445 
       
   446 
       
   447 
       
   448 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0005
       
   449 
       
   450 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0005
       
   451 //!@SYMAPI
       
   452 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   453 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   454 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   455 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   456 //!@SYMAuthor			ddamian
       
   457 //!@SYMCreationDate		9/5/2008 
       
   458 //!@SYMTestCaseDesc		Connect to a GPRS access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol.
       
   459 //!@SYMTestActions
       
   460 //!                1.- OpenTelServer
       
   461 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   462 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   463 //!                4.- ModeChange (ChangeMode = GSM)
       
   464 //!                5.- GetCurrentSystemNetworkModes
       
   465 //!                6.- ModeCheck (CheckMode = GSM)
       
   466 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   467 //!                8.- ConnectToSocketServ
       
   468 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   469 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   470 //!                11.- StartRConnection (Retries = 1)
       
   471 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   472 //!                13.- GetByName (Address = {URL,address1})
       
   473 //!                14.- CloseHostResolver
       
   474 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   475 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   476 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
   477 //!                18.- RSocketWrite
       
   478 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
   479 //!                20.- EndRequest
       
   480 //!                21.- RSocketWrite
       
   481 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   482 //!                23.- RSocketShutDown
       
   483 //!                24.- RSocketClose
       
   484 //!                25.- StopRConnection
       
   485 //!                26.- CloseRConnection
       
   486 //!                27.- CloseLine
       
   487 //!                28.- CloseSocketServ
       
   488 //!                29.- CloseCustomApi
       
   489 //!                30.- ClosePhone
       
   490 //!                31.- CloseTelServer
       
   491 //!@SYMTestStatus		Verified
       
   492 //!@SYMTestPriority		high
       
   493 //!@SYMTestExpectedResults
       
   494 //!                Connect to a GPRS access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
   495 //!@SYMTestType			CIT
       
   496 
       
   497 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   498 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   499 		CREATE_OBJECT	RSocket		rSocket1
       
   500 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   501 		CREATE_OBJECT	RConnection		rConnection1
       
   502 		CREATE_OBJECT	DataVerify		dataVerify1
       
   503 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   504 		CREATE_OBJECT	RTelServer		telServer1
       
   505 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   506 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   507 		COMMAND		telServer1		Connect
       
   508 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command02
       
   509 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command03
       
   510 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0005-0001-SetSystemNetworkMode_command04
       
   511 		OUTSTANDING
       
   512 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   513 		OUTSTANDING
       
   514 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0005-0001-ModeCheck_command06
       
   515 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command07
       
   516 		COMMAND		rSocketServ1		Connect
       
   517 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command09
       
   518 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0005-0001-SelectOutgoingIAP_command10
       
   519 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0005-0001-Start_command11
       
   520 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command12
       
   521 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0005-0001-GetByName_command13
       
   522 		OUTSTANDING
       
   523 		COMMAND		rHostResolver1		Close
       
   524 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0005-0001-Open_command15
       
   525 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0005-0001-Connect_command16
       
   526 		OUTSTANDING
       
   527 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0005-0001-BuildRequest_command17
       
   528 		COMMAND		rSocket1		Write
       
   529 		OUTSTANDING
       
   530 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0005-0001-SendBytesToSocket_command19
       
   531 		COMMAND		rSocket1		EndRequest
       
   532 		COMMAND		rSocket1		Write
       
   533 		OUTSTANDING
       
   534 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0005-0001-ResponseFromServer_command22
       
   535 		COMMAND		rSocket1		ShutDown
       
   536 		OUTSTANDING
       
   537 		COMMAND		rSocket1		Close
       
   538 		COMMAND		rConnection1		Stop
       
   539 		COMMAND		rConnection1		Close
       
   540 		COMMAND		mobileLine1		Close
       
   541 		COMMAND		rSocketServ1		Close
       
   542 		COMMAND		mmCustomAPI1		Close
       
   543 		COMMAND		rMobilePhone1		Close
       
   544 		COMMAND		telServer1		Close
       
   545 	END_TEST_BLOCK
       
   546 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0005
       
   547 
       
   548 
       
   549 
       
   550 
       
   551 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0006
       
   552 
       
   553 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0006
       
   554 //!@SYMAPI
       
   555 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   556 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   557 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   558 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   559 //!@SYMAuthor			ddamian
       
   560 //!@SYMCreationDate		9/5/2008 
       
   561 //!@SYMTestCaseDesc		Connect to a GPRS access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol.
       
   562 //!@SYMTestActions
       
   563 //!                1.- OpenTelServer
       
   564 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   565 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   566 //!                4.- ModeChange (ChangeMode = GSM)
       
   567 //!                5.- GetCurrentSystemNetworkModes
       
   568 //!                6.- ModeCheck (CheckMode = GSM)
       
   569 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   570 //!                8.- ConnectToSocketServ
       
   571 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
   572 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
   573 //!                11.- StartRConnection (Retries = 1)
       
   574 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   575 //!                13.- GetByName (Address = {URL,address1})
       
   576 //!                14.- CloseHostResolver
       
   577 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   578 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   579 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
   580 //!                18.- RSocketWrite
       
   581 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
   582 //!                20.- EndRequest
       
   583 //!                21.- RSocketWrite
       
   584 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   585 //!                23.- RSocketShutDown
       
   586 //!                24.- RSocketClose
       
   587 //!                25.- StopRConnection
       
   588 //!                26.- CloseRConnection
       
   589 //!                27.- CloseLine
       
   590 //!                28.- CloseSocketServ
       
   591 //!                29.- CloseCustomApi
       
   592 //!                30.- ClosePhone
       
   593 //!                31.- CloseTelServer
       
   594 //!@SYMTestStatus		Verified
       
   595 //!@SYMTestPriority		high
       
   596 //!@SYMTestExpectedResults
       
   597 //!                Connect to a GPRS access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
   598 //!@SYMTestType			CIT
       
   599 
       
   600 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   601 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   602 		CREATE_OBJECT	RSocket		rSocket1
       
   603 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   604 		CREATE_OBJECT	RConnection		rConnection1
       
   605 		CREATE_OBJECT	DataVerify		dataVerify1
       
   606 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   607 		CREATE_OBJECT	RTelServer		telServer1
       
   608 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   609 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   610 		COMMAND		telServer1		Connect
       
   611 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command02
       
   612 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command03
       
   613 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0006-0001-SetSystemNetworkMode_command04
       
   614 		OUTSTANDING
       
   615 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   616 		OUTSTANDING
       
   617 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0006-0001-ModeCheck_command06
       
   618 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command07
       
   619 		COMMAND		rSocketServ1		Connect
       
   620 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command09
       
   621 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0006-0001-SelectOutgoingIAP_command10
       
   622 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0006-0001-Start_command11
       
   623 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command12
       
   624 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0006-0001-GetByName_command13
       
   625 		OUTSTANDING
       
   626 		COMMAND		rHostResolver1		Close
       
   627 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0006-0001-Open_command15
       
   628 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0006-0001-Connect_command16
       
   629 		OUTSTANDING
       
   630 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0006-0001-BuildRequest_command17
       
   631 		COMMAND		rSocket1		Write
       
   632 		OUTSTANDING
       
   633 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0006-0001-SendBytesToSocket_command19
       
   634 		COMMAND		rSocket1		EndRequest
       
   635 		COMMAND		rSocket1		Write
       
   636 		OUTSTANDING
       
   637 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0006-0001-ResponseFromServer_command22
       
   638 		COMMAND		rSocket1		ShutDown
       
   639 		OUTSTANDING
       
   640 		COMMAND		rSocket1		Close
       
   641 		COMMAND		rConnection1		Stop
       
   642 		COMMAND		rConnection1		Close
       
   643 		COMMAND		mobileLine1		Close
       
   644 		COMMAND		rSocketServ1		Close
       
   645 		COMMAND		mmCustomAPI1		Close
       
   646 		COMMAND		rMobilePhone1		Close
       
   647 		COMMAND		telServer1		Close
       
   648 	END_TEST_BLOCK
       
   649 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0006
       
   650 
       
   651 
       
   652 
       
   653 
       
   654 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0007
       
   655 
       
   656 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0007
       
   657 //!@SYMAPI
       
   658 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   659 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   660 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   661 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   662 //!@SYMAuthor			ddamian
       
   663 //!@SYMCreationDate		9/5/2008 
       
   664 //!@SYMTestCaseDesc		Connect to a CSD access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol.
       
   665 //!@SYMTestActions
       
   666 //!                1.- OpenTelServer
       
   667 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   668 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   669 //!                4.- ModeChange (ChangeMode = Dual)
       
   670 //!                5.- GetCurrentSystemNetworkModes
       
   671 //!                6.- ModeCheck (CheckMode = Dual)
       
   672 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   673 //!                8.- ConnectToSocketServ
       
   674 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   675 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   676 //!                11.- StartRConnection (Retries = 1)
       
   677 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   678 //!                13.- GetByName (Address = {URL,address1})
       
   679 //!                14.- CloseHostResolver
       
   680 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   681 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   682 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
   683 //!                18.- RSocketWrite
       
   684 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
   685 //!                20.- EndRequest
       
   686 //!                21.- RSocketWrite
       
   687 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   688 //!                23.- RSocketShutDown
       
   689 //!                24.- RSocketClose
       
   690 //!                25.- StopRConnection
       
   691 //!                26.- CloseRConnection
       
   692 //!                27.- CloseLine
       
   693 //!                28.- CloseSocketServ
       
   694 //!                29.- CloseCustomApi
       
   695 //!                30.- ClosePhone
       
   696 //!                31.- CloseTelServer
       
   697 //!@SYMTestStatus		Verified
       
   698 //!@SYMTestPriority		high
       
   699 //!@SYMTestExpectedResults
       
   700 //!                Connect to a CSD access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
   701 //!@SYMTestType			CIT
       
   702 
       
   703 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   704 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   705 		CREATE_OBJECT	RSocket		rSocket1
       
   706 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   707 		CREATE_OBJECT	RConnection		rConnection1
       
   708 		CREATE_OBJECT	DataVerify		dataVerify1
       
   709 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   710 		CREATE_OBJECT	RTelServer		telServer1
       
   711 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   712 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   713 		COMMAND		telServer1		Connect
       
   714 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command02
       
   715 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command03
       
   716 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0007-0001-SetSystemNetworkMode_command04
       
   717 		OUTSTANDING
       
   718 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   719 		OUTSTANDING
       
   720 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0007-0001-ModeCheck_command06
       
   721 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command07
       
   722 		COMMAND		rSocketServ1		Connect
       
   723 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command09
       
   724 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0007-0001-SelectOutgoingIAP_command10
       
   725 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0007-0001-Start_command11
       
   726 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command12
       
   727 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0007-0001-GetByName_command13
       
   728 		OUTSTANDING
       
   729 		COMMAND		rHostResolver1		Close
       
   730 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0007-0001-Open_command15
       
   731 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0007-0001-Connect_command16
       
   732 		OUTSTANDING
       
   733 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0007-0001-BuildRequest_command17
       
   734 		COMMAND		rSocket1		Write
       
   735 		OUTSTANDING
       
   736 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0007-0001-SendBytesToSocket_command19
       
   737 		COMMAND		rSocket1		EndRequest
       
   738 		COMMAND		rSocket1		Write
       
   739 		OUTSTANDING
       
   740 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0007-0001-ResponseFromServer_command22
       
   741 		COMMAND		rSocket1		ShutDown
       
   742 		OUTSTANDING
       
   743 		COMMAND		rSocket1		Close
       
   744 		COMMAND		rConnection1		Stop
       
   745 		COMMAND		rConnection1		Close
       
   746 		COMMAND		mobileLine1		Close
       
   747 		COMMAND		rSocketServ1		Close
       
   748 		COMMAND		mmCustomAPI1		Close
       
   749 		COMMAND		rMobilePhone1		Close
       
   750 		COMMAND		telServer1		Close
       
   751 	END_TEST_BLOCK
       
   752 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0007
       
   753 
       
   754 
       
   755 
       
   756 
       
   757 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0008
       
   758 
       
   759 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0008
       
   760 //!@SYMAPI
       
   761 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   762 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   763 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   764 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   765 //!@SYMAuthor			ddamian
       
   766 //!@SYMCreationDate		9/5/2008 
       
   767 //!@SYMTestCaseDesc		Connect to a CSD access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol.
       
   768 //!@SYMTestActions
       
   769 //!                1.- OpenTelServer
       
   770 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   771 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   772 //!                4.- ModeChange (ChangeMode = Dual)
       
   773 //!                5.- GetCurrentSystemNetworkModes
       
   774 //!                6.- ModeCheck (CheckMode = Dual)
       
   775 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   776 //!                8.- ConnectToSocketServ
       
   777 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   778 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   779 //!                11.- StartRConnection (Retries = 1)
       
   780 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   781 //!                13.- GetByName (Address = {URL,address1})
       
   782 //!                14.- CloseHostResolver
       
   783 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   784 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   785 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
   786 //!                18.- RSocketWrite
       
   787 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
   788 //!                20.- EndRequest
       
   789 //!                21.- RSocketWrite
       
   790 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   791 //!                23.- RSocketShutDown
       
   792 //!                24.- RSocketClose
       
   793 //!                25.- StopRConnection
       
   794 //!                26.- CloseRConnection
       
   795 //!                27.- CloseLine
       
   796 //!                28.- CloseSocketServ
       
   797 //!                29.- CloseCustomApi
       
   798 //!                30.- ClosePhone
       
   799 //!                31.- CloseTelServer
       
   800 //!@SYMTestStatus		Verified
       
   801 //!@SYMTestPriority		high
       
   802 //!@SYMTestExpectedResults
       
   803 //!                Connect to a CSD access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
   804 //!@SYMTestType			CIT
       
   805 
       
   806 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   807 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   808 		CREATE_OBJECT	RSocket		rSocket1
       
   809 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   810 		CREATE_OBJECT	RConnection		rConnection1
       
   811 		CREATE_OBJECT	DataVerify		dataVerify1
       
   812 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   813 		CREATE_OBJECT	RTelServer		telServer1
       
   814 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   815 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   816 		COMMAND		telServer1		Connect
       
   817 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command02
       
   818 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command03
       
   819 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0008-0001-SetSystemNetworkMode_command04
       
   820 		OUTSTANDING
       
   821 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   822 		OUTSTANDING
       
   823 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0008-0001-ModeCheck_command06
       
   824 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command07
       
   825 		COMMAND		rSocketServ1		Connect
       
   826 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command09
       
   827 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0008-0001-SelectOutgoingIAP_command10
       
   828 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0008-0001-Start_command11
       
   829 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command12
       
   830 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0008-0001-GetByName_command13
       
   831 		OUTSTANDING
       
   832 		COMMAND		rHostResolver1		Close
       
   833 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0008-0001-Open_command15
       
   834 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0008-0001-Connect_command16
       
   835 		OUTSTANDING
       
   836 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0008-0001-BuildRequest_command17
       
   837 		COMMAND		rSocket1		Write
       
   838 		OUTSTANDING
       
   839 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0008-0001-SendBytesToSocket_command19
       
   840 		COMMAND		rSocket1		EndRequest
       
   841 		COMMAND		rSocket1		Write
       
   842 		OUTSTANDING
       
   843 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0008-0001-ResponseFromServer_command22
       
   844 		COMMAND		rSocket1		ShutDown
       
   845 		OUTSTANDING
       
   846 		COMMAND		rSocket1		Close
       
   847 		COMMAND		rConnection1		Stop
       
   848 		COMMAND		rConnection1		Close
       
   849 		COMMAND		mobileLine1		Close
       
   850 		COMMAND		rSocketServ1		Close
       
   851 		COMMAND		mmCustomAPI1		Close
       
   852 		COMMAND		rMobilePhone1		Close
       
   853 		COMMAND		telServer1		Close
       
   854 	END_TEST_BLOCK
       
   855 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0008
       
   856 
       
   857 
       
   858 
       
   859 
       
   860 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0009
       
   861 
       
   862 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0009
       
   863 //!@SYMAPI
       
   864 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   865 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   866 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   867 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   868 //!@SYMAuthor			ddamian
       
   869 //!@SYMCreationDate		9/5/2008 
       
   870 //!@SYMTestCaseDesc		Connect to a CSD access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol.
       
   871 //!@SYMTestActions
       
   872 //!                1.- OpenTelServer
       
   873 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   874 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   875 //!                4.- ModeChange (ChangeMode = Dual)
       
   876 //!                5.- GetCurrentSystemNetworkModes
       
   877 //!                6.- ModeCheck (CheckMode = Dual)
       
   878 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   879 //!                8.- ConnectToSocketServ
       
   880 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
   881 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
   882 //!                11.- StartRConnection (Retries = 1)
       
   883 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   884 //!                13.- GetByName (Address = {URL,address1})
       
   885 //!                14.- CloseHostResolver
       
   886 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   887 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   888 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
   889 //!                18.- RSocketWrite
       
   890 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
   891 //!                20.- EndRequest
       
   892 //!                21.- RSocketWrite
       
   893 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   894 //!                23.- RSocketShutDown
       
   895 //!                24.- RSocketClose
       
   896 //!                25.- StopRConnection
       
   897 //!                26.- CloseRConnection
       
   898 //!                27.- CloseLine
       
   899 //!                28.- CloseSocketServ
       
   900 //!                29.- CloseCustomApi
       
   901 //!                30.- ClosePhone
       
   902 //!                31.- CloseTelServer
       
   903 //!@SYMTestStatus		Verified
       
   904 //!@SYMTestPriority		high
       
   905 //!@SYMTestExpectedResults
       
   906 //!                Connect to a CSD access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
   907 //!@SYMTestType			CIT
       
   908 
       
   909 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
   910 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
   911 		CREATE_OBJECT	RSocket		rSocket1
       
   912 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
   913 		CREATE_OBJECT	RConnection		rConnection1
       
   914 		CREATE_OBJECT	DataVerify		dataVerify1
       
   915 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
   916 		CREATE_OBJECT	RTelServer		telServer1
       
   917 		CREATE_OBJECT	RMobileLine		mobileLine1
       
   918 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
   919 		COMMAND		telServer1		Connect
       
   920 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command02
       
   921 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command03
       
   922 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0009-0001-SetSystemNetworkMode_command04
       
   923 		OUTSTANDING
       
   924 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
   925 		OUTSTANDING
       
   926 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0009-0001-ModeCheck_command06
       
   927 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command07
       
   928 		COMMAND		rSocketServ1		Connect
       
   929 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command09
       
   930 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0009-0001-SelectOutgoingIAP_command10
       
   931 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0009-0001-Start_command11
       
   932 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command12
       
   933 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0009-0001-GetByName_command13
       
   934 		OUTSTANDING
       
   935 		COMMAND		rHostResolver1		Close
       
   936 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0009-0001-Open_command15
       
   937 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0009-0001-Connect_command16
       
   938 		OUTSTANDING
       
   939 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0009-0001-BuildRequest_command17
       
   940 		COMMAND		rSocket1		Write
       
   941 		OUTSTANDING
       
   942 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0009-0001-SendBytesToSocket_command19
       
   943 		COMMAND		rSocket1		EndRequest
       
   944 		COMMAND		rSocket1		Write
       
   945 		OUTSTANDING
       
   946 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0009-0001-ResponseFromServer_command22
       
   947 		COMMAND		rSocket1		ShutDown
       
   948 		OUTSTANDING
       
   949 		COMMAND		rSocket1		Close
       
   950 		COMMAND		rConnection1		Stop
       
   951 		COMMAND		rConnection1		Close
       
   952 		COMMAND		mobileLine1		Close
       
   953 		COMMAND		rSocketServ1		Close
       
   954 		COMMAND		mmCustomAPI1		Close
       
   955 		COMMAND		rMobilePhone1		Close
       
   956 		COMMAND		telServer1		Close
       
   957 	END_TEST_BLOCK
       
   958 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0009
       
   959 
       
   960 
       
   961 
       
   962 
       
   963 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0010
       
   964 
       
   965 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0010
       
   966 //!@SYMAPI
       
   967 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
   968 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
   969 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
   970 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
   971 //!@SYMAuthor			ddamian
       
   972 //!@SYMCreationDate		9/5/2008 
       
   973 //!@SYMTestCaseDesc		Connect to an HSCSD access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol.
       
   974 //!@SYMTestActions
       
   975 //!                1.- OpenTelServer
       
   976 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
   977 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
   978 //!                4.- ModeChange (ChangeMode = Dual)
       
   979 //!                5.- GetCurrentSystemNetworkModes
       
   980 //!                6.- ModeCheck (CheckMode = Dual)
       
   981 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
   982 //!                8.- ConnectToSocketServ
       
   983 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
   984 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
   985 //!                11.- StartRConnection (Retries = 1)
       
   986 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   987 //!                13.- GetByName (Address = {URL,address1})
       
   988 //!                14.- CloseHostResolver
       
   989 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
   990 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
   991 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
   992 //!                18.- RSocketWrite
       
   993 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
   994 //!                20.- EndRequest
       
   995 //!                21.- RSocketWrite
       
   996 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
   997 //!                23.- RSocketShutDown
       
   998 //!                24.- RSocketClose
       
   999 //!                25.- StopRConnection
       
  1000 //!                26.- CloseRConnection
       
  1001 //!                27.- CloseLine
       
  1002 //!                28.- CloseSocketServ
       
  1003 //!                29.- CloseCustomApi
       
  1004 //!                30.- ClosePhone
       
  1005 //!                31.- CloseTelServer
       
  1006 //!@SYMTestStatus		Verified
       
  1007 //!@SYMTestPriority		high
       
  1008 //!@SYMTestExpectedResults
       
  1009 //!                Connect to an HSCSD access point in Dual mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  1010 //!@SYMTestType			CIT
       
  1011 
       
  1012 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1013 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1014 		CREATE_OBJECT	RSocket		rSocket1
       
  1015 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1016 		CREATE_OBJECT	RConnection		rConnection1
       
  1017 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1018 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1019 		CREATE_OBJECT	RTelServer		telServer1
       
  1020 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1021 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1022 		COMMAND		telServer1		Connect
       
  1023 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command02
       
  1024 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command03
       
  1025 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0010-0001-SetSystemNetworkMode_command04
       
  1026 		OUTSTANDING
       
  1027 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1028 		OUTSTANDING
       
  1029 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0010-0001-ModeCheck_command06
       
  1030 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command07
       
  1031 		COMMAND		rSocketServ1		Connect
       
  1032 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command09
       
  1033 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0010-0001-SelectOutgoingIAP_command10
       
  1034 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0010-0001-Start_command11
       
  1035 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command12
       
  1036 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0010-0001-GetByName_command13
       
  1037 		OUTSTANDING
       
  1038 		COMMAND		rHostResolver1		Close
       
  1039 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0010-0001-Open_command15
       
  1040 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0010-0001-Connect_command16
       
  1041 		OUTSTANDING
       
  1042 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0010-0001-BuildRequest_command17
       
  1043 		COMMAND		rSocket1		Write
       
  1044 		OUTSTANDING
       
  1045 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0010-0001-SendBytesToSocket_command19
       
  1046 		COMMAND		rSocket1		EndRequest
       
  1047 		COMMAND		rSocket1		Write
       
  1048 		OUTSTANDING
       
  1049 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0010-0001-ResponseFromServer_command22
       
  1050 		COMMAND		rSocket1		ShutDown
       
  1051 		OUTSTANDING
       
  1052 		COMMAND		rSocket1		Close
       
  1053 		COMMAND		rConnection1		Stop
       
  1054 		COMMAND		rConnection1		Close
       
  1055 		COMMAND		mobileLine1		Close
       
  1056 		COMMAND		rSocketServ1		Close
       
  1057 		COMMAND		mmCustomAPI1		Close
       
  1058 		COMMAND		rMobilePhone1		Close
       
  1059 		COMMAND		telServer1		Close
       
  1060 	END_TEST_BLOCK
       
  1061 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0010
       
  1062 
       
  1063 
       
  1064 
       
  1065 
       
  1066 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0011
       
  1067 
       
  1068 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0011
       
  1069 //!@SYMAPI
       
  1070 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1071 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1072 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1073 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1074 //!@SYMAuthor			ddamian
       
  1075 //!@SYMCreationDate		9/5/2008 
       
  1076 //!@SYMTestCaseDesc		Connect to an HSCSD access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol.
       
  1077 //!@SYMTestActions
       
  1078 //!                1.- OpenTelServer
       
  1079 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1080 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1081 //!                4.- ModeChange (ChangeMode = Dual)
       
  1082 //!                5.- GetCurrentSystemNetworkModes
       
  1083 //!                6.- ModeCheck (CheckMode = Dual)
       
  1084 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1085 //!                8.- ConnectToSocketServ
       
  1086 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  1087 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  1088 //!                11.- StartRConnection (Retries = 1)
       
  1089 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1090 //!                13.- GetByName (Address = {URL,address1})
       
  1091 //!                14.- CloseHostResolver
       
  1092 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1093 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1094 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
  1095 //!                18.- RSocketWrite
       
  1096 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  1097 //!                20.- EndRequest
       
  1098 //!                21.- RSocketWrite
       
  1099 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1100 //!                23.- RSocketShutDown
       
  1101 //!                24.- RSocketClose
       
  1102 //!                25.- StopRConnection
       
  1103 //!                26.- CloseRConnection
       
  1104 //!                27.- CloseLine
       
  1105 //!                28.- CloseSocketServ
       
  1106 //!                29.- CloseCustomApi
       
  1107 //!                30.- ClosePhone
       
  1108 //!                31.- CloseTelServer
       
  1109 //!@SYMTestStatus		Verified
       
  1110 //!@SYMTestPriority		high
       
  1111 //!@SYMTestExpectedResults
       
  1112 //!                Connect to an HSCSD access point in Dual mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  1113 //!@SYMTestType			CIT
       
  1114 
       
  1115 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1116 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1117 		CREATE_OBJECT	RSocket		rSocket1
       
  1118 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1119 		CREATE_OBJECT	RConnection		rConnection1
       
  1120 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1121 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1122 		CREATE_OBJECT	RTelServer		telServer1
       
  1123 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1124 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1125 		COMMAND		telServer1		Connect
       
  1126 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command02
       
  1127 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command03
       
  1128 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0011-0001-SetSystemNetworkMode_command04
       
  1129 		OUTSTANDING
       
  1130 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1131 		OUTSTANDING
       
  1132 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0011-0001-ModeCheck_command06
       
  1133 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command07
       
  1134 		COMMAND		rSocketServ1		Connect
       
  1135 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command09
       
  1136 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0011-0001-SelectOutgoingIAP_command10
       
  1137 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0011-0001-Start_command11
       
  1138 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command12
       
  1139 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0011-0001-GetByName_command13
       
  1140 		OUTSTANDING
       
  1141 		COMMAND		rHostResolver1		Close
       
  1142 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0011-0001-Open_command15
       
  1143 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0011-0001-Connect_command16
       
  1144 		OUTSTANDING
       
  1145 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0011-0001-BuildRequest_command17
       
  1146 		COMMAND		rSocket1		Write
       
  1147 		OUTSTANDING
       
  1148 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0011-0001-SendBytesToSocket_command19
       
  1149 		COMMAND		rSocket1		EndRequest
       
  1150 		COMMAND		rSocket1		Write
       
  1151 		OUTSTANDING
       
  1152 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0011-0001-ResponseFromServer_command22
       
  1153 		COMMAND		rSocket1		ShutDown
       
  1154 		OUTSTANDING
       
  1155 		COMMAND		rSocket1		Close
       
  1156 		COMMAND		rConnection1		Stop
       
  1157 		COMMAND		rConnection1		Close
       
  1158 		COMMAND		mobileLine1		Close
       
  1159 		COMMAND		rSocketServ1		Close
       
  1160 		COMMAND		mmCustomAPI1		Close
       
  1161 		COMMAND		rMobilePhone1		Close
       
  1162 		COMMAND		telServer1		Close
       
  1163 	END_TEST_BLOCK
       
  1164 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0011
       
  1165 
       
  1166 
       
  1167 
       
  1168 
       
  1169 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0012
       
  1170 
       
  1171 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0012
       
  1172 //!@SYMAPI
       
  1173 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1174 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1175 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1176 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1177 //!@SYMAuthor			ddamian
       
  1178 //!@SYMCreationDate		9/5/2008 
       
  1179 //!@SYMTestCaseDesc		Connect to an HSCSD access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol.
       
  1180 //!@SYMTestActions
       
  1181 //!                1.- OpenTelServer
       
  1182 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1183 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1184 //!                4.- ModeChange (ChangeMode = Dual)
       
  1185 //!                5.- GetCurrentSystemNetworkModes
       
  1186 //!                6.- ModeCheck (CheckMode = Dual)
       
  1187 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1188 //!                8.- ConnectToSocketServ
       
  1189 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  1190 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  1191 //!                11.- StartRConnection (Retries = 1)
       
  1192 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1193 //!                13.- GetByName (Address = {URL,address1})
       
  1194 //!                14.- CloseHostResolver
       
  1195 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1196 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1197 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  1198 //!                18.- RSocketWrite
       
  1199 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  1200 //!                20.- EndRequest
       
  1201 //!                21.- RSocketWrite
       
  1202 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1203 //!                23.- RSocketShutDown
       
  1204 //!                24.- RSocketClose
       
  1205 //!                25.- StopRConnection
       
  1206 //!                26.- CloseRConnection
       
  1207 //!                27.- CloseLine
       
  1208 //!                28.- CloseSocketServ
       
  1209 //!                29.- CloseCustomApi
       
  1210 //!                30.- ClosePhone
       
  1211 //!                31.- CloseTelServer
       
  1212 //!@SYMTestStatus		Verified
       
  1213 //!@SYMTestPriority		high
       
  1214 //!@SYMTestExpectedResults
       
  1215 //!                Connect to an HSCSD access point in Dual mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  1216 //!@SYMTestType			CIT
       
  1217 
       
  1218 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1219 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1220 		CREATE_OBJECT	RSocket		rSocket1
       
  1221 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1222 		CREATE_OBJECT	RConnection		rConnection1
       
  1223 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1224 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1225 		CREATE_OBJECT	RTelServer		telServer1
       
  1226 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1227 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1228 		COMMAND		telServer1		Connect
       
  1229 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command02
       
  1230 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command03
       
  1231 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0012-0001-SetSystemNetworkMode_command04
       
  1232 		OUTSTANDING
       
  1233 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1234 		OUTSTANDING
       
  1235 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0012-0001-ModeCheck_command06
       
  1236 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command07
       
  1237 		COMMAND		rSocketServ1		Connect
       
  1238 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command09
       
  1239 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0012-0001-SelectOutgoingIAP_command10
       
  1240 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0012-0001-Start_command11
       
  1241 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command12
       
  1242 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0012-0001-GetByName_command13
       
  1243 		OUTSTANDING
       
  1244 		COMMAND		rHostResolver1		Close
       
  1245 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0012-0001-Open_command15
       
  1246 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0012-0001-Connect_command16
       
  1247 		OUTSTANDING
       
  1248 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0012-0001-BuildRequest_command17
       
  1249 		COMMAND		rSocket1		Write
       
  1250 		OUTSTANDING
       
  1251 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0012-0001-SendBytesToSocket_command19
       
  1252 		COMMAND		rSocket1		EndRequest
       
  1253 		COMMAND		rSocket1		Write
       
  1254 		OUTSTANDING
       
  1255 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0012-0001-ResponseFromServer_command22
       
  1256 		COMMAND		rSocket1		ShutDown
       
  1257 		OUTSTANDING
       
  1258 		COMMAND		rSocket1		Close
       
  1259 		COMMAND		rConnection1		Stop
       
  1260 		COMMAND		rConnection1		Close
       
  1261 		COMMAND		mobileLine1		Close
       
  1262 		COMMAND		rSocketServ1		Close
       
  1263 		COMMAND		mmCustomAPI1		Close
       
  1264 		COMMAND		rMobilePhone1		Close
       
  1265 		COMMAND		telServer1		Close
       
  1266 	END_TEST_BLOCK
       
  1267 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0012
       
  1268 
       
  1269 
       
  1270 
       
  1271 
       
  1272 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0013
       
  1273 
       
  1274 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0013
       
  1275 //!@SYMAPI
       
  1276 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1277 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1278 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1279 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1280 //!@SYMAuthor			ddamian
       
  1281 //!@SYMCreationDate		25/4/2008
       
  1282 //!@SYMTestCaseDesc		Connect to a CSD access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol.
       
  1283 //!@SYMTestActions
       
  1284 //!                1.- OpenTelServer
       
  1285 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1286 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1287 //!                4.- ModeChange (ChangeMode = GSM)
       
  1288 //!                5.- GetCurrentSystemNetworkModes
       
  1289 //!                6.- ModeCheck (CheckMode = GSM)
       
  1290 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1291 //!                8.- ConnectToSocketServ
       
  1292 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  1293 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  1294 //!                11.- StartRConnection (Retries = 1)
       
  1295 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1296 //!                13.- GetByName (Address = {URL,address1})
       
  1297 //!                14.- CloseHostResolver
       
  1298 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1299 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1300 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
  1301 //!                18.- RSocketWrite
       
  1302 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
  1303 //!                20.- EndRequest
       
  1304 //!                21.- RSocketWrite
       
  1305 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1306 //!                23.- RSocketShutDown
       
  1307 //!                24.- RSocketClose
       
  1308 //!                25.- StopRConnection
       
  1309 //!                26.- CloseRConnection
       
  1310 //!                27.- CloseLine
       
  1311 //!                28.- CloseSocketServ
       
  1312 //!                29.- CloseCustomApi
       
  1313 //!                30.- ClosePhone
       
  1314 //!                31.- CloseTelServer
       
  1315 //!@SYMTestStatus		Verified
       
  1316 //!@SYMTestPriority		high
       
  1317 //!@SYMTestExpectedResults
       
  1318 //!                Connect to a CSD access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  1319 //!@SYMTestType			CIT
       
  1320 
       
  1321 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1322 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1323 		CREATE_OBJECT	RSocket		rSocket1
       
  1324 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1325 		CREATE_OBJECT	RConnection		rConnection1
       
  1326 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1327 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1328 		CREATE_OBJECT	RTelServer		telServer1
       
  1329 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1330 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1331 		COMMAND		telServer1		Connect
       
  1332 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command02
       
  1333 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command03
       
  1334 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0013-0001-SetSystemNetworkMode_command04
       
  1335 		OUTSTANDING
       
  1336 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1337 		OUTSTANDING
       
  1338 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0013-0001-ModeCheck_command06
       
  1339 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command07
       
  1340 		COMMAND		rSocketServ1		Connect
       
  1341 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command09
       
  1342 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0013-0001-SelectOutgoingIAP_command10
       
  1343 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0013-0001-Start_command11
       
  1344 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command12
       
  1345 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0013-0001-GetByName_command13
       
  1346 		OUTSTANDING
       
  1347 		COMMAND		rHostResolver1		Close
       
  1348 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0013-0001-Open_command15
       
  1349 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0013-0001-Connect_command16
       
  1350 		OUTSTANDING
       
  1351 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0013-0001-BuildRequest_command17
       
  1352 		COMMAND		rSocket1		Write
       
  1353 		OUTSTANDING
       
  1354 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0013-0001-SendBytesToSocket_command19
       
  1355 		COMMAND		rSocket1		EndRequest
       
  1356 		COMMAND		rSocket1		Write
       
  1357 		OUTSTANDING
       
  1358 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0013-0001-ResponseFromServer_command22
       
  1359 		COMMAND		rSocket1		ShutDown
       
  1360 		OUTSTANDING
       
  1361 		COMMAND		rSocket1		Close
       
  1362 		COMMAND		rConnection1		Stop
       
  1363 		COMMAND		rConnection1		Close
       
  1364 		COMMAND		mobileLine1		Close
       
  1365 		COMMAND		rSocketServ1		Close
       
  1366 		COMMAND		mmCustomAPI1		Close
       
  1367 		COMMAND		rMobilePhone1		Close
       
  1368 		COMMAND		telServer1		Close
       
  1369 	END_TEST_BLOCK
       
  1370 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0013
       
  1371 
       
  1372 
       
  1373 
       
  1374 
       
  1375 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0014
       
  1376 
       
  1377 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0014
       
  1378 //!@SYMAPI
       
  1379 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1380 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1381 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1382 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1383 //!@SYMAuthor			ddamian
       
  1384 //!@SYMCreationDate		25/4/2008
       
  1385 //!@SYMTestCaseDesc		Connect to a CSD access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol.
       
  1386 //!@SYMTestActions
       
  1387 //!                1.- OpenTelServer
       
  1388 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1389 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1390 //!                4.- ModeChange (ChangeMode = GSM)
       
  1391 //!                5.- GetCurrentSystemNetworkModes
       
  1392 //!                6.- ModeCheck (CheckMode = GSM)
       
  1393 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1394 //!                8.- ConnectToSocketServ
       
  1395 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  1396 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  1397 //!                11.- StartRConnection (Retries = 1)
       
  1398 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1399 //!                13.- GetByName (Address = {URL,address1})
       
  1400 //!                14.- CloseHostResolver
       
  1401 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1402 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1403 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
  1404 //!                18.- RSocketWrite
       
  1405 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  1406 //!                20.- EndRequest
       
  1407 //!                21.- RSocketWrite
       
  1408 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1409 //!                23.- RSocketShutDown
       
  1410 //!                24.- RSocketClose
       
  1411 //!                25.- StopRConnection
       
  1412 //!                26.- CloseRConnection
       
  1413 //!                27.- CloseLine
       
  1414 //!                28.- CloseSocketServ
       
  1415 //!                29.- CloseCustomApi
       
  1416 //!                30.- ClosePhone
       
  1417 //!                31.- CloseTelServer
       
  1418 //!@SYMTestStatus		Verified
       
  1419 //!@SYMTestPriority		high
       
  1420 //!@SYMTestExpectedResults
       
  1421 //!                Connect to a CSD access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  1422 //!@SYMTestType			CIT
       
  1423 
       
  1424 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1425 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1426 		CREATE_OBJECT	RSocket		rSocket1
       
  1427 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1428 		CREATE_OBJECT	RConnection		rConnection1
       
  1429 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1430 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1431 		CREATE_OBJECT	RTelServer		telServer1
       
  1432 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1433 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1434 		COMMAND		telServer1		Connect
       
  1435 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command02
       
  1436 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command03
       
  1437 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0014-0001-SetSystemNetworkMode_command04
       
  1438 		OUTSTANDING
       
  1439 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1440 		OUTSTANDING
       
  1441 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0014-0001-ModeCheck_command06
       
  1442 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command07
       
  1443 		COMMAND		rSocketServ1		Connect
       
  1444 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command09
       
  1445 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0014-0001-SelectOutgoingIAP_command10
       
  1446 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0014-0001-Start_command11
       
  1447 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command12
       
  1448 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0014-0001-GetByName_command13
       
  1449 		OUTSTANDING
       
  1450 		COMMAND		rHostResolver1		Close
       
  1451 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0014-0001-Open_command15
       
  1452 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0014-0001-Connect_command16
       
  1453 		OUTSTANDING
       
  1454 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0014-0001-BuildRequest_command17
       
  1455 		COMMAND		rSocket1		Write
       
  1456 		OUTSTANDING
       
  1457 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0014-0001-SendBytesToSocket_command19
       
  1458 		COMMAND		rSocket1		EndRequest
       
  1459 		COMMAND		rSocket1		Write
       
  1460 		OUTSTANDING
       
  1461 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0014-0001-ResponseFromServer_command22
       
  1462 		COMMAND		rSocket1		ShutDown
       
  1463 		OUTSTANDING
       
  1464 		COMMAND		rSocket1		Close
       
  1465 		COMMAND		rConnection1		Stop
       
  1466 		COMMAND		rConnection1		Close
       
  1467 		COMMAND		mobileLine1		Close
       
  1468 		COMMAND		rSocketServ1		Close
       
  1469 		COMMAND		mmCustomAPI1		Close
       
  1470 		COMMAND		rMobilePhone1		Close
       
  1471 		COMMAND		telServer1		Close
       
  1472 	END_TEST_BLOCK
       
  1473 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0014
       
  1474 
       
  1475 
       
  1476 
       
  1477 
       
  1478 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0015
       
  1479 
       
  1480 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0015
       
  1481 //!@SYMAPI
       
  1482 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1483 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1484 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1485 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1486 //!@SYMAuthor			ddamian
       
  1487 //!@SYMCreationDate		25/4/2008
       
  1488 //!@SYMTestCaseDesc		Connect to a CSD access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol.
       
  1489 //!@SYMTestActions
       
  1490 //!                1.- OpenTelServer
       
  1491 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1492 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1493 //!                4.- ModeChange (ChangeMode = GSM)
       
  1494 //!                5.- GetCurrentSystemNetworkModes
       
  1495 //!                6.- ModeCheck (CheckMode = GSM)
       
  1496 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1497 //!                8.- ConnectToSocketServ
       
  1498 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  1499 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  1500 //!                11.- StartRConnection (Retries = 1)
       
  1501 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1502 //!                13.- GetByName (Address = {URL,address1})
       
  1503 //!                14.- CloseHostResolver
       
  1504 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1505 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1506 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  1507 //!                18.- RSocketWrite
       
  1508 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  1509 //!                20.- EndRequest
       
  1510 //!                21.- RSocketWrite
       
  1511 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1512 //!                23.- RSocketShutDown
       
  1513 //!                24.- RSocketClose
       
  1514 //!                25.- StopRConnection
       
  1515 //!                26.- CloseRConnection
       
  1516 //!                27.- CloseLine
       
  1517 //!                28.- CloseSocketServ
       
  1518 //!                29.- CloseCustomApi
       
  1519 //!                30.- ClosePhone
       
  1520 //!                31.- CloseTelServer
       
  1521 //!@SYMTestStatus		Verified
       
  1522 //!@SYMTestPriority		high
       
  1523 //!@SYMTestExpectedResults
       
  1524 //!                Connect to a CSD access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  1525 //!@SYMTestType			CIT
       
  1526 
       
  1527 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1528 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1529 		CREATE_OBJECT	RSocket		rSocket1
       
  1530 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1531 		CREATE_OBJECT	RConnection		rConnection1
       
  1532 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1533 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1534 		CREATE_OBJECT	RTelServer		telServer1
       
  1535 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1536 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1537 		COMMAND		telServer1		Connect
       
  1538 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command02
       
  1539 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command03
       
  1540 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0015-0001-SetSystemNetworkMode_command04
       
  1541 		OUTSTANDING
       
  1542 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1543 		OUTSTANDING
       
  1544 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0015-0001-ModeCheck_command06
       
  1545 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command07
       
  1546 		COMMAND		rSocketServ1		Connect
       
  1547 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command09
       
  1548 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0015-0001-SelectOutgoingIAP_command10
       
  1549 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0015-0001-Start_command11
       
  1550 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command12
       
  1551 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0015-0001-GetByName_command13
       
  1552 		OUTSTANDING
       
  1553 		COMMAND		rHostResolver1		Close
       
  1554 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0015-0001-Open_command15
       
  1555 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0015-0001-Connect_command16
       
  1556 		OUTSTANDING
       
  1557 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0015-0001-BuildRequest_command17
       
  1558 		COMMAND		rSocket1		Write
       
  1559 		OUTSTANDING
       
  1560 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0015-0001-SendBytesToSocket_command19
       
  1561 		COMMAND		rSocket1		EndRequest
       
  1562 		COMMAND		rSocket1		Write
       
  1563 		OUTSTANDING
       
  1564 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0015-0001-ResponseFromServer_command22
       
  1565 		COMMAND		rSocket1		ShutDown
       
  1566 		OUTSTANDING
       
  1567 		COMMAND		rSocket1		Close
       
  1568 		COMMAND		rConnection1		Stop
       
  1569 		COMMAND		rConnection1		Close
       
  1570 		COMMAND		mobileLine1		Close
       
  1571 		COMMAND		rSocketServ1		Close
       
  1572 		COMMAND		mmCustomAPI1		Close
       
  1573 		COMMAND		rMobilePhone1		Close
       
  1574 		COMMAND		telServer1		Close
       
  1575 	END_TEST_BLOCK
       
  1576 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0015
       
  1577 
       
  1578 
       
  1579 
       
  1580 
       
  1581 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0016
       
  1582 
       
  1583 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0016
       
  1584 //!@SYMAPI
       
  1585 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1586 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1587 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1588 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1589 //!@SYMAuthor			ddamian
       
  1590 //!@SYMCreationDate		9/5/2008 
       
  1591 //!@SYMTestCaseDesc		Connect to a HSCSD access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol.
       
  1592 //!@SYMTestActions
       
  1593 //!                1.- OpenTelServer
       
  1594 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1595 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1596 //!                4.- ModeChange (ChangeMode = GSM)
       
  1597 //!                5.- GetCurrentSystemNetworkModes
       
  1598 //!                6.- ModeCheck (CheckMode = GSM)
       
  1599 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1600 //!                8.- ConnectToSocketServ
       
  1601 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  1602 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  1603 //!                11.- StartRConnection (Retries = 1)
       
  1604 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1605 //!                13.- GetByName (Address = {URL,address1})
       
  1606 //!                14.- CloseHostResolver
       
  1607 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1608 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1609 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
  1610 //!                18.- RSocketWrite
       
  1611 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
  1612 //!                20.- EndRequest
       
  1613 //!                21.- RSocketWrite
       
  1614 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1615 //!                23.- RSocketShutDown
       
  1616 //!                24.- RSocketClose
       
  1617 //!                25.- StopRConnection
       
  1618 //!                26.- CloseRConnection
       
  1619 //!                27.- CloseLine
       
  1620 //!                28.- CloseSocketServ
       
  1621 //!                29.- CloseCustomApi
       
  1622 //!                30.- ClosePhone
       
  1623 //!                31.- CloseTelServer
       
  1624 //!@SYMTestStatus		Verified
       
  1625 //!@SYMTestPriority		high
       
  1626 //!@SYMTestExpectedResults
       
  1627 //!                Connect to a HSCSD access point in GSM mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  1628 //!@SYMTestType			CIT
       
  1629 
       
  1630 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1631 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1632 		CREATE_OBJECT	RSocket		rSocket1
       
  1633 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1634 		CREATE_OBJECT	RConnection		rConnection1
       
  1635 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1636 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1637 		CREATE_OBJECT	RTelServer		telServer1
       
  1638 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1639 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1640 		COMMAND		telServer1		Connect
       
  1641 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command02
       
  1642 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command03
       
  1643 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0016-0001-SetSystemNetworkMode_command04
       
  1644 		OUTSTANDING
       
  1645 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1646 		OUTSTANDING
       
  1647 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0016-0001-ModeCheck_command06
       
  1648 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command07
       
  1649 		COMMAND		rSocketServ1		Connect
       
  1650 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command09
       
  1651 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0016-0001-SelectOutgoingIAP_command10
       
  1652 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0016-0001-Start_command11
       
  1653 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command12
       
  1654 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0016-0001-GetByName_command13
       
  1655 		OUTSTANDING
       
  1656 		COMMAND		rHostResolver1		Close
       
  1657 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0016-0001-Open_command15
       
  1658 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0016-0001-Connect_command16
       
  1659 		OUTSTANDING
       
  1660 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0016-0001-BuildRequest_command17
       
  1661 		COMMAND		rSocket1		Write
       
  1662 		OUTSTANDING
       
  1663 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0016-0001-SendBytesToSocket_command19
       
  1664 		COMMAND		rSocket1		EndRequest
       
  1665 		COMMAND		rSocket1		Write
       
  1666 		OUTSTANDING
       
  1667 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0016-0001-ResponseFromServer_command22
       
  1668 		COMMAND		rSocket1		ShutDown
       
  1669 		OUTSTANDING
       
  1670 		COMMAND		rSocket1		Close
       
  1671 		COMMAND		rConnection1		Stop
       
  1672 		COMMAND		rConnection1		Close
       
  1673 		COMMAND		mobileLine1		Close
       
  1674 		COMMAND		rSocketServ1		Close
       
  1675 		COMMAND		mmCustomAPI1		Close
       
  1676 		COMMAND		rMobilePhone1		Close
       
  1677 		COMMAND		telServer1		Close
       
  1678 	END_TEST_BLOCK
       
  1679 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0016
       
  1680 
       
  1681 
       
  1682 
       
  1683 
       
  1684 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0017
       
  1685 
       
  1686 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0017
       
  1687 //!@SYMAPI
       
  1688 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1689 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1690 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1691 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1692 //!@SYMAuthor			ddamian
       
  1693 //!@SYMCreationDate		9/5/2008 
       
  1694 //!@SYMTestCaseDesc		Connect to a HSCSD access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol.
       
  1695 //!@SYMTestActions
       
  1696 //!                1.- OpenTelServer
       
  1697 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1698 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1699 //!                4.- ModeChange (ChangeMode = GSM)
       
  1700 //!                5.- GetCurrentSystemNetworkModes
       
  1701 //!                6.- ModeCheck (CheckMode = GSM)
       
  1702 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1703 //!                8.- ConnectToSocketServ
       
  1704 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  1705 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  1706 //!                11.- StartRConnection (Retries = 1)
       
  1707 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1708 //!                13.- GetByName (Address = {URL,address1})
       
  1709 //!                14.- CloseHostResolver
       
  1710 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1711 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1712 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
  1713 //!                18.- RSocketWrite
       
  1714 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  1715 //!                20.- EndRequest
       
  1716 //!                21.- RSocketWrite
       
  1717 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1718 //!                23.- RSocketShutDown
       
  1719 //!                24.- RSocketClose
       
  1720 //!                25.- StopRConnection
       
  1721 //!                26.- CloseRConnection
       
  1722 //!                27.- CloseLine
       
  1723 //!                28.- CloseSocketServ
       
  1724 //!                29.- CloseCustomApi
       
  1725 //!                30.- ClosePhone
       
  1726 //!                31.- CloseTelServer
       
  1727 //!@SYMTestStatus		Verified
       
  1728 //!@SYMTestPriority		high
       
  1729 //!@SYMTestExpectedResults
       
  1730 //!                Connect to a HSCSD access point in GSM mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  1731 //!@SYMTestType			CIT
       
  1732 
       
  1733 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1734 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1735 		CREATE_OBJECT	RSocket		rSocket1
       
  1736 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1737 		CREATE_OBJECT	RConnection		rConnection1
       
  1738 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1739 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1740 		CREATE_OBJECT	RTelServer		telServer1
       
  1741 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1742 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1743 		COMMAND		telServer1		Connect
       
  1744 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command02
       
  1745 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command03
       
  1746 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0017-0001-SetSystemNetworkMode_command04
       
  1747 		OUTSTANDING
       
  1748 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1749 		OUTSTANDING
       
  1750 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0017-0001-ModeCheck_command06
       
  1751 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command07
       
  1752 		COMMAND		rSocketServ1		Connect
       
  1753 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command09
       
  1754 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0017-0001-SelectOutgoingIAP_command10
       
  1755 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0017-0001-Start_command11
       
  1756 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command12
       
  1757 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0017-0001-GetByName_command13
       
  1758 		OUTSTANDING
       
  1759 		COMMAND		rHostResolver1		Close
       
  1760 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0017-0001-Open_command15
       
  1761 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0017-0001-Connect_command16
       
  1762 		OUTSTANDING
       
  1763 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0017-0001-BuildRequest_command17
       
  1764 		COMMAND		rSocket1		Write
       
  1765 		OUTSTANDING
       
  1766 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0017-0001-SendBytesToSocket_command19
       
  1767 		COMMAND		rSocket1		EndRequest
       
  1768 		COMMAND		rSocket1		Write
       
  1769 		OUTSTANDING
       
  1770 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0017-0001-ResponseFromServer_command22
       
  1771 		COMMAND		rSocket1		ShutDown
       
  1772 		OUTSTANDING
       
  1773 		COMMAND		rSocket1		Close
       
  1774 		COMMAND		rConnection1		Stop
       
  1775 		COMMAND		rConnection1		Close
       
  1776 		COMMAND		mobileLine1		Close
       
  1777 		COMMAND		rSocketServ1		Close
       
  1778 		COMMAND		mmCustomAPI1		Close
       
  1779 		COMMAND		rMobilePhone1		Close
       
  1780 		COMMAND		telServer1		Close
       
  1781 	END_TEST_BLOCK
       
  1782 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0017
       
  1783 
       
  1784 
       
  1785 
       
  1786 
       
  1787 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0018
       
  1788 
       
  1789 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0018
       
  1790 //!@SYMAPI
       
  1791 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1792 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1793 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1794 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1795 //!@SYMAuthor			ddamian
       
  1796 //!@SYMCreationDate		9/5/2008 
       
  1797 //!@SYMTestCaseDesc		Connect to a HSCSD access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol.
       
  1798 //!@SYMTestActions
       
  1799 //!                1.- OpenTelServer
       
  1800 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1801 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1802 //!                4.- ModeChange (ChangeMode = GSM)
       
  1803 //!                5.- GetCurrentSystemNetworkModes
       
  1804 //!                6.- ModeCheck (CheckMode = GSM)
       
  1805 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1806 //!                8.- ConnectToSocketServ
       
  1807 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  1808 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  1809 //!                11.- StartRConnection (Retries = 1)
       
  1810 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1811 //!                13.- GetByName (Address = {URL,address1})
       
  1812 //!                14.- CloseHostResolver
       
  1813 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1814 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1815 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  1816 //!                18.- RSocketWrite
       
  1817 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  1818 //!                20.- EndRequest
       
  1819 //!                21.- RSocketWrite
       
  1820 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1821 //!                23.- RSocketShutDown
       
  1822 //!                24.- RSocketClose
       
  1823 //!                25.- StopRConnection
       
  1824 //!                26.- CloseRConnection
       
  1825 //!                27.- CloseLine
       
  1826 //!                28.- CloseSocketServ
       
  1827 //!                29.- CloseCustomApi
       
  1828 //!                30.- ClosePhone
       
  1829 //!                31.- CloseTelServer
       
  1830 //!@SYMTestStatus		Verified
       
  1831 //!@SYMTestPriority		high
       
  1832 //!@SYMTestExpectedResults
       
  1833 //!                Connect to a HSCSD access point in GSM mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  1834 //!@SYMTestType			CIT
       
  1835 
       
  1836 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1837 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1838 		CREATE_OBJECT	RSocket		rSocket1
       
  1839 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1840 		CREATE_OBJECT	RConnection		rConnection1
       
  1841 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1842 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1843 		CREATE_OBJECT	RTelServer		telServer1
       
  1844 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1845 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1846 		COMMAND		telServer1		Connect
       
  1847 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command02
       
  1848 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command03
       
  1849 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0018-0001-SetSystemNetworkMode_command04
       
  1850 		OUTSTANDING
       
  1851 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1852 		OUTSTANDING
       
  1853 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0018-0001-ModeCheck_command06
       
  1854 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command07
       
  1855 		COMMAND		rSocketServ1		Connect
       
  1856 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command09
       
  1857 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0018-0001-SelectOutgoingIAP_command10
       
  1858 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0018-0001-Start_command11
       
  1859 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command12
       
  1860 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0018-0001-GetByName_command13
       
  1861 		OUTSTANDING
       
  1862 		COMMAND		rHostResolver1		Close
       
  1863 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0018-0001-Open_command15
       
  1864 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0018-0001-Connect_command16
       
  1865 		OUTSTANDING
       
  1866 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0018-0001-BuildRequest_command17
       
  1867 		COMMAND		rSocket1		Write
       
  1868 		OUTSTANDING
       
  1869 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0018-0001-SendBytesToSocket_command19
       
  1870 		COMMAND		rSocket1		EndRequest
       
  1871 		COMMAND		rSocket1		Write
       
  1872 		OUTSTANDING
       
  1873 		//COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0018-0001-ResponseFromServer_command22
       
  1874 		COMMAND		rSocket1		ShutDown
       
  1875 		OUTSTANDING
       
  1876 		COMMAND		rSocket1		Close
       
  1877 		COMMAND		rConnection1		Stop
       
  1878 		COMMAND		rConnection1		Close
       
  1879 		COMMAND		mobileLine1		Close
       
  1880 		COMMAND		rSocketServ1		Close
       
  1881 		COMMAND		mmCustomAPI1		Close
       
  1882 		COMMAND		rMobilePhone1		Close
       
  1883 		COMMAND		telServer1		Close
       
  1884 	END_TEST_BLOCK
       
  1885 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0018
       
  1886 
       
  1887 
       
  1888 
       
  1889 
       
  1890 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0019
       
  1891 
       
  1892 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0019
       
  1893 //!@SYMAPI
       
  1894 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1895 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1896 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  1897 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  1898 //!@SYMAuthor			ddamian
       
  1899 //!@SYMCreationDate		9/5/2008 
       
  1900 //!@SYMTestCaseDesc		Connect to a CSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol.
       
  1901 //!@SYMTestActions
       
  1902 //!                1.- OpenTelServer
       
  1903 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  1904 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  1905 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  1906 //!                5.- GetCurrentSystemNetworkModes
       
  1907 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  1908 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  1909 //!                8.- ConnectToSocketServ
       
  1910 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  1911 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  1912 //!                11.- StartRConnection (Retries = 1)
       
  1913 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1914 //!                13.- GetByName (Address = {URL,address1})
       
  1915 //!                14.- CloseHostResolver
       
  1916 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  1917 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  1918 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
  1919 //!                18.- RSocketWrite
       
  1920 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
  1921 //!                20.- EndRequest
       
  1922 //!                21.- RSocketWrite
       
  1923 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  1924 //!                23.- RSocketShutDown
       
  1925 //!                24.- RSocketClose
       
  1926 //!                25.- StopRConnection
       
  1927 //!                26.- CloseRConnection
       
  1928 //!                27.- CloseLine
       
  1929 //!                28.- CloseSocketServ
       
  1930 //!                29.- CloseCustomApi
       
  1931 //!                30.- ClosePhone
       
  1932 //!                31.- CloseTelServer
       
  1933 //!@SYMTestStatus		Implemented
       
  1934 //!@SYMTestPriority		high
       
  1935 //!@SYMTestExpectedResults
       
  1936 //!                Connect to a CSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  1937 //!@SYMTestType			CIT
       
  1938 
       
  1939 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  1940 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  1941 		CREATE_OBJECT	RSocket		rSocket1
       
  1942 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  1943 		CREATE_OBJECT	RConnection		rConnection1
       
  1944 		CREATE_OBJECT	DataVerify		dataVerify1
       
  1945 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  1946 		CREATE_OBJECT	RTelServer		telServer1
       
  1947 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  1948 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  1949 		COMMAND		telServer1		Connect
       
  1950 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command02
       
  1951 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command03
       
  1952 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0019-0001-SetSystemNetworkMode_command04
       
  1953 		OUTSTANDING
       
  1954 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  1955 		OUTSTANDING
       
  1956 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0019-0001-ModeCheck_command06
       
  1957 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command07
       
  1958 		COMMAND		rSocketServ1		Connect
       
  1959 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command09
       
  1960 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0019-0001-SelectOutgoingIAP_command10
       
  1961 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0019-0001-Start_command11
       
  1962 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command12
       
  1963 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0019-0001-GetByName_command13
       
  1964 		OUTSTANDING
       
  1965 		COMMAND		rHostResolver1		Close
       
  1966 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0019-0001-Open_command15
       
  1967 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0019-0001-Connect_command16
       
  1968 		OUTSTANDING
       
  1969 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0019-0001-BuildRequest_command17
       
  1970 		COMMAND		rSocket1		Write
       
  1971 		OUTSTANDING
       
  1972 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0019-0001-SendBytesToSocket_command19
       
  1973 		COMMAND		rSocket1		EndRequest
       
  1974 		COMMAND		rSocket1		Write
       
  1975 		OUTSTANDING
       
  1976 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0019-0001-ResponseFromServer_command22
       
  1977 		COMMAND		rSocket1		ShutDown
       
  1978 		OUTSTANDING
       
  1979 		COMMAND		rSocket1		Close
       
  1980 		COMMAND		rConnection1		Stop
       
  1981 		COMMAND		rConnection1		Close
       
  1982 		COMMAND		mobileLine1		Close
       
  1983 		COMMAND		rSocketServ1		Close
       
  1984 		COMMAND		mmCustomAPI1		Close
       
  1985 		COMMAND		rMobilePhone1		Close
       
  1986 		COMMAND		telServer1		Close
       
  1987 	END_TEST_BLOCK
       
  1988 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0019
       
  1989 
       
  1990 
       
  1991 
       
  1992 
       
  1993 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0020
       
  1994 
       
  1995 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0020
       
  1996 //!@SYMAPI
       
  1997 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  1998 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  1999 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2000 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2001 //!@SYMAuthor			ddamian
       
  2002 //!@SYMCreationDate		9/5/2008 
       
  2003 //!@SYMTestCaseDesc		Connect to a CSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol.
       
  2004 //!@SYMTestActions
       
  2005 //!                1.- OpenTelServer
       
  2006 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2007 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2008 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2009 //!                5.- GetCurrentSystemNetworkModes
       
  2010 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2011 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2012 //!                8.- ConnectToSocketServ
       
  2013 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2014 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2015 //!                11.- StartRConnection (Retries = 1)
       
  2016 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2017 //!                13.- GetByName (Address = {URL,address1})
       
  2018 //!                14.- CloseHostResolver
       
  2019 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2020 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2021 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
  2022 //!                18.- RSocketWrite
       
  2023 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  2024 //!                20.- EndRequest
       
  2025 //!                21.- RSocketWrite
       
  2026 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2027 //!                23.- RSocketShutDown
       
  2028 //!                24.- RSocketClose
       
  2029 //!                25.- StopRConnection
       
  2030 //!                26.- CloseRConnection
       
  2031 //!                27.- CloseLine
       
  2032 //!                28.- CloseSocketServ
       
  2033 //!                29.- CloseCustomApi
       
  2034 //!                30.- ClosePhone
       
  2035 //!                31.- CloseTelServer
       
  2036 //!@SYMTestStatus		Implemented
       
  2037 //!@SYMTestPriority		high
       
  2038 //!@SYMTestExpectedResults
       
  2039 //!                Connect to a CSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  2040 //!@SYMTestType			CIT
       
  2041 
       
  2042 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2043 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2044 		CREATE_OBJECT	RSocket		rSocket1
       
  2045 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2046 		CREATE_OBJECT	RConnection		rConnection1
       
  2047 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2048 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2049 		CREATE_OBJECT	RTelServer		telServer1
       
  2050 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2051 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2052 		COMMAND		telServer1		Connect
       
  2053 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command02
       
  2054 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command03
       
  2055 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0020-0001-SetSystemNetworkMode_command04
       
  2056 		OUTSTANDING
       
  2057 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2058 		OUTSTANDING
       
  2059 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0020-0001-ModeCheck_command06
       
  2060 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command07
       
  2061 		COMMAND		rSocketServ1		Connect
       
  2062 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command09
       
  2063 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0020-0001-SelectOutgoingIAP_command10
       
  2064 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0020-0001-Start_command11
       
  2065 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command12
       
  2066 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0020-0001-GetByName_command13
       
  2067 		OUTSTANDING
       
  2068 		COMMAND		rHostResolver1		Close
       
  2069 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0020-0001-Open_command15
       
  2070 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0020-0001-Connect_command16
       
  2071 		OUTSTANDING
       
  2072 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0020-0001-BuildRequest_command17
       
  2073 		COMMAND		rSocket1		Write
       
  2074 		OUTSTANDING
       
  2075 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0020-0001-SendBytesToSocket_command19
       
  2076 		COMMAND		rSocket1		EndRequest
       
  2077 		COMMAND		rSocket1		Write
       
  2078 		OUTSTANDING
       
  2079 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0020-0001-ResponseFromServer_command22
       
  2080 		COMMAND		rSocket1		ShutDown
       
  2081 		OUTSTANDING
       
  2082 		COMMAND		rSocket1		Close
       
  2083 		COMMAND		rConnection1		Stop
       
  2084 		COMMAND		rConnection1		Close
       
  2085 		COMMAND		mobileLine1		Close
       
  2086 		COMMAND		rSocketServ1		Close
       
  2087 		COMMAND		mmCustomAPI1		Close
       
  2088 		COMMAND		rMobilePhone1		Close
       
  2089 		COMMAND		telServer1		Close
       
  2090 	END_TEST_BLOCK
       
  2091 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0020
       
  2092 
       
  2093 
       
  2094 
       
  2095 
       
  2096 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0021
       
  2097 
       
  2098 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0021
       
  2099 //!@SYMAPI
       
  2100 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2101 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2102 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2103 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2104 //!@SYMAuthor			ddamian
       
  2105 //!@SYMCreationDate		9/5/2008 
       
  2106 //!@SYMTestCaseDesc		Connect to a CSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol.
       
  2107 //!@SYMTestActions
       
  2108 //!                1.- OpenTelServer
       
  2109 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2110 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2111 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2112 //!                5.- GetCurrentSystemNetworkModes
       
  2113 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2114 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2115 //!                8.- ConnectToSocketServ
       
  2116 //!                9.- OpenRConnection (IAP = IAPCSD; RSocketServ = rSocketServ1)
       
  2117 //!                10.- SelectOutgoingIAP (IAP = IAPCSD)
       
  2118 //!                11.- StartRConnection (Retries = 1)
       
  2119 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2120 //!                13.- GetByName (Address = {URL,address1})
       
  2121 //!                14.- CloseHostResolver
       
  2122 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2123 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2124 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  2125 //!                18.- RSocketWrite
       
  2126 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  2127 //!                20.- EndRequest
       
  2128 //!                21.- RSocketWrite
       
  2129 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2130 //!                23.- RSocketShutDown
       
  2131 //!                24.- RSocketClose
       
  2132 //!                25.- StopRConnection
       
  2133 //!                26.- CloseRConnection
       
  2134 //!                27.- CloseLine
       
  2135 //!                28.- CloseSocketServ
       
  2136 //!                29.- CloseCustomApi
       
  2137 //!                30.- ClosePhone
       
  2138 //!                31.- CloseTelServer
       
  2139 //!@SYMTestStatus		Implemented
       
  2140 //!@SYMTestPriority		high
       
  2141 //!@SYMTestExpectedResults
       
  2142 //!                Connect to a CSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  2143 //!@SYMTestType			CIT
       
  2144 
       
  2145 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2146 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2147 		CREATE_OBJECT	RSocket		rSocket1
       
  2148 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2149 		CREATE_OBJECT	RConnection		rConnection1
       
  2150 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2151 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2152 		CREATE_OBJECT	RTelServer		telServer1
       
  2153 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2154 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2155 		COMMAND		telServer1		Connect
       
  2156 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command02
       
  2157 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command03
       
  2158 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0021-0001-SetSystemNetworkMode_command04
       
  2159 		OUTSTANDING
       
  2160 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2161 		OUTSTANDING
       
  2162 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0021-0001-ModeCheck_command06
       
  2163 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command07
       
  2164 		COMMAND		rSocketServ1		Connect
       
  2165 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command09
       
  2166 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0021-0001-SelectOutgoingIAP_command10
       
  2167 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0021-0001-Start_command11
       
  2168 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command12
       
  2169 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0021-0001-GetByName_command13
       
  2170 		OUTSTANDING
       
  2171 		COMMAND		rHostResolver1		Close
       
  2172 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0021-0001-Open_command15
       
  2173 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0021-0001-Connect_command16
       
  2174 		OUTSTANDING
       
  2175 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0021-0001-BuildRequest_command17
       
  2176 		COMMAND		rSocket1		Write
       
  2177 		OUTSTANDING
       
  2178 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0021-0001-SendBytesToSocket_command19
       
  2179 		COMMAND		rSocket1		EndRequest
       
  2180 		COMMAND		rSocket1		Write
       
  2181 		OUTSTANDING
       
  2182 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0021-0001-ResponseFromServer_command22
       
  2183 		COMMAND		rSocket1		ShutDown
       
  2184 		OUTSTANDING
       
  2185 		COMMAND		rSocket1		Close
       
  2186 		COMMAND		rConnection1		Stop
       
  2187 		COMMAND		rConnection1		Close
       
  2188 		COMMAND		mobileLine1		Close
       
  2189 		COMMAND		rSocketServ1		Close
       
  2190 		COMMAND		mmCustomAPI1		Close
       
  2191 		COMMAND		rMobilePhone1		Close
       
  2192 		COMMAND		telServer1		Close
       
  2193 	END_TEST_BLOCK
       
  2194 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0021
       
  2195 
       
  2196 
       
  2197 
       
  2198 
       
  2199 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0022
       
  2200 
       
  2201 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0022
       
  2202 //!@SYMAPI
       
  2203 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2204 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2205 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2206 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2207 //!@SYMAuthor			ddamian
       
  2208 //!@SYMCreationDate		9/5/2008 
       
  2209 //!@SYMTestCaseDesc		Connect to an HSCSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol.
       
  2210 //!@SYMTestActions
       
  2211 //!                1.- OpenTelServer
       
  2212 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2213 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2214 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2215 //!                5.- GetCurrentSystemNetworkModes
       
  2216 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2217 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2218 //!                8.- ConnectToSocketServ
       
  2219 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  2220 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  2221 //!                11.- StartRConnection (Retries = 1)
       
  2222 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2223 //!                13.- GetByName (Address = {URL,address1})
       
  2224 //!                14.- CloseHostResolver
       
  2225 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2226 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2227 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
  2228 //!                18.- RSocketWrite
       
  2229 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
  2230 //!                20.- EndRequest
       
  2231 //!                21.- RSocketWrite
       
  2232 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2233 //!                23.- RSocketShutDown
       
  2234 //!                24.- RSocketClose
       
  2235 //!                25.- StopRConnection
       
  2236 //!                26.- CloseRConnection
       
  2237 //!                27.- CloseLine
       
  2238 //!                28.- CloseSocketServ
       
  2239 //!                29.- CloseCustomApi
       
  2240 //!                30.- ClosePhone
       
  2241 //!                31.- CloseTelServer
       
  2242 //!@SYMTestStatus		Implemented
       
  2243 //!@SYMTestPriority		high
       
  2244 //!@SYMTestExpectedResults
       
  2245 //!                Connect to an HSCSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  2246 //!@SYMTestType			CIT
       
  2247 
       
  2248 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2249 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2250 		CREATE_OBJECT	RSocket		rSocket1
       
  2251 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2252 		CREATE_OBJECT	RConnection		rConnection1
       
  2253 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2254 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2255 		CREATE_OBJECT	RTelServer		telServer1
       
  2256 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2257 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2258 		COMMAND		telServer1		Connect
       
  2259 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command02
       
  2260 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command03
       
  2261 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0022-0001-SetSystemNetworkMode_command04
       
  2262 		OUTSTANDING
       
  2263 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2264 		OUTSTANDING
       
  2265 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0022-0001-ModeCheck_command06
       
  2266 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command07
       
  2267 		COMMAND		rSocketServ1		Connect
       
  2268 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command09
       
  2269 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0022-0001-SelectOutgoingIAP_command10
       
  2270 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0022-0001-Start_command11
       
  2271 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command12
       
  2272 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0022-0001-GetByName_command13
       
  2273 		OUTSTANDING
       
  2274 		COMMAND		rHostResolver1		Close
       
  2275 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0022-0001-Open_command15
       
  2276 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0022-0001-Connect_command16
       
  2277 		OUTSTANDING
       
  2278 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0022-0001-BuildRequest_command17
       
  2279 		COMMAND		rSocket1		Write
       
  2280 		OUTSTANDING
       
  2281 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0022-0001-SendBytesToSocket_command19
       
  2282 		COMMAND		rSocket1		EndRequest
       
  2283 		COMMAND		rSocket1		Write
       
  2284 		OUTSTANDING
       
  2285 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0022-0001-ResponseFromServer_command22
       
  2286 		COMMAND		rSocket1		ShutDown
       
  2287 		OUTSTANDING
       
  2288 		COMMAND		rSocket1		Close
       
  2289 		COMMAND		rConnection1		Stop
       
  2290 		COMMAND		rConnection1		Close
       
  2291 		COMMAND		mobileLine1		Close
       
  2292 		COMMAND		rSocketServ1		Close
       
  2293 		COMMAND		mmCustomAPI1		Close
       
  2294 		COMMAND		rMobilePhone1		Close
       
  2295 		COMMAND		telServer1		Close
       
  2296 	END_TEST_BLOCK
       
  2297 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0022
       
  2298 
       
  2299 
       
  2300 
       
  2301 
       
  2302 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0023
       
  2303 
       
  2304 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0023
       
  2305 //!@SYMAPI
       
  2306 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2307 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2308 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2309 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2310 //!@SYMAuthor			ddamian
       
  2311 //!@SYMCreationDate		9/5/2008 
       
  2312 //!@SYMTestCaseDesc		Connect to an HSCSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol.
       
  2313 //!@SYMTestActions
       
  2314 //!                1.- OpenTelServer
       
  2315 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2316 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2317 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2318 //!                5.- GetCurrentSystemNetworkModes
       
  2319 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2320 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2321 //!                8.- ConnectToSocketServ
       
  2322 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  2323 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  2324 //!                11.- StartRConnection (Retries = 1)
       
  2325 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2326 //!                13.- GetByName (Address = {URL,address1})
       
  2327 //!                14.- CloseHostResolver
       
  2328 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2329 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2330 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 102400; RequestLogFile = \logs\dt\request.txt)
       
  2331 //!                18.- RSocketWrite
       
  2332 //!                19.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  2333 //!                20.- EndRequest
       
  2334 //!                21.- RSocketWrite
       
  2335 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2336 //!                23.- RSocketShutDown
       
  2337 //!                24.- RSocketClose
       
  2338 //!                25.- StopRConnection
       
  2339 //!                26.- CloseRConnection
       
  2340 //!                27.- CloseLine
       
  2341 //!                28.- CloseSocketServ
       
  2342 //!                29.- CloseCustomApi
       
  2343 //!                30.- ClosePhone
       
  2344 //!                31.- CloseTelServer
       
  2345 //!@SYMTestStatus		Implemented
       
  2346 //!@SYMTestPriority		high
       
  2347 //!@SYMTestExpectedResults
       
  2348 //!                Connect to an HSCSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  2349 //!@SYMTestType			CIT
       
  2350 
       
  2351 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2352 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2353 		CREATE_OBJECT	RSocket		rSocket1
       
  2354 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2355 		CREATE_OBJECT	RConnection		rConnection1
       
  2356 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2357 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2358 		CREATE_OBJECT	RTelServer		telServer1
       
  2359 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2360 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2361 		COMMAND		telServer1		Connect
       
  2362 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command02
       
  2363 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command03
       
  2364 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0023-0001-SetSystemNetworkMode_command04
       
  2365 		OUTSTANDING
       
  2366 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2367 		OUTSTANDING
       
  2368 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0023-0001-ModeCheck_command06
       
  2369 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command07
       
  2370 		COMMAND		rSocketServ1		Connect
       
  2371 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command09
       
  2372 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0023-0001-SelectOutgoingIAP_command10
       
  2373 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0023-0001-Start_command11
       
  2374 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command12
       
  2375 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0023-0001-GetByName_command13
       
  2376 		OUTSTANDING
       
  2377 		COMMAND		rHostResolver1		Close
       
  2378 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0023-0001-Open_command15
       
  2379 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0023-0001-Connect_command16
       
  2380 		OUTSTANDING
       
  2381 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0023-0001-BuildRequest_command17
       
  2382 		COMMAND		rSocket1		Write
       
  2383 		OUTSTANDING
       
  2384 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0023-0001-SendBytesToSocket_command19
       
  2385 		COMMAND		rSocket1		EndRequest
       
  2386 		COMMAND		rSocket1		Write
       
  2387 		OUTSTANDING
       
  2388 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0023-0001-ResponseFromServer_command22
       
  2389 		COMMAND		rSocket1		ShutDown
       
  2390 		OUTSTANDING
       
  2391 		COMMAND		rSocket1		Close
       
  2392 		COMMAND		rConnection1		Stop
       
  2393 		COMMAND		rConnection1		Close
       
  2394 		COMMAND		mobileLine1		Close
       
  2395 		COMMAND		rSocketServ1		Close
       
  2396 		COMMAND		mmCustomAPI1		Close
       
  2397 		COMMAND		rMobilePhone1		Close
       
  2398 		COMMAND		telServer1		Close
       
  2399 	END_TEST_BLOCK
       
  2400 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0023
       
  2401 
       
  2402 
       
  2403 
       
  2404 
       
  2405 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0024
       
  2406 
       
  2407 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0024
       
  2408 //!@SYMAPI
       
  2409 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2410 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2411 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2412 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2413 //!@SYMAuthor			ddamian
       
  2414 //!@SYMCreationDate		9/5/2008 
       
  2415 //!@SYMTestCaseDesc		Connect to an HSCSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol.
       
  2416 //!@SYMTestActions
       
  2417 //!                1.- OpenTelServer
       
  2418 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2419 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2420 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2421 //!                5.- GetCurrentSystemNetworkModes
       
  2422 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2423 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2424 //!                8.- ConnectToSocketServ
       
  2425 //!                9.- OpenRConnection (IAP = IAPHSCSD; RSocketServ = rSocketServ1)
       
  2426 //!                10.- SelectOutgoingIAP (IAP = IAPHSCSD)
       
  2427 //!                11.- StartRConnection (Retries = 1)
       
  2428 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2429 //!                13.- GetByName (Address = {URL,address1})
       
  2430 //!                14.- CloseHostResolver
       
  2431 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2432 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2433 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  2434 //!                18.- RSocketWrite
       
  2435 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  2436 //!                20.- EndRequest
       
  2437 //!                21.- RSocketWrite
       
  2438 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2439 //!                23.- RSocketShutDown
       
  2440 //!                24.- RSocketClose
       
  2441 //!                25.- StopRConnection
       
  2442 //!                26.- CloseRConnection
       
  2443 //!                27.- CloseLine
       
  2444 //!                28.- CloseSocketServ
       
  2445 //!                29.- CloseCustomApi
       
  2446 //!                30.- ClosePhone
       
  2447 //!                31.- CloseTelServer
       
  2448 //!@SYMTestStatus		Verified
       
  2449 //!@SYMTestPriority		high
       
  2450 //!@SYMTestExpectedResults
       
  2451 //!                Connect to an HSCSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  2452 //!@SYMTestType			CIT
       
  2453 
       
  2454 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2455 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2456 		CREATE_OBJECT	RSocket		rSocket1
       
  2457 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2458 		CREATE_OBJECT	RConnection		rConnection1
       
  2459 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2460 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2461 		CREATE_OBJECT	RTelServer		telServer1
       
  2462 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2463 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2464 		COMMAND		telServer1		Connect
       
  2465 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command02
       
  2466 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command03
       
  2467 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0024-0001-SetSystemNetworkMode_command04
       
  2468 		OUTSTANDING
       
  2469 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2470 		OUTSTANDING
       
  2471 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0024-0001-ModeCheck_command06
       
  2472 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command07
       
  2473 		COMMAND		rSocketServ1		Connect
       
  2474 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command09
       
  2475 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0024-0001-SelectOutgoingIAP_command10
       
  2476 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0024-0001-Start_command11
       
  2477 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command12
       
  2478 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0024-0001-GetByName_command13
       
  2479 		OUTSTANDING
       
  2480 		COMMAND		rHostResolver1		Close
       
  2481 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0024-0001-Open_command15
       
  2482 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0024-0001-Connect_command16
       
  2483 		OUTSTANDING
       
  2484 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0024-0001-BuildRequest_command17
       
  2485 		COMMAND		rSocket1		Write
       
  2486 		OUTSTANDING
       
  2487 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0024-0001-SendBytesToSocket_command19
       
  2488 		COMMAND		rSocket1		EndRequest
       
  2489 		COMMAND		rSocket1		Write
       
  2490 		OUTSTANDING
       
  2491 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0024-0001-ResponseFromServer_command22
       
  2492 		COMMAND		rSocket1		ShutDown
       
  2493 		OUTSTANDING
       
  2494 		COMMAND		rSocket1		Close
       
  2495 		COMMAND		rConnection1		Stop
       
  2496 		COMMAND		rConnection1		Close
       
  2497 		COMMAND		mobileLine1		Close
       
  2498 		COMMAND		rSocketServ1		Close
       
  2499 		COMMAND		mmCustomAPI1		Close
       
  2500 		COMMAND		rMobilePhone1		Close
       
  2501 		COMMAND		telServer1		Close
       
  2502 	END_TEST_BLOCK
       
  2503 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0024
       
  2504 
       
  2505 
       
  2506 
       
  2507 
       
  2508 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0025
       
  2509 
       
  2510 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0025
       
  2511 //!@SYMAPI
       
  2512 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2513 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2514 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2515 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2516 //!@SYMAuthor			ddamian
       
  2517 //!@SYMCreationDate		9/5/2008 
       
  2518 //!@SYMTestCaseDesc		Connect to a PSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol.
       
  2519 //!@SYMTestActions
       
  2520 //!                1.- OpenTelServer
       
  2521 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2522 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2523 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2524 //!                5.- GetCurrentSystemNetworkModes
       
  2525 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2526 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2527 //!                8.- ConnectToSocketServ
       
  2528 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  2529 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  2530 //!                11.- StartRConnection (Retries = 1)
       
  2531 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2532 //!                13.- GetByName (Address = {URL,address1})
       
  2533 //!                14.- CloseHostResolver
       
  2534 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2535 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2536 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 0; RequestLogFile = \logs\dt\request.txt)
       
  2537 //!                18.- RSocketWrite
       
  2538 //!                19.- SendBytesToSocket (Bytes = 0; Duration = -1)
       
  2539 //!                20.- EndRequest
       
  2540 //!                21.- RSocketWrite
       
  2541 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2542 //!                23.- RSocketShutDown
       
  2543 //!                24.- RSocketClose
       
  2544 //!                25.- StopRConnection
       
  2545 //!                26.- CloseRConnection
       
  2546 //!                23.- CloseLine
       
  2547 //!                28.- CloseSocketServ
       
  2548 //!                29.- CloseCustomApi
       
  2549 //!                30.- ClosePhone
       
  2550 //!                31.- CloseTelServer
       
  2551 //!@SYMTestStatus		Verified
       
  2552 //!@SYMTestPriority		high
       
  2553 //!@SYMTestExpectedResults
       
  2554 //!                Connect to a PSD access point in WCDMA mode, upload bytes (0kB) to a server using HTTP protocol with no error.
       
  2555 //!@SYMTestType			CIT
       
  2556 
       
  2557 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2558 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2559 		CREATE_OBJECT	RSocket		rSocket1
       
  2560 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2561 		CREATE_OBJECT	RConnection		rConnection1
       
  2562 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2563 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2564 		CREATE_OBJECT	RTelServer		telServer1
       
  2565 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2566 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2567 		COMMAND		telServer1		Connect
       
  2568 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command02
       
  2569 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command03
       
  2570 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0025-0001-SetSystemNetworkMode_command04
       
  2571 		OUTSTANDING
       
  2572 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2573 		OUTSTANDING
       
  2574 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0025-0001-ModeCheck_command06
       
  2575 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command07
       
  2576 		COMMAND		rSocketServ1		Connect
       
  2577 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command09
       
  2578 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0025-0001-SelectOutgoingIAP_command10
       
  2579 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0025-0001-Start_command11
       
  2580 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command12
       
  2581 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0025-0001-GetByName_command13
       
  2582 		OUTSTANDING
       
  2583 		COMMAND		rHostResolver1		Close
       
  2584 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0025-0001-Open_command15
       
  2585 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0025-0001-Connect_command16
       
  2586 		OUTSTANDING
       
  2587 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0025-0001-BuildRequest_command17
       
  2588 		COMMAND		rSocket1		Write
       
  2589 		OUTSTANDING
       
  2590 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0025-0001-SendBytesToSocket_command19
       
  2591 		COMMAND		rSocket1		EndRequest
       
  2592 		COMMAND		rSocket1		Write
       
  2593 		OUTSTANDING
       
  2594 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0025-0001-ResponseFromServer_command22
       
  2595 		COMMAND		rSocket1		ShutDown
       
  2596 		OUTSTANDING
       
  2597 		COMMAND		rSocket1		Close
       
  2598 		COMMAND		rConnection1		Stop
       
  2599 		COMMAND		rConnection1		Close
       
  2600 		COMMAND		mobileLine1		Close
       
  2601 		COMMAND		rSocketServ1		Close
       
  2602 		COMMAND		mmCustomAPI1		Close
       
  2603 		COMMAND		rMobilePhone1		Close
       
  2604 		COMMAND		telServer1		Close
       
  2605 	END_TEST_BLOCK
       
  2606 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0025
       
  2607 
       
  2608 
       
  2609 
       
  2610 
       
  2611 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0026
       
  2612 
       
  2613 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0026
       
  2614 //!@SYMAPI
       
  2615 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2616 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2617 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2618 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2619 //!@SYMAuthor			ddamian
       
  2620 //!@SYMCreationDate		9/5/2008 
       
  2621 //!@SYMTestCaseDesc		Connect to a PSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol.
       
  2622 //!@SYMTestActions
       
  2623 //!                1.- OpenTelServer
       
  2624 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2625 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2626 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2627 //!                5.- GetCurrentSystemNetworkModes
       
  2628 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2629 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2630 //!                8.- ConnectToSocketServ
       
  2631 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  2632 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  2633 //!                11.- StartRConnection (Retries = 1)
       
  2634 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2635 //!                13.- GetByName (Address = {URL,address1})
       
  2636 //!                14.- CloseHostResolver
       
  2637 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2638 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2639 //!                13.- BuildRequest (Address = {URL,address1}; Bytes = 102400)
       
  2640 //!                18.- RSocketWrite
       
  2641 //!                15.- SendBytesToSocket (Bytes = 102400; Duration = -1)
       
  2642 //!                20.- EndRequest
       
  2643 //!                21.- RSocketWrite
       
  2644 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2645 //!                23.- RSocketShutDown
       
  2646 //!                24.- RSocketClose
       
  2647 //!                25.- StopRConnection
       
  2648 //!                26.- CloseRConnection
       
  2649 //!                27.- CloseLine
       
  2650 //!                28.- CloseSocketServ
       
  2651 //!                29.- CloseCustomApi
       
  2652 //!                30.- ClosePhone
       
  2653 //!                31.- CloseTelServer
       
  2654 //!@SYMTestStatus		Verified
       
  2655 //!@SYMTestPriority		high
       
  2656 //!@SYMTestExpectedResults
       
  2657 //!                Connect to a PSD access point in WCDMA mode, upload bytes (100kB) to a server using HTTP protocol with no error.
       
  2658 //!@SYMTestType			CIT
       
  2659 
       
  2660 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2661 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2662 		CREATE_OBJECT	RSocket		rSocket1
       
  2663 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2664 		CREATE_OBJECT	RConnection		rConnection1
       
  2665 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2666 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2667 		CREATE_OBJECT	RTelServer		telServer1
       
  2668 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2669 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2670 		COMMAND		telServer1		Connect
       
  2671 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command02
       
  2672 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command03
       
  2673 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0026-0001-SetSystemNetworkMode_command04
       
  2674 		OUTSTANDING
       
  2675 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2676 		OUTSTANDING
       
  2677 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0026-0001-ModeCheck_command06
       
  2678 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command07
       
  2679 		COMMAND		rSocketServ1		Connect
       
  2680 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command09
       
  2681 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0026-0001-SelectOutgoingIAP_command10
       
  2682 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0026-0001-Start_command11
       
  2683 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command12
       
  2684 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0026-0001-GetByName_command13
       
  2685 		OUTSTANDING
       
  2686 		COMMAND		rHostResolver1		Close
       
  2687 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0026-0001-Open_command15
       
  2688 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0026-0001-Connect_command16
       
  2689 		OUTSTANDING
       
  2690 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0026-0001-BuildRequest_command17
       
  2691 		COMMAND		rSocket1		Write
       
  2692 		OUTSTANDING
       
  2693 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0026-0001-SendBytesToSocket_command19
       
  2694 		COMMAND		rSocket1		EndRequest
       
  2695 		COMMAND		rSocket1		Write
       
  2696 		OUTSTANDING
       
  2697 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0026-0001-ResponseFromServer_command22
       
  2698 		COMMAND		rSocket1		ShutDown
       
  2699 		OUTSTANDING
       
  2700 		COMMAND		rSocket1		Close
       
  2701 		COMMAND		rConnection1		Stop
       
  2702 		COMMAND		rConnection1		Close
       
  2703 		COMMAND		mobileLine1		Close
       
  2704 		COMMAND		rSocketServ1		Close
       
  2705 		COMMAND		mmCustomAPI1		Close
       
  2706 		COMMAND		rMobilePhone1		Close
       
  2707 		COMMAND		telServer1		Close
       
  2708 	END_TEST_BLOCK
       
  2709 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0026
       
  2710 
       
  2711 
       
  2712 
       
  2713 
       
  2714 START_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0027
       
  2715 
       
  2716 //!@SYMTestCaseID		TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0027
       
  2717 //!@SYMAPI
       
  2718 //!                TInt RSocketServ::Connect (TUint aMessageSlots=KESockDefaultMessageSlots);
       
  2719 //!                void RHostResolver:: GetByName(const TDesC {ref}aName, TNameEntry {ref}aResult, TRequestStatus {ref}aStatus);
       
  2720 //!                void Rconnection :: Start(TConnPref {ref}aPref, TRequestStatus {ref}aStatus);
       
  2721 //!                void Rsocket :: Write(const TDesC8 {ref}aDesc, TRequestStatus {ref}aStatus);
       
  2722 //!@SYMAuthor			ddamian
       
  2723 //!@SYMCreationDate		9/5/2008 
       
  2724 //!@SYMTestCaseDesc		Connect to a PSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol.
       
  2725 //!@SYMTestActions
       
  2726 //!                1.- OpenTelServer
       
  2727 //!                2.- OpenPhone (RTelServer = telServer1; Phone = 0)
       
  2728 //!                3.- InitCustomApi (RMobilePhone = rMobilePhone1)
       
  2729 //!                4.- ModeChange (ChangeMode = WCDMA)
       
  2730 //!                5.- GetCurrentSystemNetworkModes
       
  2731 //!                6.- ModeCheck (CheckMode = WCDMA)
       
  2732 //!                7.- OpenLine (Line = Data; RMobilePhone = rMobilePhone1)
       
  2733 //!                8.- ConnectToSocketServ
       
  2734 //!                9.- OpenRConnection (IAP = IAPGPRS; RSocketServ = rSocketServ1)
       
  2735 //!                10.- SelectOutgoingIAP (IAP = IAPGPRS)
       
  2736 //!                11.- StartRConnection (Retries = 1)
       
  2737 //!                12.- OpenHostResolver  (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2738 //!                13.- GetByName (Address = {URL,address1})
       
  2739 //!                14.- CloseHostResolver
       
  2740 //!                15.- RSocketOpen (RConnection = rConnection1; RSocketServ = rSocketServ1)
       
  2741 //!                16.- RSocketConnect (Port = 80; Address = {URL,address1}; RHostResolver = rHostResolver1)
       
  2742 //!                17.- BuildRequest (Address = {URL,address1}; Bytes = 3145728; RequestLogFile = \logs\dt\request.txt)
       
  2743 //!                18.- RSocketWrite
       
  2744 //!                19.- SendBytesToSocket (Bytes = 3145728; Duration = -1)
       
  2745 //!                20.- EndRequest
       
  2746 //!                21.- RSocketWrite
       
  2747 //!                22.- ResponseFromServer (ResponseLogFile = \logs\dt\response.txt)
       
  2748 //!                23.- RSocketShutDown
       
  2749 //!                24.- RSocketClose
       
  2750 //!                25.- StopRConnection
       
  2751 //!                26.- CloseRConnection
       
  2752 //!                27.- CloseLine
       
  2753 //!                28.- CloseSocketServ
       
  2754 //!                29.- CloseCustomApi
       
  2755 //!                30.- ClosePhone
       
  2756 //!                31.- CloseTelServer
       
  2757 //!@SYMTestStatus		Verified
       
  2758 //!@SYMTestPriority		high
       
  2759 //!@SYMTestExpectedResults
       
  2760 //!                Connect to a PSD access point in WCDMA mode, upload bytes (3MB) to a server using HTTP protocol with no error.
       
  2761 //!@SYMTestType			CIT
       
  2762 
       
  2763 	START_TEST_BLOCK	3600	t_esock_etelmm	\mixed_technology\telephony_comms\telephony_comms-validation-automated_upload.ini
       
  2764 		CREATE_OBJECT	RSocketServ		rSocketServ1
       
  2765 		CREATE_OBJECT	RSocket		rSocket1
       
  2766 		CREATE_OBJECT	RHostResolver		rHostResolver1
       
  2767 		CREATE_OBJECT	RConnection		rConnection1
       
  2768 		CREATE_OBJECT	DataVerify		dataVerify1
       
  2769 		CREATE_OBJECT	RMmCustomAPI		mmCustomAPI1
       
  2770 		CREATE_OBJECT	RTelServer		telServer1
       
  2771 		CREATE_OBJECT	RMobileLine		mobileLine1
       
  2772 		CREATE_OBJECT	RMobilePhone		rMobilePhone1
       
  2773 		COMMAND		telServer1		Connect
       
  2774 		COMMAND		rMobilePhone1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command02
       
  2775 		COMMAND		mmCustomAPI1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command03
       
  2776 		COMMAND		mmCustomAPI1		SetSystemNetworkMode			TELEPHONY-Comms-Upload-0027-0001-SetSystemNetworkMode_command04
       
  2777 		OUTSTANDING
       
  2778 		COMMAND		mmCustomAPI1		GetCurrentSystemNetworkModes
       
  2779 		OUTSTANDING
       
  2780 		COMMAND		mmCustomAPI1		ModeCheck			TELEPHONY-Comms-Upload-0027-0001-ModeCheck_command06
       
  2781 		COMMAND		mobileLine1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command07
       
  2782 		COMMAND		rSocketServ1		Connect
       
  2783 		COMMAND		rConnection1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command09
       
  2784 		COMMAND		rConnection1		SelectOutgoingIAP			TELEPHONY-Comms-Upload-0027-0001-SelectOutgoingIAP_command10
       
  2785 		COMMAND		rConnection1		Start			TELEPHONY-Comms-Upload-0027-0001-Start_command11
       
  2786 		COMMAND		rHostResolver1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command12
       
  2787 		COMMAND		rHostResolver1		GetByName			TELEPHONY-Comms-Upload-0027-0001-GetByName_command13
       
  2788 		OUTSTANDING
       
  2789 		COMMAND		rHostResolver1		Close
       
  2790 		COMMAND		rSocket1		Open			TELEPHONY-Comms-Upload-0027-0001-Open_command15
       
  2791 		COMMAND		rSocket1		Connect			TELEPHONY-Comms-Upload-0027-0001-Connect_command16
       
  2792 		OUTSTANDING
       
  2793 		COMMAND		rSocket1		BuildRequest			TELEPHONY-Comms-Upload-0027-0001-BuildRequest_command17
       
  2794 		COMMAND		rSocket1		Write
       
  2795 		OUTSTANDING
       
  2796 		COMMAND		rSocket1		SendBytesToSocket			TELEPHONY-Comms-Upload-0027-0001-SendBytesToSocket_command19
       
  2797 		COMMAND		rSocket1		EndRequest
       
  2798 		COMMAND		rSocket1		Write
       
  2799 		OUTSTANDING
       
  2800 		COMMAND		rSocket1		ResponseFromServer			TELEPHONY-Comms-Upload-0027-0001-ResponseFromServer_command22
       
  2801 		COMMAND		rSocket1		ShutDown
       
  2802 		OUTSTANDING
       
  2803 		COMMAND		rSocket1		Close
       
  2804 		COMMAND		rConnection1		Stop
       
  2805 		COMMAND		rConnection1		Close
       
  2806 		COMMAND		mobileLine1		Close
       
  2807 		COMMAND		rSocketServ1		Close
       
  2808 		COMMAND		mmCustomAPI1		Close
       
  2809 		COMMAND		rMobilePhone1		Close
       
  2810 		COMMAND		telServer1		Close
       
  2811 	END_TEST_BLOCK
       
  2812 END_TESTCASE TELEPHONY_COMMS-VALIDATION-AUTOMATED_UPLOAD-0027
       
  2813 
       
  2814 
       
  2815 DELAY 10000