[ 
https://issues.apache.org/jira/browse/HADOOP-6725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861754#action_12861754
 ] 

Steve Loughran commented on HADOOP-6725:
----------------------------------------

I am +1 for this and anything else which tests the webapps. HtmlUnit is the 
best in-java web app test framework I know of; I use it on my code. Right now 
we have some tests for a servlet or two, but nothing looks at the JSP/webapp 
content, so things like HADOOP-6461 aren't being picked up

# HtmlUnit is looking at moving to the ASF; support from the Hadoop team would 
be welcome
# JSF unit is separate, it's testing Java Server Faces. HtmlUnit will happily 
test JSP and pages with javascript in them
# For ease of testing, HTML elements need IDs. HADOOP-5388 covers this. The 
tags and the tests can go hand in hand. 
# I can help with setting up the test framework, try and get Marc Guillemot to 
review the design too.

I would really benefit from some HtmlUnit tests that could be run against a 
live cluster rather than just a miniDFS and miniMR cluster; the tests could be 
something standalone/redistributable that could be given the URL of a NN, DN, 
JT or TT and scan through all the expected pages. Having sequences to submit 
jobs and other actions then becomes further work.


> Evaluate HtmlUnit for unit and regression testing webpages
> ----------------------------------------------------------
>
>                 Key: HADOOP-6725
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6725
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test
>            Reporter: Jakob Homan
>            Priority: Minor
>
> HtmlUnit (http://htmlunit.sourceforge.net/) looks like it may be a good tool 
> to help unit testing and evaluating our various webpages throughout the 
> project.  Currently this is done only occasionally in the code (usually falls 
> to being a manual test during release cycles), and when it is done, usually 
> the code to parse the webpage, etc. is re-written each time.  The framework 
> is Apache licensed, so including it won't be an issue.  If it's found to be 
> useful, new JIRAs for HDFS and MR should be opened.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to