Java Doc for XMLTestSuiteRunner.java in  » Graphic-Library » batik » org » apache » batik » test » xml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.test.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.test.xml.XMLTestSuiteRunner

XMLTestSuiteRunner
public class XMLTestSuiteRunner implements XTRunConstants,XTSConstants(Code)
This class can be used to build and run a TestSuite from an XML description following the "XML Test Run" and "XML Test Suite" formats, whose constants are defined in the XTRunConstants and XTSConstants interfaces. This class takes a "Test Run" XML description as an input. That description contains:
+ pointers to a number of "Test Suite" XML descriptions, which contain the definition of the set of Tests to be run and their configuration.
+ a description of the set of TestReportProcessor and their configuration that should be used to process the reports generated by the various TestSuites.

author:
   Vincent Hardy
version:
   $Id: XMLTestSuiteRunner.java 482121 2006-12-04 10:00:39Z dvholten $

Inner Class :public static class AcceptAllTestsFilter implements TestFilter
Inner Class :public static class IdBasedTestFilter implements TestFilter

Field Summary
final public static  StringCANNOT_CREATE_TEST_REPORT_PROCESSOR
     An error happened while processing a TestreportProcessor description.
final public static  StringCOULD_NOT_CONVERT_FILE_NAME_TO_URI
    
final public static  StringERROR_RUNNING_TEST_SUITE
    
final public static  StringINVALID_DOCUMENT
     Displayed when the input document cannot be parsed.
final public static  StringINVALID_URI
    
final public static  StringMESSAGE_UNMATCHED_TEST_IDS
     Displayed when no test or testSuite matching the input id was found.
final public static  StringNOT_A_FILE_TRY_URI
     Displayed when the input argument does not represent an existing file to notify the user that the argument is going to be interpreted as a URI.
final public static  StringTEST_REPORT_PROCESSING_EXCEPTION
     An error happened while processing the TestReport generated by the TestSuite {0} : TestReportProcessor class name.
final public static  StringTEST_SUITE_EXCEPTION
     An error happened while running the TestSuite {0} : TestSuite name {1} : TestSuite class name.
final public static  StringUSAGE
     Displayed when the user passes no arguments to the command line.


Method Summary
protected  TestReportProcessorbuildProcessor(Element element)
     Builds a TestResultProcessor from an element.
protected  DefaultTestSuitebuildTestRunTestSuite(Element element)
     Builds a TestSuite from an input element. This method assumes that element is a <testRun> instance.
protected  TestReportProcessor[]extractTestReportProcessor(Element element)
    
protected  Element[]getChildrenByTagName(Element element, String tagName)
     Gets all the children of a given type.
public static  voidmain(String[] args)
    
protected  voidprocessReport(TestReport report, TestReportProcessor[] processors)
    
public  TestReportrun(Document doc, String[] ids)
     Runs the test suite described by the input Document object.
protected  TestReportrun(Element testRunElement, String[] ids)
    
protected  TestReportrunTest(Test test)
    

Field Detail
CANNOT_CREATE_TEST_REPORT_PROCESSOR
final public static String CANNOT_CREATE_TEST_REPORT_PROCESSOR(Code)
An error happened while processing a TestreportProcessor description. {0} : the "className" attribute value {1} : exception's class name {2} : exception's message {3} : exception's stack trace



COULD_NOT_CONVERT_FILE_NAME_TO_URI
final public static String COULD_NOT_CONVERT_FILE_NAME_TO_URI(Code)
Displayed when the input file name cannot be turned into a URL



ERROR_RUNNING_TEST_SUITE
final public static String ERROR_RUNNING_TEST_SUITE(Code)
Error displayed when an error occurs while running the test suite



INVALID_DOCUMENT
final public static String INVALID_DOCUMENT(Code)
Displayed when the input document cannot be parsed. {0} : uri of the invalid document. {1} : exception generated while parsing {2} : exception message



INVALID_URI
final public static String INVALID_URI(Code)
Displayed when the input argument does not represent a valid URI



MESSAGE_UNMATCHED_TEST_IDS
final public static String MESSAGE_UNMATCHED_TEST_IDS(Code)
Displayed when no test or testSuite matching the input id was found. {0} : unmatched id set



NOT_A_FILE_TRY_URI
final public static String NOT_A_FILE_TRY_URI(Code)
Displayed when the input argument does not represent an existing file to notify the user that the argument is going to be interpreted as a URI.



TEST_REPORT_PROCESSING_EXCEPTION
final public static String TEST_REPORT_PROCESSING_EXCEPTION(Code)
An error happened while processing the TestReport generated by the TestSuite {0} : TestReportProcessor class name. {1} : exception's class name. {2} : exception's message {3} : exception's stack trace.



TEST_SUITE_EXCEPTION
final public static String TEST_SUITE_EXCEPTION(Code)
An error happened while running the TestSuite {0} : TestSuite name {1} : TestSuite class name. {1} : exception's class name. {2} : exception's message {3} : exception's stack trace.



USAGE
final public static String USAGE(Code)
Displayed when the user passes no arguments to the command line.





Method Detail
buildProcessor
protected TestReportProcessor buildProcessor(Element element) throws TestException(Code)
Builds a TestResultProcessor from an element.



buildTestRunTestSuite
protected DefaultTestSuite buildTestRunTestSuite(Element element) throws TestException(Code)
Builds a TestSuite from an input element. This method assumes that element is a <testRun> instance. The element is scanned for children <testSuite> elements which is loaded into a Test and composited into a TestSuite



extractTestReportProcessor
protected TestReportProcessor[] extractTestReportProcessor(Element element) throws TestException(Code)
Builds an array of TestReportProcessor from the input element, assuming the input element is a instance,



getChildrenByTagName
protected Element[] getChildrenByTagName(Element element, String tagName)(Code)
Gets all the children of a given type.



main
public static void main(String[] args)(Code)



processReport
protected void processReport(TestReport report, TestReportProcessor[] processors) throws TestException(Code)



run
public TestReport run(Document doc, String[] ids) throws TestException(Code)
Runs the test suite described by the input Document object. If the input ids array is null or of zero length, then all the tests will be run. Otherwise, only the tests identified by the array will be run.



run
protected TestReport run(Element testRunElement, String[] ids) throws TestException(Code)



runTest
protected TestReport runTest(Test test) throws TestException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.