Added:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowAttributes.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowAttributes.xml?rev=164979&view=auto
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowAttributes.xml
(added)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowAttributes.xml
Wed Apr 27 06:34:10 2005
@@ -0,0 +1,300 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+ <ses:sessionName>DataGridRowAttributes</ses:sessionName>
+ <ses:tester>ekoneil</ses:tester>
+ <ses:startDate>26 Apr 2005, 10:59:18.375 PM MDT</ses:startDate>
+ <ses:description>Test rendering HTML attributes on the data grid's
generated <tr> tags inside of a <tbody>.</ses:description>
+ <ses:tests>
+ <ses:test>
+ <ses:testNumber>1</ses:testNumber>
+ <ses:request>
+ <ses:protocol>HTTP</ses:protocol>
+ <ses:protocolVersion>1.1</ses:protocolVersion>
+ <ses:host>localhost</ses:host>
+ <ses:port>8080</ses:port>
+
<ses:uri>/coreWeb/databinding/datagrid/misc/rowAttributes.jsp</ses:uri>
+ <ses:method>GET</ses:method>
+ <ses:parameters/>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>0D1312FB82688431CD62F4EB6D1F4642</ses:value>
+ </ses:cookie>
+ </ses:cookies>
+ <ses:headers>
+ <ses:header>
+ <ses:name>accept</ses:name>
+
<ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-charset</ses:name>
+ <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-encoding</ses:name>
+ <ses:value>gzip,deflate</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>accept-language</ses:name>
+ <ses:value>en-us,en;q=0.5</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+
<ses:value>JSESSIONID=0D1312FB82688431CD62F4EB6D1F4642</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>host</ses:name>
+ <ses:value>localhost:8080</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>keep-alive</ses:name>
+ <ses:value>300</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>user-agent</ses:name>
+ <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.7) Gecko/20050414 Firefox/1.0.3</ses:value>
+ </ses:header>
+ </ses:headers>
+ </ses:request>
+ <ses:response>
+ <ses:statusCode>200</ses:statusCode>
+ <ses:reason/>
+ <ses:responseBody><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+
+ <head>
+ <title>NetUI Data Grid Samples</title>
+ <link rel="stylesheet"
href="/coreWeb/databinding/datagrid/site/css/default.css" type="text/css"/>
+ </head>
+ <base
href="http://localhost:8080/coreWeb/databinding/datagrid/misc/rowAttributes.jsp">
+ <body>
+ <p>
+ <b>Data Grid HTML Row Attributes</b>
+ <table width="100%">
+ <tr><td></td></tr>
+ <tr><td>
+
+ <p>
+
+
+
+
+
+
+
+ <br/>
+ Page 1 of 1
+<table class="datagrid" cellpadding="5" width="50%" cellspacing="5">
+
+
+
+
+
+
+
+<tr class="datagrid-header">
+ <th class="datagrid">Symbol</th>
+
+
+ <th class="datagrid">Price</th>
+
+
+ <th class="datagrid">Web</th>
+
+
+
+</tr>
+
+
+
+
+
+
+<tr id="theRow0" class="datagrid-even" lang="en" dir="foo">
+ <td class="datagrid"><span>BEAS</span></td>
+
+ <td class="datagrid"><span>14.35</span></td>
+
+ <td class="datagrid"><a
href="http://www.bea.com?rowid=0&symbol=BEAS"><span>BEA
Systems</span></a></td>
+
+
+</tr>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_names == null)
+ var netui_names = new Object();
+netui_names.theRow0="theRow0"
+// method which will return a real id for a tagId,
+// the tag parameter will be used to find the idScope for
+// containers that may scope their ids
+function getNetuiTagName(id, tag)
+{
+ var idScope = getScopeId(tag);
+ if (idScope == "")
+ return netui_names[id];
+ else
+ return netui_names[idScope + "__" + id];
+}
+
+// This method will walk the hierarchy from the pass element looking for a
idScope.
+// The first idScope found will be returned or the empty string if a idScope
is not found.
+function getScopeId(tag)
+{
+ if (tag == null || tag.getAttribute == null)
+ return "";
+ var attrVal = tag.getAttribute("netui:idScope");
+ if (attrVal != null)
+ return attrVal;
+ return getScopeId(tag.parentNode);
+}
+
+-->
+</script>
+
+<script language="JavaScript" type="text/JavaScript">
+<!--
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+ var idScope = lookupIdScope(tag,".");
+ return (idScope == "") ? id : idScope + id;
+}
+
+//Non-Legacy lookup method creating a fully qualified scope id
+function lookupIdScope(tag,sep)
+{
+ var val = "";
+ if (sep == null) sep = "";
+ while (tag != null && tag.getAttribute != null) {
+ try {
+ var attrVal = tag.getAttribute("netui:idScope");
+ } catch (e) { /* ignore, in IE6 calling on a table results in an
exception */ }
+ if (attrVal != null)
+ val = attrVal + sep + val;
+ tag = tag.parentNode;
+ }
+ return val;
+}
+
+-->
+</script>
+
+
+
+<tr id="theRow1" class="datagrid-odd" lang="en" dir="foo">
+ <td class="datagrid"><span>CSCO</span></td>
+
+ <td class="datagrid"><span>19.42</span></td>
+
+ <td class="datagrid"><a
href="http://www.cisco.com?rowid=1&symbol=CSCO"><span>Cisco
Systems</span></a></td>
+
+
+</tr>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+netui_names.theRow1="theRow1"
+-->
+</script>
+
+<script language="JavaScript" type="text/JavaScript">
+<!--
+-->
+</script>
+
+
+
+<tr id="theRow2" class="datagrid-even" lang="en" dir="foo">
+ <td class="datagrid"><span>GE</span></td>
+
+ <td class="datagrid"><span>59.42</span></td>
+
+ <td class="datagrid"><a
href="http://www.ge.com?rowid=2&symbol=GE"><span>General
Electric</span></a></td>
+
+
+</tr>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+netui_names.theRow2="theRow2"
+-->
+</script>
+
+<script language="JavaScript" type="text/JavaScript">
+<!--
+-->
+</script>
+
+
+
+<tr id="theRow3" class="datagrid-odd" lang="en" dir="foo">
+ <td class="datagrid"><span>RHAT</span></td>
+
+ <td class="datagrid"><span>18.2</span></td>
+
+ <td class="datagrid"><a
href="http://www.redhat.com?rowid=3&symbol=RHAT"><span>RedHat
Systems</span></a></td>
+
+
+</tr>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+netui_names.theRow3="theRow3"
+-->
+</script>
+
+<script language="JavaScript" type="text/JavaScript">
+<!--
+-->
+</script>
+
+
+
+<tr id="theRow4" class="datagrid-even" lang="en" dir="foo">
+ <td class="datagrid"><span>YHOO</span></td>
+
+ <td class="datagrid"><span>48.16</span></td>
+
+ <td class="datagrid"><a
href="http://www.yahoo.com?rowid=4&symbol=YHOO"><span>Yahoo
Inc</span></a></td>
+
+
+</tr>
+<script language="JavaScript" type="text/JavaScript">
+<!--
+netui_names.theRow4="theRow4"
+-->
+</script>
+
+<script language="JavaScript" type="text/JavaScript">
+<!--
+-->
+</script>
+
+
+ </table>
+
+
+ <br/>
+ <a href="/coreWeb/databinding/datagrid/misc/index.jsp">Reset</a>
+ <br/>
+ </p>
+
+ </td></tr>
+ </p>
+ <table>
+ <tr><td><a
href="/netuiDRT/databinding/datagrid/basic/index.jsp">Home</a></td></tr>
+ </table>
+ </p>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ </ses:tests>
+ <ses:endDate>26 Apr 2005, 10:59:24.754 PM MDT</ses:endDate>
+ <ses:testCount>1</ses:testCount>
+</ses:recorderSession>
\ No newline at end of file
Propchange:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowAttributes.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroups.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroups.xml?rev=164979&r1=164978&r2=164979&view=diff
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroups.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroups.xml
Wed Apr 27 06:34:10 2005
@@ -2,7 +2,7 @@
<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
<ses:sessionName>DataGridRowGroups</ses:sessionName>
<ses:tester>ekoneil</ses:tester>
- <ses:startDate>24 Apr 2005, 04:48:41.125 PM MDT</ses:startDate>
+ <ses:startDate>26 Apr 2005, 06:55:32.275 PM MDT</ses:startDate>
<ses:description>ekoneil</ses:description>
<ses:tests>
<ses:test>
@@ -18,7 +18,7 @@
<ses:cookies>
<ses:cookie>
<ses:name>JSESSIONID</ses:name>
- <ses:value>540BAC00651BB89E804869735792D4BF</ses:value>
+ <ses:value>B03D7B9751C39776E6BE33B89A758571</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=540BAC00651BB89E804869735792D4BF; $Path=/coreWeb</ses:value>
+ <ses:value>$Version=0;
JSESSIONID=B03D7B9751C39776E6BE33B89A758571; $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>-6dc17ca0:1037664f187:-7f4e</ses:value>
+ <ses:value>1be1c38c:1038123d4ed:-7f4c</ses:value>
</ses:header>
<ses:header>
<ses:name>user-agent</ses:name>
@@ -136,7 +136,7 @@
<tbody>
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>BEAS</span></td>
<td class="datagrid"><span>14.35</span></td>
@@ -145,7 +145,7 @@
</tr>
-<tr class="datagrid-even">
+<tr class="datagrid-odd">
<td class="datagrid"><span>CSCO</span></td>
<td class="datagrid"><span>19.42</span></td>
@@ -154,7 +154,7 @@
</tr>
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>GE</span></td>
<td class="datagrid"><span>59.42</span></td>
@@ -163,7 +163,7 @@
</tr>
-<tr class="datagrid-even">
+<tr class="datagrid-odd">
<td class="datagrid"><span>RHAT</span></td>
<td class="datagrid"><span>18.2</span></td>
@@ -172,7 +172,7 @@
</tr>
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>YHOO</span></td>
<td class="datagrid"><span>48.16</span></td>
@@ -201,9 +201,9 @@
</ses:testResults>
</ses:test>
</ses:tests>
- <ses:endDate>24 Apr 2005, 04:48:42.668 PM MDT</ses:endDate>
+ <ses:endDate>26 Apr 2005, 06:55:33.697 PM MDT</ses:endDate>
<ses:sessionStatus>fail</ses:sessionStatus>
<ses:testCount>1</ses:testCount>
<ses:passedCount>0</ses:passedCount>
<ses:failedCount>1</ses:failedCount>
-</ses:recorderSession>
+</ses:recorderSession>
\ No newline at end of file
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroupsEmptyStyle.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroupsEmptyStyle.xml?rev=164979&r1=164978&r2=164979&view=diff
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroupsEmptyStyle.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridRowGroupsEmptyStyle.xml
Wed Apr 27 06:34:10 2005
@@ -2,7 +2,7 @@
<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
<ses:sessionName>DataGridRowGroupsEmptyStyle</ses:sessionName>
<ses:tester>ekoneil</ses:tester>
- <ses:startDate>24 Apr 2005, 04:48:42.698 PM MDT</ses:startDate>
+ <ses:startDate>26 Apr 2005, 06:55:33.887 PM MDT</ses:startDate>
<ses:description>ekoneil</ses:description>
<ses:tests>
<ses:test>
@@ -18,7 +18,7 @@
<ses:cookies>
<ses:cookie>
<ses:name>JSESSIONID</ses:name>
- <ses:value>540BAC00651BB89E804869735792D4BF</ses:value>
+ <ses:value>B03D7B9751C39776E6BE33B89A758571</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=540BAC00651BB89E804869735792D4BF; $Path=/coreWeb</ses:value>
+ <ses:value>$Version=0;
JSESSIONID=B03D7B9751C39776E6BE33B89A758571; $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>-6dc17ca0:1037664f187:-7f4c</ses:value>
+ <ses:value>1be1c38c:1038123d4ed:-7f4a</ses:value>
</ses:header>
<ses:header>
<ses:name>user-agent</ses:name>
@@ -136,7 +136,7 @@
<tbody>
-<tr class="odd">
+<tr class="even">
<td><span>BEAS</span></td>
<td><span>14.35</span></td>
@@ -145,7 +145,7 @@
</tr>
-<tr class="even">
+<tr class="odd">
<td><span>CSCO</span></td>
<td><span>19.42</span></td>
@@ -154,7 +154,7 @@
</tr>
-<tr class="odd">
+<tr class="even">
<td><span>GE</span></td>
<td><span>59.42</span></td>
@@ -163,7 +163,7 @@
</tr>
-<tr class="even">
+<tr class="odd">
<td><span>RHAT</span></td>
<td><span>18.2</span></td>
@@ -172,7 +172,7 @@
</tr>
-<tr class="odd">
+<tr class="even">
<td><span>YHOO</span></td>
<td><span>48.16</span></td>
@@ -201,9 +201,9 @@
</ses:testResults>
</ses:test>
</ses:tests>
- <ses:endDate>24 Apr 2005, 04:48:43.759 PM MDT</ses:endDate>
+ <ses:endDate>26 Apr 2005, 06:55:35.109 PM MDT</ses:endDate>
<ses:sessionStatus>fail</ses:sessionStatus>
<ses:testCount>1</ses:testCount>
<ses:passedCount>0</ses:passedCount>
<ses:failedCount>1</ses:failedCount>
-</ses:recorderSession>
+</ses:recorderSession>
\ No newline at end of file
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridScriptletTagFile.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridScriptletTagFile.xml?rev=164979&r1=164978&r2=164979&view=diff
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridScriptletTagFile.xml
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridScriptletTagFile.xml
Wed Apr 27 06:34:10 2005
@@ -2,7 +2,7 @@
<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
<ses:sessionName>DataGridScriptletTagFile</ses:sessionName>
<ses:tester>ekoneil</ses:tester>
- <ses:startDate>24 Apr 2005, 04:48:43.809 PM MDT</ses:startDate>
+ <ses:startDate>26 Apr 2005, 06:55:35.129 PM MDT</ses:startDate>
<ses:description>ekoneil</ses:description>
<ses:tests>
<ses:test>
@@ -18,7 +18,7 @@
<ses:cookies>
<ses:cookie>
<ses:name>JSESSIONID</ses:name>
- <ses:value>540BAC00651BB89E804869735792D4BF</ses:value>
+ <ses:value>B03D7B9751C39776E6BE33B89A758571</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=540BAC00651BB89E804869735792D4BF; $Path=/coreWeb</ses:value>
+ <ses:value>$Version=0;
JSESSIONID=B03D7B9751C39776E6BE33B89A758571; $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>-6dc17ca0:1037664f187:-7f4a</ses:value>
+ <ses:value>1be1c38c:1038123d4ed:-7f48</ses:value>
</ses:header>
<ses:header>
<ses:name>user-agent</ses:name>
@@ -128,7 +128,7 @@
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>BEAS</span></td>
<td class="datagrid"><a
href="http://www.bea.com?rowid=0&symbol=BEAS"><span>BEA
Systems</span></a></td>
@@ -137,7 +137,7 @@
</tr>
-<tr class="datagrid-even">
+<tr class="datagrid-odd">
<td class="datagrid"><span>CSCO</span></td>
<td class="datagrid"><a
href="http://www.cisco.com?rowid=1&symbol=CSCO"><span>Cisco
Systems</span></a></td>
@@ -146,7 +146,7 @@
</tr>
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>GE</span></td>
<td class="datagrid"><a
href="http://www.ge.com?rowid=2&symbol=GE"><span>General
Electric</span></a></td>
@@ -155,7 +155,7 @@
</tr>
-<tr class="datagrid-even">
+<tr class="datagrid-odd">
<td class="datagrid"><span>RHAT</span></td>
<td class="datagrid"><a
href="http://www.redhat.com?rowid=3&symbol=RHAT"><span>RedHat
Systems</span></a></td>
@@ -164,7 +164,7 @@
</tr>
-<tr class="datagrid-odd">
+<tr class="datagrid-even">
<td class="datagrid"><span>YHOO</span></td>
<td class="datagrid"><a
href="http://www.yahoo.com?rowid=4&symbol=YHOO"><span>Yahoo
Inc</span></a></td>
@@ -212,9 +212,9 @@
</ses:testResults>
</ses:test>
</ses:tests>
- <ses:endDate>24 Apr 2005, 04:48:46.223 PM MDT</ses:endDate>
+ <ses:endDate>26 Apr 2005, 06:55:37.703 PM MDT</ses:endDate>
<ses:sessionStatus>fail</ses:sessionStatus>
<ses:testCount>1</ses:testCount>
<ses:passedCount>0</ses:passedCount>
<ses:failedCount>1</ses:failedCount>
-</ses:recorderSession>
+</ses:recorderSession>
\ No newline at end of file