5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * The contents of this file are subject to the terms
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * of the Common Development and Distribution License
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * (the License). You may not use this file except in
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * compliance with the License.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * You can obtain a copy of the License at
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * See the License for the specific language governing
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * permission and limitations under the License.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * When distributing Covered Code, include this CDDL
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Header Notice in each file and include the License file
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * If applicable, add the following below the CDDL Header,
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * with the fields enclosed by brackets [] replaced by
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * your own identifying information:
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * $Id: TestCase.java,v 1.2 2008/06/25 05:53:06 qcheng Exp $
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * This class is the testcase object in the report generating tool setup.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * It is responsible for capturing the attributes of a testcase and then
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * generate HTML markup accordingly.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Creates an instance of <code>TestCase</code>
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Returns <code>true</code> if the testcase succeeded.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * @return <code>true</code> if the testcase succeeded.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Returns <code>true</code> if the testcase failed.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * @return <code>true</code> if the testcase failed.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Returns <code>true</code> if the testcase is skipped.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * @return <code>true</code> if the testcase is skipped.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * Returns HTML markup for this object.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster * @return HTML markup for this object.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster } else if (skipped()) {
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster buff.append(MessageFormat.format(HTMLConstants.TBL_ENTRY, params));
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster buff.append(MessageFormat.format(HTMLConstants.TBL_ENTRY, params));
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster buff.append(MessageFormat.format(HTMLConstants.TBL_NUM_ENTRY, params));
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster "<pre>" + failure.getStackTrace() + "</pre>" : " ";
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster buff.append(MessageFormat.format(HTMLConstants.TBL_ENTRY, params));
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster timeTaken = Float.parseFloat(elt.getAttribute("time"));
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster int numChildElements = childElements.getLength();
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster if ((n != null) && (n.getNodeType() == Node.ELEMENT_NODE)) {