## GT0128 Hurricane WAP
## WSP Protocol Handler
#######################
## Ref. SGL.GT0128.aaa.bbb WSP Protocol Handler Unit Tests
## Unit test 2.2.7.4
## Driver chat script
#
# Test Synopsis
# * Connect with MOR non-default size, server rejects and selects lower or default value
# A connection is made using the MOR, which the server rejects  

# Expected Result
# * Expected result: Session Connected with server specified values


SCRIPT UnitTestDriver2.2.7.4 

SLEEP 500

INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\setproxyinfo_driver.txt"

ECHO "Setting client capabilities"
	SEND
		INVOKE SetMethodMORL
			PARAMETER aMOR 40
		ENDINVOKE
	ENDSEND

ECHO "Driver Sending Connect"
	SEND
		INVOKE SessionConnectL
		ENDINVOKE
	ENDSEND
#
# Wait for the cnf - this is given by EConnectedOK event
#
	ECHO "Waiting for cnf"
	EXPECT
		INVOCATION SessionRunL
			VALIDATE aEvent EConnectedWithReducedCapabilities
		ENDINVOCATION
	ENDEXPECT
#
# 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


