As Ian mentioned if you look at the testcases here:

http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/

you will get an idea, basically an instance of the tag is created, the
output is written to an StringWriter and at the end the spaces are removed
and compared to a file with the expected output.

musachy

On 6/27/07, Mark P Ashworth <[EMAIL PROTECTED]> wrote:


Good Day,

I am busy in the process of developing a theme that uses the css_xhtml
theme
as the base and currently the process is

1. Make a change to the template
2. Deploy and run the application
3. Determine in the HTML why something does not look right

It would be cool if I could make a change and run a test case that shows
the
output. This would help with some of the testing but of course I would
still
need to run the theme in the application to determine if the theme
rendered
correctly but I could cut out some of the testing iterations.

I guess another point is that a person only creates the theme once. Just
wondered how the Struts 2 developers were doing it.

Regards,
Mark P Ashworth


Laurie Harper wrote:
>
> Mark P Ashworth wrote:
>> Is there a way to test how a tag like &lt;form&gt;&lt;textfield
>> /&gt;&lt;/form&gt; will be processed by a custom theme. I would like to
>> get
>> all of the theme processing done during development instead of
>> integration
>> time with the actual pages.
>
> What do you want to test, exactly? If you have a custom theme, then you
> have defined how the tags will be processed (rendered). Are you looking
> for an automated testing strategy for verifying your custom theme works
> as intended, or something else?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/-S2--Template-testing-tf3980644.html#a11324124
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to