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

  $Author: richard $

  $Revision: 1.10 $

  $Log: 1,v $
  Revision 1.10  2002/06/16 09:11:58  richard
  simplify the test

  Revision 1.9  2002/05/24 09:23:43  richard
  missing quotes

  Revision 1.8  2002/04/25 14:06:50  richard
  the / of the wml:go element was in the wrong location

  Revision 1.7  2002/04/19 15:43:55  richard
  autofailed

  Revision 1.6  2002/03/26 09:12:17  richard
  start wml:card extra /
  includes external decks

  Revision 1.5  2002/02/27 09:29:57  richard
  set the type of the test as auto

  Revision 1.4  2002/02/26 13:55:31  richard
  rewrite the tests

  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/navigationreference/gotask/1" class="A" 
	scope="wml2" testtype="application" type="auto" source="wml2#5.3.1" 
	device="both">
	<assertion>When the WML:GO task is executed, and it contains WML:SETVAR 
	elements, the variable name and value in each WML:SETVAR element must be 
	converted into a simple string by substituting all referenced variables.
	</assertion>
	<specnote>Create a card that sets two variables, using the WML:SETVAR 
	element, within an ONENTERFORWARD event. The event could also contain a 
	WML:GO element to navigate to a second document that displays a variable
	(not shown when the card is first entered as the variable is not set), and 
	contains a WML:DO element, that contains a WML:REFRESH task, that in turn 
	contains a WML:SETVAR element that sets its name and value attributes to 
	the value of the variables in the first card. Call the first card which 
	will take you to the second document. Make sure that when it is first 
	entered the variable is not displayed, then press on pressing the refresh 
	button, the variable is displayed.
	</specnote>
	<results>
		<result ci="true">
			<name>test</name>
			<value>two</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="x" value="one"/>
						<wml:setvar name="y" value="two"/>
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2">
				<wml:onevent type="enterforward">
					<wml:go href="#card3">
						<wml:setvar name="$x" value="$y" />
					</wml:go>
				</wml:onevent>
			</wml:card>
			<wml:card id="card3">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$one" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>	
		]]>
	</method>
</test>
