|
|
Author: rich
Date: Thu Jun 16 16:26:04 2005
New Revision: 191033
URL: http://svn.apache.org/viewcvs?rev=191033&view=rev
Log:
Add the missing InheritFormBeanMessages test file.
Added:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml
(with props)
Added:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml?rev=191033&view=auto
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml
(added)
+++
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml
Thu Jun 16 16:26:04 2005
@@ -0,0 +1,533 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+ <ses:sessionName>InheritFormBeanMessages</ses:sessionName>
+ <ses:tester>rich</ses:tester>
+ <ses:startDate>16 Jun 2005, 01:43:34.343 AM MDT</ses:startDate>
+ <ses:description>Test to verify that a @Jpf.FormBean annotation is
inherited from a superclass if none is provided on the derived class, and that
it is overridden if the derived class has one.</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/miniTests/inheritFormBeanMessages/Controller.jpf</ses:uri>
+ <ses:method>GET</ses:method>
+ <ses:parameters/>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>4748326E271C3D4EC6E16B24B8E73145</ses:value>
+ </ses:cookie>
+ <ses:cookie>
+ <ses:name>nde-textsize</ses:name>
+ <ses:value>16px</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.7,ja;q=0.3</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=4748326E271C3D4EC6E16B24B8E73145;
nde-textsize=16px</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.8) Gecko/20050511 Firefox/1.0.4</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>
+ <base
href="http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/index.jsp">
+ </head>
+ <body>
+ <h3>/miniTests/inheritFormBeanMessages/Controller.jpf</h3>
+
+ This test verifies that a <code>@Jpf.FormBean</code> annotation is
inherited from a superclass
+ if none is provided on the derived class, and that it is overridden if
the derived class has one.
+
+ <ul>
+ <li>
+ The first <code>netui:form</code> uses the base class, which
defines message resources
+ in its <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
simply inherits the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
overrides the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ </ul>
+
+ In each case, leave the text box empty when you press Submit.
+ <br/>
+ <br/>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitBaseFormBean.do"
method="post">
+ foo: <input type="text" name="{actionForm.foo}">
+ <br/>
+ <input type="submit" value="Submit BaseFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do"
method="post">
+ bar: <input type="text" name="{actionForm.bar}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit DerivedFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitOverridingFormBean.do"
method="post">
+ baz: <input type="text" name="{actionForm.baz}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit OverridingFormBean">
+ </form>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>2</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/miniTests/inheritFormBeanMessages/submitBaseFormBean.do</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>{actionForm.foo}</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>4748326E271C3D4EC6E16B24B8E73145</ses:value>
+ </ses:cookie>
+ <ses:cookie>
+ <ses:name>nde-textsize</ses:name>
+ <ses:value>16px</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.7,ja;q=0.3</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>21</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+ <ses:value>JSESSIONID=4748326E271C3D4EC6E16B24B8E73145;
nde-textsize=16px</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>referer</ses:name>
+
<ses:value>http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/Controller.jpf</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.8) Gecko/20050511 Firefox/1.0.4</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>
+ <base
href="http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/index.jsp">
+ </head>
+ <body>
+ <h3>/miniTests/inheritFormBeanMessages/Controller.jpf</h3>
+
+ This test verifies that a <code>@Jpf.FormBean</code> annotation is
inherited from a superclass
+ if none is provided on the derived class, and that it is overridden if
the derived class has one.
+
+ <ul>
+ <li>
+ The first <code>netui:form</code> uses the base class, which
defines message resources
+ in its <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
simply inherits the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
overrides the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ </ul>
+
+ In each case, leave the text box empty when you press Submit.
+ <br/>
+ <br/>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitBaseFormBean.do"
method="post">
+ foo: <input type="text" name="{actionForm.foo}">Got the message!
+
+ <br/>
+ <input type="submit" value="Submit BaseFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do"
method="post">
+ bar: <input type="text" name="{actionForm.bar}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit DerivedFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitOverridingFormBean.do"
method="post">
+ baz: <input type="text" name="{actionForm.baz}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit OverridingFormBean">
+ </form>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>3</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/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>{actionForm.bar}</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>{actionForm.foo}</ses:name>
+ <ses:value>something</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>4748326E271C3D4EC6E16B24B8E73145</ses:value>
+ </ses:cookie>
+ <ses:cookie>
+ <ses:name>nde-textsize</ses:name>
+ <ses:value>16px</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.7,ja;q=0.3</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>52</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+ <ses:value>JSESSIONID=4748326E271C3D4EC6E16B24B8E73145;
nde-textsize=16px</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>referer</ses:name>
+
<ses:value>http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/submitBaseFormBean.do</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.8) Gecko/20050511 Firefox/1.0.4</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>
+ <base
href="http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/index.jsp">
+ </head>
+ <body>
+ <h3>/miniTests/inheritFormBeanMessages/Controller.jpf</h3>
+
+ This test verifies that a <code>@Jpf.FormBean</code> annotation is
inherited from a superclass
+ if none is provided on the derived class, and that it is overridden if
the derived class has one.
+
+ <ul>
+ <li>
+ The first <code>netui:form</code> uses the base class, which
defines message resources
+ in its <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
simply inherits the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
overrides the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ </ul>
+
+ In each case, leave the text box empty when you press Submit.
+ <br/>
+ <br/>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitBaseFormBean.do"
method="post">
+ foo: <input type="text" name="{actionForm.foo}">
+ <br/>
+ <input type="submit" value="Submit BaseFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do"
method="post">
+ bar: <input type="text" name="{actionForm.bar}">Got the message!
+
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit DerivedFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitOverridingFormBean.do"
method="post">
+ baz: <input type="text" name="{actionForm.baz}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit OverridingFormBean">
+ </form>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ <ses:test>
+ <ses:testNumber>4</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/miniTests/inheritFormBeanMessages/submitOverridingFormBean.do</ses:uri>
+ <ses:method>POST</ses:method>
+ <ses:parameters>
+ <ses:parameter>
+ <ses:name>{actionForm.baz}</ses:name>
+ <ses:value/>
+ </ses:parameter>
+ <ses:parameter>
+ <ses:name>{actionForm.foo}</ses:name>
+ <ses:value>something</ses:value>
+ </ses:parameter>
+ </ses:parameters>
+ <ses:cookies>
+ <ses:cookie>
+ <ses:name>JSESSIONID</ses:name>
+ <ses:value>4748326E271C3D4EC6E16B24B8E73145</ses:value>
+ </ses:cookie>
+ <ses:cookie>
+ <ses:name>nde-textsize</ses:name>
+ <ses:value>16px</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.7,ja;q=0.3</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>connection</ses:name>
+ <ses:value>keep-alive</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-length</ses:name>
+ <ses:value>52</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>content-type</ses:name>
+ <ses:value>application/x-www-form-urlencoded</ses:value>
+ </ses:header>
+ <ses:header>
+ <ses:name>cookie</ses:name>
+ <ses:value>JSESSIONID=4748326E271C3D4EC6E16B24B8E73145;
nde-textsize=16px</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>referer</ses:name>
+
<ses:value>http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do</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.8) Gecko/20050511 Firefox/1.0.4</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>
+ <base
href="http://localhost:8080/coreWeb/miniTests/inheritFormBeanMessages/index.jsp">
+ </head>
+ <body>
+ <h3>/miniTests/inheritFormBeanMessages/Controller.jpf</h3>
+
+ This test verifies that a <code>@Jpf.FormBean</code> annotation is
inherited from a superclass
+ if none is provided on the derived class, and that it is overridden if
the derived class has one.
+
+ <ul>
+ <li>
+ The first <code>netui:form</code> uses the base class, which
defines message resources
+ in its <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
simply inherits the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ <li>
+ The second <code>netui:form</code> uses a derived class, which
overrides the
+ <code>@Jpf.FormBean</code> annotation.
+ </li>
+ </ul>
+
+ In each case, leave the text box empty when you press Submit.
+ <br/>
+ <br/>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitBaseFormBean.do"
method="post">
+ foo: <input type="text" name="{actionForm.foo}">
+ <br/>
+ <input type="submit" value="Submit BaseFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitDerivedFormBean.do"
method="post">
+ bar: <input type="text" name="{actionForm.bar}">
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit DerivedFormBean">
+ </form>
+ <form
action="/coreWeb/miniTests/inheritFormBeanMessages/submitOverridingFormBean.do"
method="post">
+ baz: <input type="text" name="{actionForm.baz}">Got the
<i>override</i> message!
+
+ <input type="hidden" name="{actionForm.foo}" value="something">
+ <br/>
+ <input type="submit" value="Submit OverridingFormBean">
+ </form>
+ </body>
+
+</html>]]></ses:responseBody>
+ </ses:response>
+ </ses:test>
+ </ses:tests>
+ <ses:endDate>16 Jun 2005, 01:43:47.301 AM MDT</ses:endDate>
+ <ses:testCount>4</ses:testCount>
+</ses:recorderSession>
Propchange:
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/InheritFormBeanMessages.xml
------------------------------------------------------------------------------
svn:eol-style = native
|
|