doc/api/python/ats3.aste.AsteTestDropGenerator-class.html
changeset 432 f2ddfa555b0f
equal deleted inserted replaced
431:7685cec9fd3c 432:f2ddfa555b0f
       
     1 <?xml version="1.0" encoding="ascii"?>
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3           "DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     5 <head>
       
     6   <title>ats3.aste.AsteTestDropGenerator</title>
       
     7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
       
     8   <script type="text/javascript" src="epydoc.js"></script>
       
     9 </head>
       
    10 
       
    11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
       
    12       alink="#204080">
       
    13 <!-- ==================== NAVIGATION BAR ==================== -->
       
    14 <table class="navbar" border="0" width="100%" cellpadding="0"
       
    15        bgcolor="#a0c0ff" cellspacing="0">
       
    16   <tr valign="middle">
       
    17 
       
    18   <!-- Tree link -->
       
    19       <th>&nbsp;&nbsp;&nbsp;<a
       
    20         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
    21 
       
    22   <!-- Index link -->
       
    23       <th>&nbsp;&nbsp;&nbsp;<a
       
    24         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
    25 
       
    26   <!-- Help link -->
       
    27       <th>&nbsp;&nbsp;&nbsp;<a
       
    28         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
    29 
       
    30       <th class="navbar" width="100%"></th>
       
    31   </tr>
       
    32 </table>
       
    33 <table width="100%" cellpadding="0" cellspacing="0">
       
    34   <tr valign="top">
       
    35     <td width="100%">
       
    36       <span class="breadcrumbs">
       
    37         <a href="ats3-module.html">Package&nbsp;ats3</a> ::
       
    38         <a href="ats3.aste-module.html">Module&nbsp;aste</a> ::
       
    39         Class&nbsp;AsteTestDropGenerator
       
    40       </span>
       
    41     </td>
       
    42     <td>
       
    43       <table cellpadding="0" cellspacing="0">
       
    44         <!-- hide/show private -->
       
    45         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
       
    46     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
       
    47         <tr><td align="right"><span class="options"
       
    48             >[<a href="frames.html" target="_top">frames</a
       
    49             >]&nbsp;|&nbsp;<a href="ats3.aste.AsteTestDropGenerator-class.html"
       
    50             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    51       </table>
       
    52     </td>
       
    53   </tr>
       
    54 </table>
       
    55 <!-- ==================== CLASS DESCRIPTION ==================== -->
       
    56 <h1 class="epydoc">Class AsteTestDropGenerator</h1><span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator">source&nbsp;code</a></span><br /><br />
       
    57 <pre class="base-tree">
       
    58 object --+
       
    59          |
       
    60         <strong class="uidshort">AsteTestDropGenerator</strong>
       
    61 </pre>
       
    62 
       
    63 <hr />
       
    64 <p>Generate test drop zip file for ATS3.</p>
       
    65 <p>Generates drop zip files file from a TestPlan instance. The main
       
    66 responsibility of this class is to serialize the plan into a valid XML
       
    67 file and build a zip file for the drop.</p>
       
    68 <p>Creates one &lt;set&gt; for ASTE tests.</p>
       
    69 <div class="rst-section" id="rst-aste-harness-normal-operation">
       
    70 <h1 class="heading">ASTE harness, normal operation</h1>
       
    71 <ul class="rst-simple">
       
    72 <li>create logging dir for aste             makedir (to C:logsTestFramework)</li>
       
    73 <li>execute asset from the testasset.zip    execute-asset</li>
       
    74 <li>fetch logs                              fetch-log</li>
       
    75 </ul>
       
    76 </div><br /><br />
       
    77 
       
    78 <!-- ==================== INSTANCE METHODS ==================== -->
       
    79 <a name="section-InstanceMethods"></a>
       
    80 <table class="summary" border="1" cellpadding="3"
       
    81        cellspacing="0" width="100%" bgcolor="white">
       
    82 <tr bgcolor="#70b0f0" class="table-header">
       
    83   <td colspan="2" class="table-header">
       
    84     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
    85       <tr valign="top">
       
    86         <td align="left"><span class="table-header">Instance Methods</span></td>
       
    87         <td align="right" valign="top"
       
    88          ><span class="options">[<a href="#section-InstanceMethods"
       
    89          class="privatelink" onclick="toggle_private();"
       
    90          >hide private</a>]</span></td>
       
    91       </tr>
       
    92     </table>
       
    93   </td>
       
    94 </tr>
       
    95 <tr>
       
    96     <td width="15%" align="right" valign="top" class="summary">
       
    97       <span class="summary-type">&nbsp;</span>
       
    98     </td><td class="summary">
       
    99       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   100         <tr>
       
   101           <td><span class="summary-sig"><a href="ats3.aste.AsteTestDropGenerator-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span><br />
       
   102       x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
       
   103           <td align="right" valign="top">
       
   104             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.__init__">source&nbsp;code</a></span>
       
   105             
       
   106           </td>
       
   107         </tr>
       
   108       </table>
       
   109       
       
   110     </td>
       
   111   </tr>
       
   112 <tr>
       
   113     <td width="15%" align="right" valign="top" class="summary">
       
   114       <span class="summary-type">&nbsp;</span>
       
   115     </td><td class="summary">
       
   116       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   117         <tr>
       
   118           <td><span class="summary-sig"><a name="generate"></a><span class="summary-sig-name">generate</span>(<span class="summary-sig-arg">self</span>,
       
   119         <span class="summary-sig-arg">test_plan</span>,
       
   120         <span class="summary-sig-arg">output_file</span>)</span><br />
       
   121       Generate a test drop file.</td>
       
   122           <td align="right" valign="top">
       
   123             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate">source&nbsp;code</a></span>
       
   124             
       
   125           </td>
       
   126         </tr>
       
   127       </table>
       
   128       
       
   129     </td>
       
   130   </tr>
       
   131 <tr>
       
   132     <td width="15%" align="right" valign="top" class="summary">
       
   133       <span class="summary-type">&nbsp;</span>
       
   134     </td><td class="summary">
       
   135       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   136         <tr>
       
   137           <td><span class="summary-sig"><a name="generate_drop"></a><span class="summary-sig-name">generate_drop</span>(<span class="summary-sig-arg">self</span>,
       
   138         <span class="summary-sig-arg">test_plan</span>,
       
   139         <span class="summary-sig-arg">xml</span>,
       
   140         <span class="summary-sig-arg">output_file</span>)</span><br />
       
   141       Generate test drop zip file.</td>
       
   142           <td align="right" valign="top">
       
   143             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_drop">source&nbsp;code</a></span>
       
   144             
       
   145           </td>
       
   146         </tr>
       
   147       </table>
       
   148       
       
   149     </td>
       
   150   </tr>
       
   151 <tr>
       
   152     <td width="15%" align="right" valign="top" class="summary">
       
   153       <span class="summary-type">&nbsp;</span>
       
   154     </td><td class="summary">
       
   155       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   156         <tr>
       
   157           <td><span class="summary-sig"><a name="generate_xml"></a><span class="summary-sig-name">generate_xml</span>(<span class="summary-sig-arg">self</span>,
       
   158         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   159       Generate test drop XML.</td>
       
   160           <td align="right" valign="top">
       
   161             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_xml">source&nbsp;code</a></span>
       
   162             
       
   163           </td>
       
   164         </tr>
       
   165       </table>
       
   166       
       
   167     </td>
       
   168   </tr>
       
   169 <tr>
       
   170     <td width="15%" align="right" valign="top" class="summary">
       
   171       <span class="summary-type">&nbsp;</span>
       
   172     </td><td class="summary">
       
   173       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   174         <tr>
       
   175           <td><span class="summary-sig"><a name="generate_target"></a><span class="summary-sig-name">generate_target</span>(<span class="summary-sig-arg">self</span>,
       
   176         <span class="summary-sig-arg">test_plan</span>,
       
   177         <span class="summary-sig-arg">root</span>)</span><br />
       
   178       Append target(s) into the XML</td>
       
   179           <td align="right" valign="top">
       
   180             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_target">source&nbsp;code</a></span>
       
   181             
       
   182           </td>
       
   183         </tr>
       
   184       </table>
       
   185       
       
   186     </td>
       
   187   </tr>
       
   188 <tr>
       
   189     <td width="15%" align="right" valign="top" class="summary">
       
   190       <span class="summary-type">&nbsp;</span>
       
   191     </td><td class="summary">
       
   192       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   193         <tr>
       
   194           <td><span class="summary-sig"><a name="generate_plan"></a><span class="summary-sig-name">generate_plan</span>(<span class="summary-sig-arg">self</span>,
       
   195         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   196       Generate the test &lt;plan&gt; with multiple &lt;set&gt;s.</td>
       
   197           <td align="right" valign="top">
       
   198             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_plan">source&nbsp;code</a></span>
       
   199             
       
   200           </td>
       
   201         </tr>
       
   202       </table>
       
   203       
       
   204     </td>
       
   205   </tr>
       
   206 <tr>
       
   207     <td width="15%" align="right" valign="top" class="summary">
       
   208       <span class="summary-type">&nbsp;</span>
       
   209     </td><td class="summary">
       
   210       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   211         <tr>
       
   212           <td><span class="summary-sig"><a name="generate_steps"></a><span class="summary-sig-name">generate_steps</span>(<span class="summary-sig-arg">self</span>,
       
   213         <span class="summary-sig-arg">setd</span>,
       
   214         <span class="summary-sig-arg">case</span>,
       
   215         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   216       Generate the test plan &lt;step&gt;s.</td>
       
   217           <td align="right" valign="top">
       
   218             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_steps">source&nbsp;code</a></span>
       
   219             
       
   220           </td>
       
   221         </tr>
       
   222       </table>
       
   223       
       
   224     </td>
       
   225   </tr>
       
   226 <tr>
       
   227     <td width="15%" align="right" valign="top" class="summary">
       
   228       <span class="summary-type">&nbsp;</span>
       
   229     </td><td class="summary">
       
   230       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   231         <tr>
       
   232           <td><span class="summary-sig"><a name="generate_execute_asset_steps"></a><span class="summary-sig-name">generate_execute_asset_steps</span>(<span class="summary-sig-arg">self</span>,
       
   233         <span class="summary-sig-arg">case</span>,
       
   234         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   235       Executes steps for TestAsset</td>
       
   236           <td align="right" valign="top">
       
   237             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_execute_asset_steps">source&nbsp;code</a></span>
       
   238             
       
   239           </td>
       
   240         </tr>
       
   241       </table>
       
   242       
       
   243     </td>
       
   244   </tr>
       
   245 <tr>
       
   246     <td width="15%" align="right" valign="top" class="summary">
       
   247       <span class="summary-type">&nbsp;</span>
       
   248     </td><td class="summary">
       
   249       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   250         <tr>
       
   251           <td><span class="summary-sig"><a name="generate_post_actions"></a><span class="summary-sig-name">generate_post_actions</span>(<span class="summary-sig-arg">self</span>,
       
   252         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   253       Generate post actions.</td>
       
   254           <td align="right" valign="top">
       
   255             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_post_actions">source&nbsp;code</a></span>
       
   256             
       
   257           </td>
       
   258         </tr>
       
   259       </table>
       
   260       
       
   261     </td>
       
   262   </tr>
       
   263 <tr>
       
   264     <td width="15%" align="right" valign="top" class="summary">
       
   265       <span class="summary-type">&nbsp;</span>
       
   266     </td><td class="summary">
       
   267       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   268         <tr>
       
   269           <td><span class="summary-sig"><a name="generate_testasset_zip"></a><span class="summary-sig-name">generate_testasset_zip</span>(<span class="summary-sig-arg">self</span>,
       
   270         <span class="summary-sig-arg">test_plan</span>,
       
   271         <span class="summary-sig-arg">output_file</span>=<span class="summary-sig-default">None</span>)</span><br />
       
   272       Generate TestAsset.zip for the ASTE server</td>
       
   273           <td align="right" valign="top">
       
   274             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_testasset_zip">source&nbsp;code</a></span>
       
   275             
       
   276           </td>
       
   277         </tr>
       
   278       </table>
       
   279       
       
   280     </td>
       
   281   </tr>
       
   282 <tr>
       
   283     <td width="15%" align="right" valign="top" class="summary">
       
   284       <span class="summary-type">&nbsp;</span>
       
   285     </td><td class="summary">
       
   286       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   287         <tr>
       
   288           <td><span class="summary-sig"><a name="drop_files"></a><span class="summary-sig-name">drop_files</span>(<span class="summary-sig-arg">self</span>,
       
   289         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   290       Yield a list of drop files.</td>
       
   291           <td align="right" valign="top">
       
   292             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.drop_files">source&nbsp;code</a></span>
       
   293             
       
   294           </td>
       
   295         </tr>
       
   296       </table>
       
   297       
       
   298     </td>
       
   299   </tr>
       
   300 <tr>
       
   301     <td width="15%" align="right" valign="top" class="summary">
       
   302       <span class="summary-type">&nbsp;</span>
       
   303     </td><td class="summary">
       
   304       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   305         <tr>
       
   306           <td><span class="summary-sig"><a name="generate_files"></a><span class="summary-sig-name">generate_files</span>(<span class="summary-sig-arg">self</span>,
       
   307         <span class="summary-sig-arg">test_plan</span>)</span><br />
       
   308       Generate the &lt;files&gt; section.</td>
       
   309           <td align="right" valign="top">
       
   310             <span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.generate_files">source&nbsp;code</a></span>
       
   311             
       
   312           </td>
       
   313         </tr>
       
   314       </table>
       
   315       
       
   316     </td>
       
   317   </tr>
       
   318   <tr>
       
   319     <td colspan="2" class="summary">
       
   320     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   321       <code>__delattr__</code>,
       
   322       <code>__getattribute__</code>,
       
   323       <code>__hash__</code>,
       
   324       <code>__new__</code>,
       
   325       <code>__reduce__</code>,
       
   326       <code>__reduce_ex__</code>,
       
   327       <code>__repr__</code>,
       
   328       <code>__setattr__</code>,
       
   329       <code>__str__</code>
       
   330       </p>
       
   331     </td>
       
   332   </tr>
       
   333 </table>
       
   334 <!-- ==================== CLASS VARIABLES ==================== -->
       
   335 <a name="section-ClassVariables"></a>
       
   336 <table class="summary" border="1" cellpadding="3"
       
   337        cellspacing="0" width="100%" bgcolor="white">
       
   338 <tr bgcolor="#70b0f0" class="table-header">
       
   339   <td colspan="2" class="table-header">
       
   340     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   341       <tr valign="top">
       
   342         <td align="left"><span class="table-header">Class Variables</span></td>
       
   343         <td align="right" valign="top"
       
   344          ><span class="options">[<a href="#section-ClassVariables"
       
   345          class="privatelink" onclick="toggle_private();"
       
   346          >hide private</a>]</span></td>
       
   347       </tr>
       
   348     </table>
       
   349   </td>
       
   350 </tr>
       
   351 <tr>
       
   352     <td width="15%" align="right" valign="top" class="summary">
       
   353       <span class="summary-type">&nbsp;</span>
       
   354     </td><td class="summary">
       
   355         <a name="ASTE_LOG_DIR"></a><span class="summary-name">ASTE_LOG_DIR</span> = <code title="r&quot;c:\logs\testframework&quot;">r&quot;c:\logs\testframework&quot;</code>
       
   356     </td>
       
   357   </tr>
       
   358 </table>
       
   359 <!-- ==================== PROPERTIES ==================== -->
       
   360 <a name="section-Properties"></a>
       
   361 <table class="summary" border="1" cellpadding="3"
       
   362        cellspacing="0" width="100%" bgcolor="white">
       
   363 <tr bgcolor="#70b0f0" class="table-header">
       
   364   <td colspan="2" class="table-header">
       
   365     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   366       <tr valign="top">
       
   367         <td align="left"><span class="table-header">Properties</span></td>
       
   368         <td align="right" valign="top"
       
   369          ><span class="options">[<a href="#section-Properties"
       
   370          class="privatelink" onclick="toggle_private();"
       
   371          >hide private</a>]</span></td>
       
   372       </tr>
       
   373     </table>
       
   374   </td>
       
   375 </tr>
       
   376   <tr>
       
   377     <td colspan="2" class="summary">
       
   378     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   379       <code>__class__</code>
       
   380       </p>
       
   381     </td>
       
   382   </tr>
       
   383 </table>
       
   384 <!-- ==================== METHOD DETAILS ==================== -->
       
   385 <a name="section-MethodDetails"></a>
       
   386 <table class="details" border="1" cellpadding="3"
       
   387        cellspacing="0" width="100%" bgcolor="white">
       
   388 <tr bgcolor="#70b0f0" class="table-header">
       
   389   <td colspan="2" class="table-header">
       
   390     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   391       <tr valign="top">
       
   392         <td align="left"><span class="table-header">Method Details</span></td>
       
   393         <td align="right" valign="top"
       
   394          ><span class="options">[<a href="#section-MethodDetails"
       
   395          class="privatelink" onclick="toggle_private();"
       
   396          >hide private</a>]</span></td>
       
   397       </tr>
       
   398     </table>
       
   399   </td>
       
   400 </tr>
       
   401 </table>
       
   402 <a name="__init__"></a>
       
   403 <div>
       
   404 <table class="details" border="1" cellpadding="3"
       
   405        cellspacing="0" width="100%" bgcolor="white">
       
   406 <tr><td>
       
   407   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   408   <tr valign="top"><td>
       
   409   <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span>
       
   410     <br /><em class="fname">(Constructor)</em>
       
   411   </h3>
       
   412   </td><td align="right" valign="top"
       
   413     ><span class="codelink"><a href="ats3.aste-pysrc.html#AsteTestDropGenerator.__init__">source&nbsp;code</a></span>&nbsp;
       
   414     </td>
       
   415   </table>
       
   416   
       
   417   x.__init__(...) initializes x; see x.__class__.__doc__ for signature
       
   418   <dl class="fields">
       
   419     <dt>Overrides:
       
   420       object.__init__
       
   421         <dd><em class="note">(inherited documentation)</em></dd>
       
   422     </dt>
       
   423   </dl>
       
   424 </td></tr></table>
       
   425 </div>
       
   426 <br />
       
   427 <!-- ==================== NAVIGATION BAR ==================== -->
       
   428 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   429        bgcolor="#a0c0ff" cellspacing="0">
       
   430   <tr valign="middle">
       
   431 
       
   432   <!-- Tree link -->
       
   433       <th>&nbsp;&nbsp;&nbsp;<a
       
   434         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   435 
       
   436   <!-- Index link -->
       
   437       <th>&nbsp;&nbsp;&nbsp;<a
       
   438         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   439 
       
   440   <!-- Help link -->
       
   441       <th>&nbsp;&nbsp;&nbsp;<a
       
   442         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   443 
       
   444       <th class="navbar" width="100%"></th>
       
   445   </tr>
       
   446 </table>
       
   447 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   448   <tr>
       
   449     <td align="left" class="footer">
       
   450     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:17 2009
       
   451     </td>
       
   452     <td align="right" class="footer">
       
   453       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   454     </td>
       
   455   </tr>
       
   456 </table>
       
   457 
       
   458 <script type="text/javascript">
       
   459   <!--
       
   460   // Private objects are initially displayed (because if
       
   461   // javascript is turned off then we want them to be
       
   462   // visible); but by default, we want to hide them.  So hide
       
   463   // them unless we have a cookie that says to show them.
       
   464   checkCookie()
       
   465   // -->
       
   466 </script>
       
   467   
       
   468 </body>
       
   469 </html>