## GT0128 Hurricane WAP
## WSP Protocol Handler
#######################
## Ref. SGL.GT0128.aaa.bbb WSP Protocol Handler Unit Tests
## Unit test 2.3.3.3
## Driver chat script
#
# Test Synopsis
# * Invoke POST method while session is still connecting

# Expected Result
# * Expected result: If session connects then POST returns successfully


SCRIPT UnitTestDriver2.3.3.3 

#
# Sleep before start, allows stub time to start up and initialise.
#
	SLEEP 500

#
# Set the proxy info
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\setproxyinfo_driver.txt"

#
# Issue a connect request
#
	ECHO "Driver Sending Connect"
	SEND
		INVOKE SessionConnectL
		ENDINVOKE
	ENDSEND

#
# Wait for half second
#

	ECHO "Waiting for 0.5 seconds"
	SLEEP 500

#
# Do the method invocation
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans1_post_singlebody_driver.txt"

#
# Expect the S-Connect.cnf primitive
#
	ECHO "Waiting for cnf"
	EXPECT
		INVOCATION SessionRunL
			VALIDATE aEvent EConnectedOK
		ENDINVOCATION
	ENDEXPECT

#
# Get the response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans1_response_multichunk_multisdu_driver.txt"
#
# Ask for disconnect
# 
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\do_clientdisconnect_driver.txt"
#
# Give the stub a chance to finish before exiting
#
	SLEEP 500
#
# Done!
#

ENDSCRIPT
