<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">

<HTML>
<HEAD>
  <TITLE>XOTcl - Documentation -- ./library/lib/test.xotcl</TITLE>
  <LINK REL="StyleSheet" HREF="xotcl-doc.css" TYPE="text/css">
</HEAD>

<BODY BGCOLOR="FFFFFF">
  <h1>
    <IMG SRC="./logo-100.jpg" ALT="./library/lib/test.xotcl" ALIGN="MIDDLE">
  ./library/lib/test.xotcl</h1>
  <HR>
  <P>
    <h2> Package/File Information </h2>
    <b> No package provided/required </b>
    <BR>
    <BR>
    <b>Defined Objects/Classes: </b>
    <UL>
      <LI>
        <A HREF="#Test">
          <em>Test</em>:
        </A>
        
        <BR>
      </LI>
    </UL>
    <BR>
    <b> Filename: </b>
    <A HREF="./library/lib/test.xotcl">
      ./library/lib/test.xotcl
    </A>
    <BR>
    <BR>
    <TABLE BORDER="0">
      <TR VALIGN="top">
        <TD VALIGN="top">
          <em> Description:</em>
        </TD>
        <TD VALIGN="top">
          
    Simple regression test support.
  
        </TD>
      </TR>
    </TABLE>
    <BR>
    <HR>
    <P>
      <A NAME="Test">
        
      </A>
      <h2> Class: <em> Test </em> </h2>
      <b>Class</b>: Class
      <BR>
      
      
      <TABLE BORDER="0">
        <TR VALIGN="top">
          <TD VALIGN="top">
            <em> Description:</em>
          </TD>
          <TD VALIGN="top">
            
      Class Test is used to configure test instances, which can 
      be configured by the following parameters:
      <ul>
      <li>cmd: the command to be executed</li>
      <li>expected: the expected result</li>
      <li>count: number of executions of cmd</li>
      <li>pre: a command to be executed at the begin of the test (before cmd)</li>
      <li>post: a command to be executed after the test (after all cmds)</li>
      <li>namespace in which pre, post and cmd are evaluated; default ::</li>
      </ul>
      The defined tests can be executed by <tt>Test run</tt>
    
          </TD>
        </TR>
      </TABLE>
    </P>
    <BR>
  </P>
  <HR>
  <P>
  </P>
  <A HREF="./index.html">
    Back to index page.
  </A>
  <BR>
  <HR>
  <P>
  </P>
</BODY>
</HTML>