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

  $Author: richard $

  $Revision: 1.7 $

  $Log: 3,v $
  Revision 1.7  2002/04/23 17:08:12  richard
  add a new autofailed

  Revision 1.6  2002/04/19 15:27:43  richard
  autofailed

  Revision 1.5  2002/04/17 13:31:23  ajmc
  Removes second </specnote>

  Revision 1.4  2002/03/15 12:04:32  richard
  rewrite test

  Revision 1.3  2001/10/30 16:22:46  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:26  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/formprocessing/formsubmission/3" class="A" 
	scope="wml2" testtype="application" type="manual" source="wml2#5.4.5" 
	device="both">
  <assertion>When submitting a form, any form control variables must be sent.
  </assertion>
  <specnote>Create a card with an INPUT element (checkbox), a TEXTAREA 
  element and a menu control element and different form control variables
  for each fielset. Make sure that all the form control variables are
  sent into the form.
  </specnote>
  	<results>
    <result ci="true">
      <name>inchoice</name>
      <value>plane</value>
    </result>
    <result ci="true">
      <name>iselchoice</name>
      <value>1</value>
    </result>
    <result ci="true">
      <name>textchoice</name>
      <value>car</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select the Plane checkbox 
					And then submit the Form without changing the other default options
				</p>
				<form action="#card2" method="post">
     			<fieldset>
  					<p>Plane</p>
    				<input type="checkbox" wml:name="inchoice" value="plane" />
    			</fieldset>
    			<fieldset>
  					<p>Select</p>
						<select wml:iname="iselchoice" wml:value="1">
    	  			<option value="train">Train</option>
    				</select>
     			</fieldset>
     			<fieldset>
   	   			<p>textarea:</p>
      			<textarea wml:name="textchoice" rows="2" cols="10">car</textarea>
      		</fieldset>
  				<fieldset>
   					<input type="submit" value="submit" />
   				</fieldset>
   			</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
  			<wml:onevent type="enterforward">
    			<wml:go href="[[resulturl]]">
      			<wml:postfield name="inchoice" value="$inchoice" />
      			<wml:postfield name="iselchoice" value="$iselchoice" />
      			<wml:postfield name="textchoice" value="$textchoice" />
						[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
  </method>
</test>
