Author: dolander
Date: Mon Apr 4 08:26:23 2005
New Revision: 160051
URL: http://svn.apache.org/viewcvs?view=rev&rev=160051
Log:
Update the Form Focus test which has been failing for a little while because
it drifted out of date.
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/form/focus/index.jsp
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtFormFocus.xml
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/form/focus/index.jsp
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/form/focus/index.jsp?view=diff&r1=160050&r2=160051
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/form/focus/index.jsp
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/coretags/form/focus/index.jsp
Mon Apr 4 08:26:23 2005
@@ -16,7 +16,7 @@
Text 1: <netui:textBox tagId="text1" dataSource="actionForm.text1"
/><br>
Text 2: <netui:textBox tagId="text2" dataSource="actionForm.text2"
/><br>
Text 3: <netui:textBox tagId="text3" dataSource="actionForm.text3"
/><br>
- <netui:button value="submit" />
+ <netui:button tagId="button" value="submit" />
</netui:form>
<hr>
Results: ${pageFlow.results}
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtFormFocus.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtFormFocus.xml?view=diff&r1=160050&r2=160051
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtFormFocus.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtFormFocus.xml
Mon Apr 4 08:26:23 2005
@@ -2,7 +2,7 @@
<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
<ses:sessionName>CtFormFocus</ses:sessionName>
<ses:tester>Daryl</ses:tester>
- <ses:startDate>29 Mar 2005, 09:40:04.250 AM MST</ses:startDate>
+ <ses:startDate>04 Apr 2005, 09:02:12.747 AM MDT</ses:startDate>
<ses:description>Daryl</ses:description>
<ses:tests>
<ses:test>
@@ -18,7 +18,7 @@
<ses:cookies>
<ses:cookie>
<ses:name>JSESSIONID</ses:name>
- <ses:value>BA2FBB0E95DC2FF882CECA0FB3BF9B48</ses:value>
+ <ses:value>B8E1453D59FEAF174166CFE4B7E5AA80</ses:value>
</ses:cookie>
</ses:cookies>
<ses:headers>
@@ -44,7 +44,7 @@
</ses:header>
<ses:header>
<ses:name>cookie</ses:name>
- <ses:value>$Version=0;
JSESSIONID=BA2FBB0E95DC2FF882CECA0FB3BF9B48; $Path=/coreWeb</ses:value>
+ <ses:value>$Version=0;
JSESSIONID=B8E1453D59FEAF174166CFE4B7E5AA80; $Path=/coreWeb</ses:value>
</ses:header>
<ses:header>
<ses:name>host</ses:name>
@@ -56,7 +56,7 @@
</ses:header>
<ses:header>
<ses:name>testrecorder.playback.testid</ses:name>
- <ses:value>1b325bd5:102ef2c7065:-7d9e</ses:value>
+ <ses:value>21d6d99c:1030db91347:-7da2</ses:value>
</ses:header>
<ses:header>
<ses:name>user-agent</ses:name>
@@ -80,12 +80,20 @@
form should be on the <b>Text 2</b> textbox when the page is
loaded.
</p>
- <form name="Netui_Form_0" id="Netui_Form_0"
action="/coreWeb/coretags/form/focus/post.do" method="post">
+ <form name="Netui_Form_0" id="Netui_Form_0"
action="/coreWeb/coretags/form/focus/post.do" method="post">
Text 1: <input type="text" name="{actionForm.text1}"
id="text1"><br>
Text 2: <input type="text" name="{actionForm.text2}"
id="text2"><br>
Text 3: <input type="text" name="{actionForm.text3}"
id="text3"><br>
<input type="submit" id="button" value="submit">
</form>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+// set the focus on a field within the named form
+if (document.forms["Netui_Form_0"]["{actionForm.text2}"].type != "hidden")
+ document.forms["Netui_Form_0"]["{actionForm.text2}"].focus();
+-->
+</script>
+
<hr>
Results:
</body>
@@ -178,7 +186,7 @@
</ses:testResults>
</ses:test>
</ses:tests>
- <ses:endDate>29 Mar 2005, 09:40:05.132 AM MST</ses:endDate>
+ <ses:endDate>04 Apr 2005, 09:02:13.608 AM MDT</ses:endDate>
<ses:sessionStatus>fail</ses:sessionStatus>
<ses:testCount>1</ses:testCount>
<ses:passedCount>0</ses:passedCount>