<?xml version="1.0" encoding="UTF-8"?>
<!--

	$Author: richard $

	$Revision: 1.9 $

	$Log: 10,v $
	Revision 1.9  2002/06/18 16:05:59  richard
	use the new way of testing the multiple selections
	
	Revision 1.8  2002/06/18 10:16:59  richard
	add a content to the option element

	Revision 1.7  2002/06/06 14:31:29  richard
	new spec

	Revision 1.6  2002/03/21 14:38:48  richard
	missing the wml:value

	Revision 1.5  2002/02/27 18:15:56  richard
	set the type of the test element to auto

	Revision 1.4  2002/02/23 11:30:44  richard
	write test, correct assertion

	Revision 1.3  2001/10/30 16:22:07  gb
	Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

	Revision 1.2  2001/10/08 21:56:04  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/markup/contextandnav/wmlgoelement/10" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#6.16.4" device="both">
	<assertion>When the WML:GO element is specified, the METHOD attribute is 
	set to 'get', the ENCTYPE attribute is set to 
	'application/vnd.wap.wml.form.urlencoded', the WML:POSTFIELD element is
	used to name a field, and the value of the WML:POSTFIELD's VALUE attribute
	references the control variable for a multiple-selection control, the 
	field VALUE must be submitted as a semicolon-separated list of assigned 
	values.
	</assertion>
	<specnote>Create a card containing the WML:GO element and set the METHOD 
	attribute to 'get' and the ENCTYPE attribute is set to 
	'application/vnd.wap.wml.form.urlencoded'. The card should also contain 
	two OPTION elements within a SELECT element, already selected. Set the 
	WML:VALUE attribute of the SELECT element to a 
	semicolon-delimited list of two of the OPTION elements VALUE attributes 
	and the MULTIPLE attribute to 'multiple'. The WML:GO task could be 
	executed by putting it within a WML:DO element, and the value of the 
	control variables/s must be sent by using the WML:POSTFIELD element 
	within the WML:GO element 
	(e.g. wml:postfield="y" value="$(control_variable)"). Call the card, 
	check that the options have been pre-selected and make sure when the 
	task is executed, one name, and a semicolon separated list of values are 
	sent(e.g. car=ford;alpha).
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>toto</name>
			<value>option1;option2</value>
			<value>option2;option1</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
				<p>Automatic selection
					<select wml:name="myoptions" wml:value="option1;option2" multiple="multiple">
						<option value="option1">option1</option>
						<option value="option2">option2</option>
					</select>
				</p>
				<p>Click on the link
					<wml:do type="accept">
						<wml:go method="get" enctype="application/vnd.wap.wml.form.urlencoded" href="[[responseurl]]">
							<wml:postfield name="toto" value="$(myoptions)"/>
							[[sessionvars]]
						</wml:go>
					</wml:do>
				</p>
			</wml:card>
		]]>
	</method>  
</test>
