## GT0128 Hurricane WAP
## WSP Protocol Handler
#######################
## Ref. SGL.GT0128.aaa.bbb WSP Protocol Handler Unit Tests
## Unit test 2.3.3.5
## Driver chat script
#
# Test Synopsis
# * Disconnect session after invoking POST method

# Expected Result
# * Expected result: Invoke is aborted and the session disconnects 


SCRIPT UnitTestDriver2.3.3.5 

#
# 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"

#
# Get the session connected
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\doconnect_accept_driver.txt"

#
# 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"

#
# Wait for half second
#

	ECHO "Waiting for 0.5 seconds"
	SLEEP 500

#
# Client disconnect
#
	ECHO "Driver sending disconnect"
	SEND
		INVOKE SessionDisconnectL
		ENDINVOKE
	ENDSEND

#
# Method should be aborted before getting the S-Disconnect.ind
#
	EXPECT
		INVOCATION TransactionRunL
			VALIDATE aTransaction trans1
			VALIDATE aEvent EFailed
		ENDINVOCATION
	ENDEXPECT

#
# Wait for s_Disconnect.ind - this is given by EDisconnected
#
	ECHO "Waiting for ind"
	EXPECT
		INVOCATION SessionRunL
			VALIDATE aEvent EDisconnected
		ENDINVOCATION
	ENDEXPECT

#
# Give the stub a chance to finish before exiting
#
	SLEEP 500
#
# Done!
#

ENDSCRIPT


