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

  $Author: richard $

  $Revision: 1.11 $

  $Log: 6,v $
  Revision 1.11  2002/06/14 15:09:18  richard
  remove the script, direct check in the server

  Revision 1.10  2002/04/23 10:18:18  richard
  getvar element in the script

  Revision 1.9  2002/04/19 13:27:42  richard
  yesno, autofailed, extra / of the wml:card element

  Revision 1.8  2002/02/27 18:30:38  richard
  set the type attribute of the test element as auto

  Revision 1.7  2002/02/26 17:52:21  richard
  script variable error

  Revision 1.6  2002/02/26 14:40:48  richard
  passes as auto

  Revision 1.5  2002/02/23 14:59:06  richard
  rewrite the test

  Revision 1.4  2002/02/04 16:20:35  gb
  Added the test source and results into the following test files:

  Modified Files:
   	wml2/markup/contextandnav/wmlaccesselement/3
   	wml2/markup/contextandnav/wmlaccesselement/4
   	wml2/markup/contextandnav/wmlaccesselement/5
   	wml2/markup/contextandnav/wmlaccesselement/6
   	wml2/markup/contextandnav/wmlaccesselement/7
   	wml2/markup/contextandnav/wmlaccesselement/8
   	wml2/markup/contextandnav/wmlgetvarelement/1
   	wml2/markup/contextandnav/wmlgetvarelement/10
   	wml2/markup/contextandnav/wmlgetvarelement/11
   	wml2/markup/contextandnav/wmlgetvarelement/2
   	wml2/markup/contextandnav/wmlgetvarelement/3
   	wml2/markup/contextandnav/wmlgetvarelement/4
   	wml2/markup/contextandnav/wmlgetvarelement/5
   	wml2/markup/contextandnav/wmlgetvarelement/6
   	wml2/markup/contextandnav/wmlgetvarelement/7
   	wml2/markup/contextandnav/wmlgetvarelement/8
   	wml2/markup/contextandnav/wmlgetvarelement/9
   	wml2/markup/contextandnav/wmlgoelement/6
   	wml2/markup/contextandnav/wmlgoelement/7
   	wml2/markup/contextandnav/wmlnoopelement/1
   	wml2/markup/contextandnav/wmlsetvarelement/1
   	wml2/markup/contextandnav/wmlsetvarelement/2
   	wml2/markup/contextandnav/wmlsetvarelement/3
   	wml2/markup/contextandnav/wmlsetvarelement/4
   	wml2/markup/contextandnav/wmlsetvarelement/5
   	wml2/markup/contextandnav/wmlsetvarelement/6
   	wml2/markup/contextandnav/wmltimerelement/1
   	wml2/markup/contextandnav/wmltimerelement/2
   	wml2/markup/contextandnav/wmltimerelement/3
   	wml2/markup/contextandnav/wmltimerelement/4
   	wml2/markup/contextandnav/wmltimerelement/5
   	wml2/markup/contextandnav/wmltimerelement/6
   	wml2/markup/contextandnav/wmltimerelement/7
   	wml2/markup/contextandnav/wmltimerelement/8
  Added Files:
   	wml2/markup/contextandnav/wmlaccesselement/access3_1_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access3_2_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access4_1_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access4_2_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access5_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access6_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access7_2_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access8_1_ext.html
   	wml2/markup/contextandnav/wmlaccesselement/access8_2_ext.html

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


-->
<test id="wml2/markup/contextandnav/wmlsetvarelement/6" class="A" 
	scope="wml2" testtype="application" type=" auto" source="wml2#6.16.9" 
	device="both">
	<assertion>When a WML:SETVAR element contains a VALUE attribute and it's 
	value is a variable expression, the user agent must correctly evaluate 
	the variable expression specified.
	</assertion>
	<specnote>Create a card with a ENTERFORWARD event binding, which includes 
	a WML:SETVAR element with it's VALUE attribute set to the value of a 
	previously set variable(e.g. wml:setvar name='varname' value=$somevar). 
	The card could hold a WML:REFRESH task within a WML:ANCHOR element that 
	will refresh the card/document and display the variables value. Call the 
	card, refresh the display, and make sure the variable has been set
	(i.e. $varname should now hold the value of $somevar).
	</specnote>
	<specnote>Create a card, which includes a WML:SETVAR element with it's 
	VALUE attribute set to the value of a previously set variable
	(e.g. wml:setvar name=toto value=$somevar) and goes to a next card. 
	Display the variable and make sure that the value of the variable is the 
	same as what has been previously set.
	</specnote>
	<results>
		<result ci="true">
			<name>test</name>
			<value>hello</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true"> 
				<wml:onevent type="enterforward">
					<wml:go href="#card1">
						<wml:setvar name="ric" value="hello" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card1">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="toto" value="$(ric)" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2">
				<wml:onevent type="enterforward">
 					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$(toto)" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>  
		]]>
	</method>
</test>

