hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6725) Evaluate HtmlUnit for unit and regression testing webpages
Date Thu, 29 Apr 2010 14:10:55 GMT

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

Steve Loughran commented on HADOOP-6725:

right now we have the situation in which pretty much none of the web UI is tested. API, yes,
HTTP, no. There is a cute test that fetches some XML from a servlet and hands off the work
to Xerces, but otherwise, nothing. This is unfortunate, as HADOOP-6461 shows -it is not clear
that on SVN_TRUNK, the webapps are working.

downstream, some people may be checking the web. My own deployment code takes a list of pages
and runs through them, which is how I know about HADOOP-6461. 

What I would like to see test-wise is
# Something to run through all the standard HTML, JSP pages, artwork, check for their presence.
# Maybe: grab dependencies (stylesheets &c)
# Fetch the logs

The more advanced stuff is to run through some real operations: 

# create files via the client API, check you you can browse them 
# submit a job on the command line, and track it via the web UI 

# Make unauthenticated calls and expect rejection.
# Have something log <script> text, fetch it from the logs, check the angle-brackets
get filtered
# Check cookies are marked httponly once that gets adopted.
# anything else we can think of.

> 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.

View raw message