## Chat scripts, smoke test 11 - driver script.
#
# Testing Tx data object. Non failing method invocations
# LDT support -> all methods sent in multiple SDUs.
# trans1 -> simple POST, with trailers, data received from client in 1 chunk, overall data size is known.
#			Data fits in 1st SDU, trailers only go in 2nd SDU.
#			Response in 2 SDUs, with trailers in 2nd.
# trans2 -> simple POST, with trailers, data received from client in 1 chunk, overall data size is known.
#			Data fits in 2 SDUs, trailers go in 2nd SDU.
#			Response in 2 SDUs, with trailers in 2nd.
# trans3 -> simple POST, with trailers, data received from client in 1 chunk, overall data size is known.
#			Data fits in 2 SDUs, trailers go in 3rd SDU.
#			Response in 2 SDUs, with trailers in 2nd.
# trans4 -> complex POST, with trailers, data received from client in 2 chunks, overall data size is known.
#			Data fits in 1st SDU, trailers go in 2nd SDU.
#			Response in 2 SDUs, with trailers in 2nd.
# trans5 -> complex POST, with trailers, data received from client in 3 chunks, overall data size is known.
#			Data fits in 2 SDU, trailers go in 2nd SDU.
#			Response in 2 SDUs, with trailers in 2nd.
#
# Smoke test 11
#
SCRIPT SmokeTestDriver11
#
# Sleep then start
#
	SLEEP 500
#
# Set proxy info
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\setproxyinfo_driver.txt"
#
# Set Server msg capability - 125 bytes
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\set_servermsg_125_driver.txt"
#
# Do connect - connected OK
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\do_connectok_driver.txt"
#
# TRANS 1
#
#
# simple POST, data received from client in 1 chunk, overall data size is known
#
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans1_post_singlebody_trailersonlysdu_driver.txt"
#
# Wait for response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans1_response_trailers_multisdu_driver.txt"
#
# TRANS 2
#
#
# simple POST, data received from client in 1 chunk, overall data size is known
#
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans2_post_singlebody_withtrailers_driver.txt"
#
# Wait for response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans2_response_trailers_multisdu_driver.txt"
#
# TRANS 3
#
#
# simple POST, data received from client in 1 chunk, overall data size is known
#
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans3_post_singlebody_trailersonlysdu_2_driver.txt"
#
# Wait for response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans3_response_trailers_multisdu_driver.txt"
#
# TRANS 4
#
#
# complex POST, data received from client in 2 chunks, overall data size is known
#
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans4_post_multibody_trailersonlysdu_driver.txt"
#
# Wait for response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans4_response_trailers_multisdu_driver.txt"
#
# TRANS 5
#
#
# complex POST, data received from client in 3 chunks, overall data size is known
#
	SLEEP 500
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans5_post_multibody_withtrailers_driver.txt"
#
# Wait for response
#
	INCLUDE "C:\HttpTest\wsp_pr_hnd_driver\trans5_response_trailers_multisdu_driver.txt"
#
# Close all the transactions...
#
	SEND
		INVOKE trans1 Close
		ENDINVOKE
	ENDSEND
	SEND
		INVOKE trans2 Close
		ENDINVOKE
	ENDSEND
	SEND
		INVOKE trans3 Close
		ENDINVOKE
	ENDSEND
	SEND
		INVOKE trans4 Close
		ENDINVOKE
	ENDSEND
	SEND
		INVOKE trans5 Close
		ENDINVOKE
	ENDSEND
#
#
# 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
