//---------------------------------------------------------
//  start of test case

CASE HTTP-I-2305 Other Methods using Transport framework (HTTP) over Default bearer  

//---------------------------------------------------------

CONNECT HTTP 2305_H_CON_01

TRANSACTION  2305_T_01 2305_H_CON_01 HEAD $wapTestURL$
TRANSACTION  2305_T_02 2305_H_CON_01 PUT $LargePutURL$ $LargePutFile$
TRANSACTION  2305_T_03 2305_H_CON_01 OPTIONS $wapTestURL$
TRANSACTION  2305_T_04 2305_H_CON_01 TRACE $wapTestURL$
    

// ---------------------------------------------------------
// display all connectons     

connect

// ---------------------------------------------------------
// display all transactions 

transaction

//---------------------------------------------------------
//
// the test has been started, the test harness will now wait 
// for 60 seconds to allow for data transfer to completed 
//
//---------------------------------------------------------

hold 60 

// --------------------------------------------------------
// display status 

define

// ---------------------------------------------------------
// display active transactions 

showtrans

// now do the delete, the Put should have completed 


TRANSACTION  2305_T_05 2305_H_CON_01 DELETE $LargePutURL$ 

hold 100 

// wait for delete to complete 

// --------------------------------------------------------
// display status 

define

// --------------------------------------------------------
// display transactions 

showtrans 

// --------------------------------------------------------
// report results 

IF $2305_T_01LastEvent$ == $Succeeded$

   IF $2305_T_01HttpStatus$ == $HTTP_OK$

      PRINT Result: HTTP-I-2305 HEAD Passed      
   ELSE 
      PRINT Result: HTTP-I-2305 HEAD Failed, HTTP Status $2305_T_01HttpStatus$    
   ENDIF    
ELSE 
   PRINT Result: HTTP-I-2305 HEAD Failed, last event $2305_T_01LastEvent$ 
ENDIF

endtrans 2305_T_01 

IF $2305_T_02LastEvent$ == $Succeeded$

   IF $2305_T_02HttpStatus$ == $HTTP_OK$
            
      PRINT Result: HTTP-I-2305 PUT Passed
   ELSE 
      PRINT Result: HTTP-I-2305 PUT Failed, HTTP Status $2305_T_02HttpStatus$    
   ENDIF
ELSE 
   PRINT Result: HTTP-I-2305 PUT Failed, last event $2305_T_02LastEvent$  
ENDIF

endtrans 2305_T_02 

IF $2305_T_03LastEvent$ == $Succeeded$

   IF $2305_T_03HttpStatus$ == $HTTP_OK$
            
      PRINT Result: HTTP-I-2305 OPTIONS Passed 
   ELSE 
      PRINT Result: HTTP-I-2305 OPTIONS Failed, HTTP Status $2305_T_03HttpStatus$    
   ENDIF
ELSE 
   PRINT Result: HTTP-I-2305 OPTIONS Failed, last event $2305_T_03LastEvent$    
ENDIF

endtrans 2305_T_03

IF $2305_T_04LastEvent$ == $Succeeded$

   IF $2305_T_04HttpStatus$ == $HTTP_OK$
            
      PRINT Result: HTTP-I-2305 TRACE Passed 
   ELSE 
      PRINT Result: HTTP-I-2305 TRACE Failed, HTTP Status $2305_T_04HttpStatus$    
   ENDIF
ELSE 
   PRINT Result: HTTP-I-2305 TRACE Failed, last event $2305_T_04LastEvent$    
ENDIF

endtrans 2305_T_04

IF $2305_T_05LastEvent$ == $Succeeded$

   IF $2305_T_05HttpStatus$ == $HTTP_OK$
            
      PRINT Result: HTTP-I-2305 DELETE Passed 
   ELSE 
      PRINT Result: HTTP-I-2305 DELETE Failed, HTTP Status $2305_T_05HttpStatus$   
   ENDIF
ELSE 
   PRINT Result: HTTP-I-2305 DELETE Failed, last event $2305_T_05LastEvent$   
ENDIF

endtrans 2305_T_05

// --------------------------------------------------------
// close connections 

DISCONNECT 2305_H_CON_01

// display state of connections, after close 

connect

//---------------------------------------------------------
//  end the test case

END CASE HTTP-I-2305