You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.html 2.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Test Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="test">Test</a></h2>
  8. <h3>Description</h3>
  9. <p>This is a primitive task to execute a unit test in the org.apache.testlet framework.</p>
  10. <p><strong>Note:</strong> This task depends on external libraries not included
  11. in the Ant distribution. See <a href="../install.html#librarydependencies">
  12. Library Dependencies</a> for more information.
  13. </p>
  14. <h3>Parameters</h3>
  15. <table border="1" cellpadding="2" cellspacing="0">
  16. <tr>
  17. <td valign="top"><b>Attribute</b></td>
  18. <td valign="top"><b>Description</b></td>
  19. <td align="center" valign="top"><b>Required</b></td>
  20. </tr>
  21. <tr>
  22. <td valign="top">showSuccess</td>
  23. <td valign="top">a boolean value indicating whether tests should display a
  24. message on success
  25. </td>
  26. <td valign="top" align="center">No</td>
  27. </tr>
  28. <tr>
  29. <td valign="top">showBanner</td>
  30. <td valign="top">a boolean value indicating whether a banner should be displayed
  31. when starting testlet engine
  32. </td>
  33. <td valign="top" align="center">No</td>
  34. </tr>
  35. <tr>
  36. <td valign="top">forceShowTrace</td>
  37. <td valign="top">a boolean indicating that a stack trace is displayed on any failure
  38. </td>
  39. <td valign="top" align="center">No</td>
  40. </tr>
  41. <tr>
  42. <td valign="top">showTrace</td>
  43. <td valign="top">a boolean indicating that a stack trace is displayed on
  44. error (but not normal failure)
  45. </td>
  46. <td valign="top" align="center">No</td>
  47. </tr>
  48. </table>
  49. <p>
  50. The user can also specify the nested &lt;classpath&gt; element which defines classpath
  51. in which the task is executed. The user also specifies a subelement per testlet executed
  52. which has content that specifies tasklet classname.</p>
  53. <h3>Examples</h3>
  54. <blockquote>
  55. <pre>
  56. &lt;test showSuccess=&quot;false&quot; showBanner=&quot;false&quot; showTrace=&quot;true&quot; forceShowTrace=&quot;true&quot;&gt;
  57. &lt;classpath refid=&quot;test.classpath&quot;/&gt;
  58. &lt;testlet&gt;org.foo.MyTestlet&lt;/testlet&gt;
  59. &lt;testlet&gt;org.foo.MyOtherTestlet&lt;/testlet&gt;
  60. &lt;/test&gt;
  61. </pre>
  62. </blockquote>
  63. The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet
  64. <hr>
  65. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
  66. Reserved.</p>
  67. </body>
  68. </html>