<html>
<head>
<base href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/" />

<title>2007-03-30 17:38:17</title>
</head>
<body>

<h1> Test Result: 2007-03-30 17:38:17</h1>

<h2> Test Summary </h2>

<table border="1" cellpadding="2">

 <tr>
  <th align="left">Status</th>
  <td>
    
    <span style="color: red">FAILED</span>
  </td>
 </tr>

 <tr>
  <th align="left">Elapsed time (sec)</th>
  <td align="right">3161.0</td>
 </tr>

 <tr>
  <th align="left">Tests passed</th>
  <td align="right" style="color: green">99</td>
 </tr>

 <tr>
  <th align="left">Tests failed</th>
  <td align="right" style="color: red">21</td>
 </tr>

 <tr>
  <th align="left">Commands passed</th>
  <td align="right" style="color: green">2330</td>
 </tr>

 <tr>
  <th align="left">Commands failed</th>
  <td align="right" style="color: red">49</td>
 </tr>

 <tr>
  <th align="left">Commands with errors</th>
  <td align="right" style="color: orange">12</td>
 </tr>

</table>


<div>
 <h2> Test Cases </h2>

 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.1">testTable.1</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Dependency Handling</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/BTZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_viewUpdateRepositoryBusinessTemplateListDialog?dialog_category=object_exchange&amp;cancel;_url=http://127.0.0.1:9080/erp5/portal_templates/&amp;selection;_index:int=0&amp;form;_id=TemplateTool_viewBusinessTemplateList&amp;selection;_name=business_template_selection</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Templates Updated Successfully</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_callViewInstallRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF9hY2NvdW50aW5nX2ZyLmJ0NScKcDIKdC4=']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>'test_core' added because 'test_accounting_fr' depends on it.</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>'test_accounting' added because 'test_accounting_fr' depends on it.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Template test_core, test_accounting, test_accounting_fr installed</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_callViewInstallRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF9hY2NvdW50aW5nX2luLmJ0NScKcDIKdC4=']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>BusinessTemplateMissingDependency</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_callViewInstallRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF9hY2NvdW50aW5nX3BsLmJ0NScKcDIKdC4=']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Template test_accounting_pl installed</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_callViewInstallRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF93ZWIuYnQ1JwpwMgp0Lg==']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>'test_web' requires you to select one of the following business templates: ['test_html_style', 'test_xhtml_style']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF94aHRtbF9zdHlsZS5idDUnCnAyCnQu']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Template test_xhtml_style, test_web installed</td>
        <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/BTZuite_reset?end=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Reset Successfully.</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.2">testTable.2</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Check that the script used to reset the selection for install from repository dialog transmits correctly the dialog_category.</td></tr>
</thead><tbody>
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_favorite</td>
  <td>label=Manage Business Templates</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_category' and @value='object_exchange']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>dialog_selector</td>
  <td>label=Install Business Templates From Repositories</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_category' and @value='object_exchange']</td>
  <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.3">testTable.3</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test update from svn (You
      must have checkout a copy of test_core in your svn dir)</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/BTZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_viewUpdateRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Templates Updated Successfully</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/TemplateTool_callViewInstallRepositoryBusinessTemplateListDialog</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//input[@id='listbox_cb_KFMnaHR0cDovL3RvcnJlbnQuZXJwNS5vcmcvZGlzdHMvc25hcHNob3QvdGVzdF9idDUnCnAxClMndGVzdF9jb3JlLmJ0NScKcDIKdC4=']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Business Template test_core installed</td>
        <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/portal_templates/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>title</td>
        <td>test_core</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>hidden_button</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Installed</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_action</td>
        <td>label=Revert &amp; Update Business Template from SVN</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>dialog_submit_button</td>
        <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/BTZuite_reset?end=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Reset Successfully.</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.4">testTable.4</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple CheckBoxField</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title 0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTitle</td>
        <td>*Foo - Title 0*</td> <!-- XXX not flexible -->
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//input[@name="field_my_frozen" and @checked]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>field_my_frozen</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_edit:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//input[@name="field_my_frozen" and @checked]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>field_my_frozen</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_edit:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTitle</td>
        <td>*Foo - Title 0*</td> <!-- XXX not flexible -->
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//input[@name="field_my_frozen" and @checked]</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.5">testTable.5</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Invalid DateTime</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewDateTimeField</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_year</td>
  <td>9999</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_month</td>
  <td>88</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_day</td>
  <td>77</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_hour</td>
  <td>66</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_minute</td>
  <td>99</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyNotValue</td>
  <td>subfield_field_my_start_date_year</td>
  <td>9999</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyNotValue</td>
  <td>subfield_field_my_start_date_month</td>
  <td>88</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyNotValue</td>
  <td>subfield_field_my_start_date_day</td>
  <td>77</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyNotValue</td>
  <td>subfield_field_my_start_date_hour</td>
  <td>66</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyNotValue</td>
  <td>subfield_field_my_start_date_minute</td>
  <td>99</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>You did not enter a valid date and time.</td>
  <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.6">testTable.6</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Add Object</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<!-- First, try object creation using the "Action ..." menu -->
<!-- from list mode -->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Foo</td>
</tr>
<!-- as the init macro create 1 Foo, we assume that our newly created foo will
have id "2". This is probably a bit too stupid. -->
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>/erp5_portal/foo_module/2/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Object Created.</td>
  <td></td>
</tr>
<!-- then from view mode -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Foo Line</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>/erp5_portal/foo_module/2/1/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Object Created.</td>
  <td></td>
</tr>

<!-- then using the 'New' button -->
<!-- from list mode -->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='New']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>/erp5_portal/foo_module/3/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Object Created.</td>
  <td></td>
</tr>
<!-- then from view mode, view mode doesn't create a subobject, but create
another object of the same type. -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='New']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>/erp5_portal/foo_module/4/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Object Created.</td>
  <td></td>
</tr>

</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.7">testTable.7</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Click Cancel on Workflow Transition Dialog</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>name=Base_cancel:method</td>
  <td>Cancel Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>name=Base_cancel:method</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td></td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<!-- We check that the transition has not been passed by looking at the
workflow history. -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=History</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.8">testTable.8</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Cancelling Workflow Transition Dialog Keeps Selection.</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<!-- check that we have prev & next buttons for selection -->
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Next']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_cancel:method</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td></td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Next']</td>
  <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.9">testTable.9</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Change Id</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title 0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTitle</td>
        <td>Foo - Title 0*</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertValue</td>
        <td>field_my_id</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>field_my_id</td>
        <td>a</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_edit:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTitle</td>
        <td>Foo - Title 0*</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertValue</td>
        <td>field_my_id</td>
        <td>a</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.10">testTable.10</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test History and edit_workflow</td></tr>
</thead><tbody>

<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/bar_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Bar</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>Version 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>Version 2</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>Version 3</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=History</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td> <!-- Creation + edited 3 times -->
</tr>

<!-- First modification --> 
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Historical Comparision - Version 3*</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td> <!-- Only one property changed. -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>title</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td></td> <!-- before -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>Version 1</td> <!-- after -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Version 3</td> <!-- now -->
</tr>

<!-- Second modification -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=History</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//tr[@id='listbox_data_line_2']/td[4]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Historical Comparision - Version 3*</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td> <!-- Only one property changed. -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>title</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>Version 1</td> <!-- before -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>Version 2</td> <!-- after -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Version 3</td> <!-- now -->
</tr>
<!-- Jump to old revision -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=View Old Revision</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Version from *</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_title</td>
  <td>Version 1</td>
</tr>
<!-- (subobjects are still the current version) -->

<!-- Third modification -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=History</td> <!-- even if we show an old version  -->
  <td></td>             <!-- all links points to current version -->
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//tr[@id='listbox_data_line_3']/td[4]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Historical Comparision - Version 3*</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td> <!-- Only one property changed. -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>title</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>Version 2</td> <!-- before -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>Version 3</td> <!-- after -->
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Version 3</td> <!-- now -->
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.11">testTable.11</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Pass Failing Workflow Transition</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Failing Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>id=dialog_submit_button</td>
  <td>Dummy Failing Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td>
</td></tr>
<!-- If the workflow script raises a DCWorkflow.DCWorkflow.ValidationFailed
exception, the error is handled by the UI system and the error appears in
portal status message.
-->
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Workflow script raised</td>
  <td>
</td></tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.12">testTable.12</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Pass Workflow Transition</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>id=dialog_submit_button</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td>
</td></tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.13">testTable.13</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Pass Workflow Transition Keeps Selection</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<!-- check that we have prev & next buttons for selection -->
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Next']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>id=dialog_submit_button</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[@id='context_bar']//a[@title='Next']</td>
  <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.14">testTable.14</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Pass Workflow Transition Twice</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>id=dialog_submit_button</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td>
</td></tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>id=dialog_submit_button</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td>
</td></tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td>
</td></tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.15">testTable.15</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test: Folder_viewSearchDialog</td></tr>
</thead><tbody>

<!--
  Add Folder_viewSearchDialog on the module.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo Module/PortalType_deleteAction?id=generic_search</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo Module/PortalType_addAction?id=search2&amp;name=generic_search&amp;category=object_search&amp;action=string:${object_url}/Folder_viewSearchDialog</td>
  <td></td>
</tr>


<tr bgcolor="white">
        <td>open</td>
        <td> http://localhost:8080/erp5_portal/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Foos</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Find</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_dialog</td>
        <td>generic_search</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>field_your_title</td>
        <td>title_value</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>field_your_id</td>
        <td>id_value</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>id_value</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td>title_value</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo Module/PortalType_deleteAction?id=generic_search</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.16">testTable.16</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="3">Test Previous and Next button for Selection</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=4</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 2</td>
  <td></td>
</tr>
<!-- Prev / Next -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_id</td>
  <td>1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='Next']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_id</td>
  <td>2</td>
</tr>
<!-- First / Last -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='First']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_id</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='Last']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_id</td>
  <td>3</td>
</tr>
<!-- Back to list mode -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='List Mode']</td>
  <td></td>
</tr>
<tr title="Actual value '/erp5_portal/foo_module/FooModule_viewFooList' did not match '*/erp5_portal/foo_module/view'" bgcolor="#ffcfcf">
  <td>assertLocation</td>
  <td>${base_url}/foo_module/view</td>
  <td>Actual value '/erp5_portal/foo_module/FooModule_viewFooList' did not match '*/erp5_portal/foo_module/view'</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.17">testTable.17</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Previous and Next buttons for Selection
keeps `form_id`. This test doesn't test problems from #217</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=History</td>
  <td></td>
</tr>
<!-- Prev / Next -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='context_bar']//a[@title='Previous']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>${base_url}/foo_module/0/Base_viewHistory</td>
  <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.18">testTable.18</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Worklists</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=10</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_action</td>
        <td>Validate Action</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>dialog_submit_button</td>
        <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/Base_clearCache</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Cleared.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_favorite</td>
        <td>Draft To Validate (9)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>9 record(s)</td> 
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
  <td>1</td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_favorite</td>
        <td>Validated Foos (1)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td> 
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
  <td>0</td>
</tr>


</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.19">testTable.19</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Duration Field</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewDurationField</td>
  <td></td>
</tr>

<!-- Initialize -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_second</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>0</td>
</tr>

<!-- Test second value -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_second</td>
  <td>59</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>59</td>
</tr>

<!-- Test minute value -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>58</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>58</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>59</td>
</tr>

<!-- Test hour value -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>23</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>23</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>58</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>59</td>
</tr>

<!-- Test second increase minutes -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_second</td>
  <td>63</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>23</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>59</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>3</td>
</tr>

<!-- Test minutes increase hour -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>63</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>24</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>3</td>
</tr>

<!-- Test seconds increase hour -->
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_quantity_second</td>
  <td>3600</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_hour</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_minute</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>subfield_field_my_quantity_second</td>
  <td>0</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.20">testTable.20</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Float Value with Integer Fields</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/getQuantity</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>10.0</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewIntegerFields</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_quantity</td>
  <td>10</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//fieldset[@id="fieldset_left"]/div[2]//span</td>
  <td>10</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.21">testTable.21</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Brain Attribute</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_list_method=FooModule_getModifiedFooList&amp;field_count_method=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Foo Title 0</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.22">testTable.22</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Configure</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<!-- XXX bug compatibility; all columns must be set explicitly -->
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_all_columns=id|ID
title|Title
delivery.quantity|Quantity;field_stat_method=portal_catalog</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[4]</td>
        <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[4]</td>
        <td></td>
</tr>
<!-- Go to the configure dialog -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>//a[@title='Configure']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//tr[@id="column_1"]//select[@name="field_columns"]</td>
        <td>Title</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//tr[@id="column_1"]//select[@name="stat_columns"]</td>
        <td>count</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//tr[@id="column_2"]//select[@name="field_columns"]</td>
        <td>ID</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//tr[@id="column_2"]//select[@name="stat_columns"]</td>
        <td>count</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//tr[@id="column_3"]//select[@name="field_columns"]</td>
        <td>None</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_callDialogMethod:method</td>
        <td></td>
</tr>
<!-- Check the result -->
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[2]</td>
        <td>10</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[3]</td>
        <td>10</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_stat_line"]/td[4]</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.23">testTable.23</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Context Objects</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_columns=id|ID
alternate_title|Title&amp;field_list_method=FooModule_getContextList</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Title 0</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.24">testTable.24</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Copy and Paste</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_copy:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Please select one or more items to copy first.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_copy:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Item(s) Copied.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_paste:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Item(s) Pasted.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.25">testTable.25</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Custom Search</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- Go to the search dialog -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>//a[@title='Find']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>field_your_id</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>field_your_title</td>
        <td>%l%</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_callDialogMethod:method</td>
        <td></td>
</tr>
<!-- Check the result -->
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td>%l%</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.26">testTable.26</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Custom Sort</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<!-- XXX bug compatibility; all_columns are used for sortable columns. -->
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_sort_columns=id
title;field_all_columns=id
title</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- Go to the sort dialog -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>//a[@title='Sort']</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//div[@id="sort_1"]/select[@name="field_sort_on"]</td>
        <td>id</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//div[@id="sort_1"]/select[@name="field_sort_order"]</td>
        <td>Descending</td>
</tr>
<tr bgcolor="white">
        <td>select</td>
        <td>//div[@id="sort_2"]/select[@name="field_sort_on"]</td>
        <td>title</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_callDialogMethod:method</td>
        <td></td>
</tr>
<!-- Check the result -->
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.27">testTable.27</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Cut and Paste</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_cut:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Please select one or more items to cut first.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_cut:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Item(s) Cut.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_paste:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Item(s) Pasted.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/bar_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.28">testTable.28</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Data Lines</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[4]</td>
        <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>Title 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[4]</td>
        <td>9.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>Title 2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[4]</td>
        <td>8.0</td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_select=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>Title 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>9.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>Title 2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>8.0</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.29">testTable.29</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Delete</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_deleteObjectList:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Please select one or more items to delete first.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_deleteObjectList:method</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_callDialogMethod:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Deleted.</td>
        <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
  <td>We suppose here that the workflow is configured in such way that deleted items can still be viewed.</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/0/getSimulationState</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>deleted</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_deleteObjectList:method</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_callDialogMethod:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Sorry You Can Not Delete 1 Item.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=0</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>select_action</td>
        <td>Add Foo Line</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title 0</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=0</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Foo Lines:</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>uids:list</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_deleteObjectList:method</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyTextPresent</td>
        <td>Deleted.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title 0</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>0 record</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.30">testTable.30</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Domain And Report Trees</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_domain_tree=checked;field_domain_root_list=foo_category|Foo Category</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>domain_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>7 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>3</td>
</tr>





<!-- Click on report tree -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_report_tree=checked;field_report_root_list=foo_category|Foo Category
foo_empty_category|Foo Empty Category</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Set Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>report_root_url</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=listbox_report_tree_mode</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>report_root_url</td>
  <td>Foo Category</td>
</tr>



</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.31">testTable.31</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Domain Tree</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_domain_tree=checked;field_domain_root_list=foo_category|Foo Category</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>domain_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>7 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>3</td>
</tr>
<!-- Click on + a2 -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
        <td>- a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>7</td>
</tr>
<!-- Click on - a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=- a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<!-- Reset -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_show:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.32">testTable.32</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Dynamic Domain Tree</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_domain_tree=checked;field_domain_root_list=foo_domain|Foo Domain</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>domain_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>7 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>3</td>
</tr>
<!-- Click on + a2 -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
        <td>- a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>7</td>
</tr>
<!-- Click on - a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=- a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<!-- Reset -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_show:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>domain_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.33">testTable.33</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Dynamic Report Tree</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_report_tree=checked;field_report_root_list=foo_domain|Foo Domain</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>report_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[1]</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[5]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Hide</td>
</tr>
<!-- Click on Hide -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Hide</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Show</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>6 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>6 record(s)</td>
</tr>
<!-- Show all the 1st level -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>- b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>8 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>8 record(s)</td>
</tr>
<!-- Still very far from complete. Show/Hide should be tested, closing a tree should be tested, sorting should be tested. -->

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.34">testTable.34</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test that an editable field keeps the value entered by the user</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects</td>
  <td></td>
  <td>Create a new object</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
  <td>Go to first line</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Foo Line</td>
  <td>Create a subobject</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Object Created.</td>
  <td></td>
  <td>Verify that subobject was created</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
  <td>Wait for reindexing</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
  <td>Go to first line</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input</td>
  <td>aaa</td>
  <td>We type some string in a float field</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>And save</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>aaa</td>
  <td>We check that aaa is still present</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We type some string in a date field</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>And save</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We check that bbb is still present</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_big_category_title</td>
  <td>c%</td>
  <td>We type some category expression</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>aaa</td>
  <td>We type some string in a float field</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We type some string in a date field</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>And save</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>aaa</td>
  <td>We check that aaa is still present</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We check that bbb is still present</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
  <td>Go to first line</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_big_category_title</td>
  <td>c%</td>
  <td>We type some category expression</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>100</td>
  <td>We type some value in a float field</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>2000</td>
  <td>We type some value in a date field</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[2]</td>
  <td>01</td>
  <td>We type some value in a date field</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[3]</td>
  <td>02</td>
  <td>We type some value in a date field</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>And save</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>100.0</td>
  <td>We check that 100 is still present</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>2000</td>
  <td>We check that 2000 is still present</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[2]</td>
  <td>01</td>
  <td>We check that 01 is still present</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[3]</td>
  <td>02</td>
  <td>We check that 01 is still present</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>Save for real</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>200.0</td>
  <td>We type some value in a float field</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We type some string in a date field</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td>And save</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]/input[1]</td>
  <td>200.0</td>
  <td>We check that 200.0 is still present</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[4]/input[1]</td>
  <td>bbb</td>
  <td>We check that bbb is still present</td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.35">testTable.35</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test that and Editable Column has no Link</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects</td>
  <td></td>
  <td>Create a new object</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
  <td>Go to first line</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Foo Line</td>
  <td>Create a subobject</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Object Created.</td>
  <td></td>
  <td>Verify that subobject was created</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
  <td>Wait for reindexing</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
  <td>Go to first line</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//a[@href='${base_url}/foo_module/0/1/view?selection_index=0&amp;selection_name=foo_line_selection&amp;reset:int=1']</td>
  <td></td>
  <td>Make sure an no a tag is present in ListBox</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]/a/input</td>
  <td></td>
  <td>Make sure an no a tag is present in ListBox</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
  <td></td>
  <td>Make sure there is an input tag in line 1 col 1</td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.36">testTable.36</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Filter</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<!-- Checked rows must be remembered -->
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>
<!-- Filter on the second page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_filter:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<!-- Sort by id -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=ID</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=ID</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<!-- Search by id -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>3</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_doSelect:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<!-- Reset -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_show:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- Check all -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>checkAll:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>checkAll:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>on</td>
</tr>
<!-- Uncheck all -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>uncheckAll:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>uncheckAll:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>off</td>
</tr>

<!-- Clicking again on the filter button reset the filter, and selected items
and search parameters are remembered -->
<tr bgcolor="white">
        <td>type</td>
        <td>title</td>
        <td>Title</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_doSelect:method</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>click</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_filter:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 2 item(s) selected</td>
</tr>
<!-- reset the filter -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_filter:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 2 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td//input</td>
        <td>off</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td//input</td>
        <td>on</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>title</td>
        <td>Title</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.37">testTable.37</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Label Line</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_check_all</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_uncheck_all</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_label_line"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_select=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_check_all</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_uncheck_all</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_label_line"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[1]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[2]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.38">testTable.38</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test List Action</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>id=listbox_title</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_title</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertText</td>
        <td>id=listbox_title</td>
        <td>exact:Contents:</td>
</tr>

<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_list_action=FooModule_viewFooList</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>id=listbox_title</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_title</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertText</td>
        <td>id=listbox_title</td>
        <td>exact:Foos:</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.39">testTable.39</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Meta Types</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_meta_types=ERP5 Delivery;field_portal_types=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[4]</td>
        <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>Title 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[4]</td>
        <td>9.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>Title 2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[4]</td>
        <td>8.0</td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_meta_types=ERP5 Toto;field_portal_types=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view?reset:int=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.40">testTable.40</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Page Template</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_page_template=FooModule_renderListBox</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>This is just a test</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.41">testTable.41</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Pager</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?num:int=3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>3 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 0 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?start:int=3&amp;num:int=7</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 0 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>2 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>selectAndWait</td>
        <td>id=listbox_page_selection</td>
        <td>4 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>4 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/manage_delObjects?ids=9</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>9 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 0 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>3 of 3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>6</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>


</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.42">testTable.42</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Meta Types</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
  <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_meta_types=;field_portal_types=Foo</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[4]</td>
        <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>Title 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[4]</td>
        <td>9.0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>Title 2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[4]</td>
        <td>8.0</td>
</tr>
<tr bgcolor="white">
        <td>open</td>
  <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_meta_types=;field_portal_types=Toto</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
  <td>${base_url}/foo_module/view?reset:int=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_0</td>
        <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.43">testTable.43</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Quick Search</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_search_columns=id</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<!-- Search by id -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>0</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_doSelect:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<!-- Search by title -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td>T%</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_doSelect:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td>T%</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.44">testTable.44</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Quick Sort</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_sort_columns=id</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- click the ID -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=ID</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- click the ID again -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=ID</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- click the Title -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<!-- click the Title again -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Title</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Ascending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[3]/img[@alt="Descending Display"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>//tr[@id="listbox_label_line"]/td[4]/img</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.45">testTable.45</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test ListBox Redirections</td></tr>
</thead><tbody>


<!--
  === PART 0 ===
  Initialize the test.
-->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>


<!--
  === PART 1 ===
  Test which cover bug #372 (Wrong redirect after listbox sort).
    1. Go to a listbox in an alternate view (= not the default view).
    2. Sort listbox lines by title.
    3. Test that we are redirected to the right view, not the default.
-->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
  <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyAttribute</td>
  <td>//tr[@id="listbox_label_line"]/td[2]/a@href</td>
  <td>setSelectionQuickSortOrder?selection_name=foo_line_selection&amp;sort_on=title&amp;form_id=Foo_viewRelationField</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/setSelectionQuickSortOrder?selection_name=foo_line_selection&amp;sort_on=title&amp;form_id=Foo_viewRelationField</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0/setSelectionQuickSortOrder</td>
  <td></td>
</tr>


<!--
  === PART 2 ===
  Test which cover bug #497 (Page Flicker in Listbox is not tested against redirection).
    0. Create 10 sublines.
    1. Go to a listbox in an alternate view (= not the default view).
    2. Go to next page.
    3. Test that we are redirected to the right view, not the default.
    4. Go to last page.
    5. Test that we are redirected to the right view, not the default.
    6. Go to previous page.
    7. Test that we are redirected to the right view, not the default.
    8. Go to first page.
    9. Test that we are redirected to the right view, not the default.
-->
<!-- Create sublines -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_createObjects</td>
  <td></td>
</tr>
<!-- Go to next and verify -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>id=listbox_page_selection</td>
  <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
  <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementNotPresent</td>
  <td>id=listbox_previous_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_next_page</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=listbox_next_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0</td>
  <td></td>
</tr>
<!-- Go to last and verify -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>id=listbox_page_selection</td>
  <td>2 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
  <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
  <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
  <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_previous_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_next_page</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>id=listbox_page_selection</td>
  <td>4 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0/setPage</td>
  <td></td>
</tr>
<!-- Go to previous and verify -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>id=listbox_page_selection</td>
  <td>4 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
  <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementNotPresent</td>
  <td>id=listbox_next_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_previous_page</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=listbox_previous_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0</td>
  <td></td>
</tr>
<!-- Go to first and verify -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>id=listbox_page_selection</td>
  <td>3 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
  <td>6</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
  <td>7</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
  <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_previous_page</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <td>id=listbox_next_page</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>id=listbox_page_selection</td>
  <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0/setPage</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>id=listbox_page_selection</td>
  <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
  <td>2</td>
</tr>


<!--
  === PART 3 ===
  Test which cover bug #206 (Redirection when changing the listbox display mode are broken in view mode).
    1. Enable multiple display mode on listbox of an alternate view (= not the default view).
    2. Go to the alternative view.
    3. Change listbox display mode.
    4. Test that we are redirected to the right view, not the default.
-->
<!-- START of code strongly inspired by (to not said "copied from") listbox_zuite/testDomainTree test.
           Don't forget to update the code below if listbox_zuite/testDomainTree change. -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField/listbox/ListBox_setPropertyList?field_domain_tree=checked;field_domain_root_list=foo_category|Foo Category</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Set Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=listbox_domain_tree_mode</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>domain_root_url</td>
  <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
  <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
  <td>+ b</td>
</tr>
<!-- Click on "+ a" link -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=+ a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>domain_root_url</td>
  <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[1]//a</td>
  <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[2]//a</td>
  <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[3]//a</td>
  <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//table[@id="listbox_domain_tree_table"]//tr[4]//a</td>
  <td>+ b</td>
</tr>
<!-- END of inspired code -->
<tr bgcolor="#cfffcf">
  <td>verifyLocation</td>
  <td>${base_url}/foo_module/0/unfoldDomain</td>
  <td></td>
</tr>



</tbody>
</table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.46">testTable.46</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Report Tree</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_report_tree=checked;field_report_root_list=foo_category|Foo Category
foo_empty_category|Foo Empty Category</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>report_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[1]</td>
        <td>Foo Category*</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[5]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Hide</td>
</tr>
<!-- Click on Hide -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Hide</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Show</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>6 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>6 record(s)</td>
</tr>
<!-- Show all the 1st level -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>- b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>8 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Category</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>9</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>8 record(s)</td>
</tr>
<!-- Test an empty report tree -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>report_root_url</td>
  <td>Foo Empty Category</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifySelected</td>
  <td>report_root_url</td>
  <td>Foo Empty Category</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementNotPresent</td>
  <td>id=listbox_data_line_0</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>id=listbox_record_number</td>
  <td>0 record(s)</td>
</tr>

<!-- Still very far from complete. Show/Hide should be tested, closing a tree should be tested, sorting should be tested. -->

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.47">testTable.47</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Report Tree with Stat Method</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_stat_method=portal_catalog;field_report_tree=checked;field_report_root_list=foo_domain|Foo Domain</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertElementNotPresent</td>
        <td>report_root_url</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[1]</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[3]</td>
        <td>ID</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[4]</td>
        <td>Title</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_label_line"]/td[5]</td>
        <td>Quantity</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Hide</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>+ a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_2</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>2 record(s)</td>
</tr>
<!-- Click on + a -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=+ a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>- a</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>7 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>7 record(s)</td>
</tr>
<!-- Show all the 1st level -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>8</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td>+ a1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td>+ a2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>- b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<!-- Hide documents -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>link=Hide</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>report_root_url</td>
        <td>Foo Domain</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_search_line"]/td[1]</td>
        <td>0 1 2 3 4 5 - Show</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]</td>
        <td>- b</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]/input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_data_line_1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>4 record(s)</td>
</tr>
<!-- Still very far from complete. Closing a tree should be tested, sorting should be tested. -->

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.48">testTable.48</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Search using Parameters from REQUEST</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal/foo_module/FooModule_createObjects</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<!-- Search by id -->
<tr bgcolor="white">
  <td>open</td>
        <td>http://localhost:8080/erp5_portal/foo_module/view?id=0&amp;reset=1</td>
  <td></td>
</tr>
<!--
 XXX parameters passed through the REQUEST are currently not displayed.
<tr>
  <td>verifyValue</td>
  <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
  <td>0</td>
</tr>
-->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
  <td>Title 0</td>
</tr>

<!-- Search by title -->
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal/foo_module/view?title=Title 1&amp;reset=1</td>
  <td></td>
</tr>
<!-- 
<tr>
  <td>verifyValue</td>
  <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
  <td>Title 1</td>
</tr>
-->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
  <td>Title 1</td>
</tr>
<!-- Search by title (a list) -->
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal/foo_module/view?title:list=Title 0&amp;title:list=Title 1&amp;reset=1</td>
  <td></td>
</tr>
<!-- 
XXX what should we display in the field in that case ?
    so it's probably better not to display anything ...
<tr>
  <td>verifyValue</td>
  <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
  <td>Title 1</td>
</tr>
-->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
  <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id="listbox_data_line_1"]/td[3]</td>
  <td>Title 1</td>
</tr>

<!-- Search with an ignored parameter -->
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal/foo_module/view?ignored_param=ignored&amp;reset=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.49">testTable.49</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Search and Sort on a Date Column</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?set_dates:int=1&amp;start:int=1&amp;num:int=3</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_search_columns=delivery.start_date
id&amp;field_columns=delivery.start_date
id&amp;field_sort_columns=delivery.start_date
id</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<!-- Search -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>2001/01/01</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_doSelect:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td>2001/01/01</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>2001/01/01</td>
</tr>

<!-- Sort -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Folder_show:method</td>
        <td></td>
</tr>
<!-- ASC -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>2001/01/01</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2002/02/02</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2003/03/03</td>
</tr>
<!-- DESC -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>//tr[@id="listbox_label_line"]/td[2]/a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]</td>
        <td>2003/03/03</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]</td>
        <td>2002/02/02</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]</td>
        <td>2001/01/01</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.50">testTable.50</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Search Line</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_select</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[5]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_select=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_select</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[1]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[1]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_search_line"]/td[2]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[3]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[3]//input</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_select=checked&amp;field_search=</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_select</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_search_line"]</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.51">testTable.51</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test checked uids</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=5</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/portal_types/Foo Module/PortalType_addAction?id=test_action&amp;name=Dummy Action&amp;category=object_action&amp;action=string:${object_url}/ListBoxZuite_getSelectionCheckedUidsAsHtml</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>

<!-- If the list is filtered when invoking an action from object_action, the
selection's checked uids are set to the uids of the filtered objects. -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_filter:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_filter:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>len(checked_uids) == 1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[1]/td[2]</td>
  <td>1</td>
</tr>

<!-- If selection is not in filtered mode, when selection an action from
object_action, selection checked uids will be updated to the list of selected
uids.
-->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_2']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>len(checked_uids) == 2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[1]/td[2]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[2]/td[2]</td>
  <td>2</td>
</tr>

<!-- paranoia. Select some uids, filter, unselect some uids and check we
only have selected uids.
-->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_2']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_filter:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <!-- unselect 1 -->
  <td>//tr[@id='listbox_data_line_0']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>len(checked_uids) == 1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//tr[1]/td[2]</td>
  <td>2</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.52">testTable.52</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Stat Columns</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_stat_columns=id|FooModule_statId
title|FooModule_statTitle;field_stat_method=portal_catalog</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[2]</td>
        <td>foo_module</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[3]</td>
        <td>Foos</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[4]</td>
        <td></td>
</tr>

<!-- view mode with editable field -->
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/0/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[2]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[4]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_stat_line"]/td[3]</td>
        <td>1 234.5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyNotEditable</td>
        <td>//tr[@id="listbox_stat_line"]/td[3]</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.53">testTable.53</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Title Line</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_title</td>
        <td>exact:Foos:</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>0 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 0 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_flat_list_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_domain_tree=checked&amp;field_domain_root_list=source</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_flat_list_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>

<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_report_tree=checked&amp;field_report_root_list=source</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_flat_list_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.54">testTable.54</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test URL Columns</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_url_columns=id|Foo_getIdUrl
title|</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Set Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyAttribute</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//a@href</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]//a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyAttribute</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//a@href</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_1"]/td[3]//a</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyAttribute</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//a@href</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>//tr[@id="listbox_data_line_2"]/td[3]//a</td>
        <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.55">testTable.55</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test View Mode</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/0/Foo_createObjects</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Created Successfully.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>assertTextPresent</td>
        <td>Done.</td>
        <td></td>
</tr>
<tr bgcolor="white">
        <td>open</td>
        <td>${base_url}/foo_module/0/view</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>field_my_title</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_title</td>
        <td>Foo Lines:</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_record_number</td>
        <td>10 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>id=listbox_item_number</td>
        <td> - 0 item(s) selected</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>1 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_flat_list_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_domain_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementNotPresent</td>
        <td>id=listbox_report_tree_mode</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td>Title 0</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td>Title 1</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td>Title 2</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<!-- Go to next page -->
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>2 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td>Title 3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td>Title 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td>Title 5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<!-- Edit some values -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td>31</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td>Another Title 3</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td>9999999</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_edit:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifySelected</td>
        <td>id=listbox_page_selection</td>
        <td>2 of 4</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_next_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyElementPresent</td>
        <td>id=listbox_previous_page</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td>31</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td>Another Title 3</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_0"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td>5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td>Title 5</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_1"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td>6</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[1]//input[@type="text"]</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td>Title 6</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyEditable</td>
        <td>//tr[@id="listbox_data_line_2"]/td[2]//input[@type="text"]</td>
        <td></td>
</tr>
<!-- Check validation error messages. -->
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]//input[@type="text"]</td>
        <td>abc</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[1]</td>
        <td>yyyy</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[2]</td>
        <td>mm</td>
</tr>
<tr bgcolor="white">
        <td>type</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[3]</td>
        <td>dd</td>
</tr>
<tr bgcolor="white">
        <td>clickAndWait</td>
        <td>Base_edit:method</td>
        <td></td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]//input[@type="text"]</td>
        <td>abc</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_0"]/td[3]</td>
        <td>*You did not enter a floating point*</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[1]</td>
        <td>yyyy</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[2]</td>
        <td>mm</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[3]</td>
        <td>dd</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyValue</td>
        <td>//tr[@id='listbox_data_line_1']/td[4]/input[3]</td>
        <td>dd</td>
</tr>
<tr bgcolor="#cfffcf">
        <td>verifyText</td>
        <td>//tr[@id="listbox_data_line_1"]/td[4]</td>
        <td>*You did not enter a valid date and time.*</td>
</tr>


<!-- More tests are required, such as sorting, searching, domain tree, etc. -->

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.56">testTable.56</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Bread Crumb</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>breadcrumb</td>
  <td>ERP5*/*Foos*/*Title 0*/</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='breadcrumb']/a[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//div[@id='breadcrumb']/a[1]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>${base_url}/view</td>
  <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.57">testTable.57</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Button Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>
  http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Dummy Button&amp;category=object_button&amp;icon=string:images/filenew.png&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//img[@title='Dummy Button']</td>
  <td>Workflow Action to Portal</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.58">testTable.58</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test dialog button for actions and update redirect to the good action</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Dummy Exchange&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewDummyDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='update_method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_method']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_your_string_field</td>
  <td>A value from the user</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>dialog_update_button</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>"Update" action is done with "A value from the user".</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>"Nothing" action is done.</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>dialog_cancel_button</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td>${base_url}/foo_module/1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/portal_types/Foo/PortalType_deleteAction?id=test_action</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.59">testTable.59</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">test_dialog_category_propagation</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Dummy Exchange&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewDummyDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action_2&amp;name=Another Dummy Exchange&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewDummyDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='selection_name']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>dialog_selector</td>
  <td>label=Another Dummy Exchange</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_category' and @value='object_exchange']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action_2</td>
  <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.60">testTable.60</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test that dialog main doesn't fail when some varables are absent from request</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Dummy Exchange&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewDummyDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action_2&amp;name=Another Dummy Exchange&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewDummyDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <!-- It is very important to access the object directly, not to get a selection_name from the listbox. -->
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='selection_name']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_id']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_category']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='update_method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name='dialog_method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//select[@name='select_dialog']</td>
  <td></td>
</tr>
<!-- XXX commented out for now, because title are unstable
<tr>
  <td>assertTitle</td>
  <td tal:content="here/Foo_viewDummyDialog/title"></td>
  <td></td>
</tr> -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>"Nothing" action is done.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='dialog_id']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='dialog_category']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='update_method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='dialog_method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name='select_dialog']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action_2</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.61">testTable.61</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Drop Down List Action when Nothing is
Selected</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<!-- when clicking on the action button of a drop down when nothing is selected
shouldn't do anything. -->

  <tr bgcolor="white">
    <td>click</td>
    <td>//button[@title='Select Favorite']</td>
    <td></td>
  </tr>
  <!-- FIXME: we cannot use clickAndWait in the previous action, because if no
  redirection occurs, selenium hangs... -->
  <tr bgcolor="white">
    <td>pause</td>
    <td>1000</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>assertLocation</td>
    <td> /erp5_portal/foo_module/1/view</td>
    <td>
  </td></tr>
  <tr bgcolor="#cfffcf">
    <td>assertTextNotPresent</td>
    <td>Site Error</td>
    <td>
  </td></tr>


  <tr bgcolor="white">
    <td>click</td>
    <td>//button[@title='Select Module']</td>
    <td></td>
  </tr>
  <!-- FIXME: we cannot use clickAndWait in the previous action, because if no
  redirection occurs, selenium hangs... -->
  <tr bgcolor="white">
    <td>pause</td>
    <td>1000</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>assertLocation</td>
    <td> /erp5_portal/foo_module/1/view</td>
    <td>
  </td></tr>
  <tr bgcolor="#cfffcf">
    <td>assertTextNotPresent</td>
    <td>Site Error</td>
    <td>
  </td></tr>


  <tr bgcolor="white">
    <td>click</td>
    <td>//button[@title='Select Language']</td>
    <td></td>
  </tr>
  <!-- FIXME: we cannot use clickAndWait in the previous action, because if no
  redirection occurs, selenium hangs... -->
  <tr bgcolor="white">
    <td>pause</td>
    <td>1000</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>assertLocation</td>
    <td> /erp5_portal/foo_module/1/view</td>
    <td>
  </td></tr>
  <tr bgcolor="#cfffcf">
    <td>assertTextNotPresent</td>
    <td>Site Error</td>
    <td>
  </td></tr>


  <tr bgcolor="white">
    <td>click</td>
    <td>//button[@title='Jump']</td>
    <td></td>
  </tr>
  <!-- FIXME: we cannot use clickAndWait in the previous action, because if no
  redirection occurs, selenium hangs... -->
  <tr bgcolor="white">
    <td>pause</td>
    <td>1000</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>assertLocation</td>
    <td> /erp5_portal/foo_module/1/view</td>
    <td>
  </td></tr>
  <tr bgcolor="#cfffcf">
    <td>assertTextNotPresent</td>
    <td>Site Error</td>
    <td>
  </td></tr>


  <tr bgcolor="white">
    <td>click</td>
    <td>//button[@title='Action']</td>
    <td></td>
  </tr>
  <!-- FIXME: we cannot use clickAndWait in the previous action, because if no
  redirection occurs, selenium hangs... -->
  <tr bgcolor="white">
    <td>pause</td>
    <td>1000</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>assertLocation</td>
    <td> /erp5_portal/foo_module/1/view</td>
    <td>
  </td></tr>
  <tr bgcolor="#cfffcf">
    <td>assertTextNotPresent</td>
    <td>Site Error</td>
    <td>
  </td></tr>

</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.62">testTable.62</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Exchange Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Dummy Exchange&amp;category=object_exchange&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.63">testTable.63</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Fast Input</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<!-- Purpose is to make sure the dialog in list mode generates its own selection name -->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_fastinput&amp;name=fast_input&amp;category=object_exchange&amp;action=string:${object_url}/Foo_viewFastInput</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementNotPresent</td>
  <td>//input[@name="selection_name"]</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Import / Export</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//input[@name="selection_name"]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//input[@name="selection_name"]</td>
  <td>selection_foo_fastinput</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_fastinput</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.64">testTable.64</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test field class generation</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_quantity</td>
  <td>A</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_edit:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//div[contains(@class, 'error')][.//@name='field_my_quantity']</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.65">testTable.65</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test form_dialog Action List Rendering</td></tr>
</thead><tbody>
<!--
  === PART 0 ===
  This part delete the second action if present, in order to reach the initial state
    of this test. This is required to re-run the test in the same erp5 instance.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo Module/PortalType_deleteAction?id=search2</td>
  <td></td>
</tr>
<!--
  === PART 1 ===
  This part make sure form_dialog Page Template don't render <select> widget
    if only one action exist.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/FooModule_viewSearchDialog?dialog_category=object_search</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyElementNotPresent</td>
  <td>//select[@id="dialog_selector"]</td>
  <td></td>
</tr>
<!--
  === PART 2 ===
  This part test that a <select> input is rendered when more than one action exist.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo Module/PortalType_addAction?id=search2&amp;name=Search2&amp;category=object_search&amp;action=string:${object_url}/FooModule_viewSearchDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/FooModule_viewSearchDialog?dialog_category=object_search</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//select[@id="dialog_selector"]/option[1]</td>
  <td>Search</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//select[@id="dialog_selector"]/option[2]</td>
  <td>Search2</td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.66">testTable.66</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test form_dialog called on a site object and Base_callDialogMethod executed from this dialog</td></tr>
</thead><tbody>
<!--
  This test checks that a dialog can be displayed and used on the site object.
  This is used, for example, to create a module.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/FooModule_viewSearchDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_your_id</td>
  <td> DumbValueA</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_your_title</td>
  <td> DumbValueB</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@name='Base_callDialogMethod:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>id</td>
  <td> DumbValueA</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>title</td>
  <td> DumbValueB</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/FooModule_viewSearchDialog</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_your_id</td>
  <td> OtherValueA</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_your_title</td>
  <td> OtherValueB</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@name='Base_callDialogMethod:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>id</td>
  <td> OtherValueA</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>title</td>
  <td> OtherValueB</td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.67">testTable.67</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Jump Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Jump Portal&amp;category=object_jump&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Jump Portal</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.68">testTable.68</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Object Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Open Portal&amp;category=object_action&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Open Portal</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.69">testTable.69</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Portal Status Message</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view?portal_status_message=Dummy+Portal+Status+Message</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Dummy Portal Status Message</td>
  <td></td>
</tr>
<!-- we also test our custom command: -->
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Dummy Portal Status Message</td>
  <td></td>
</tr>
<!-- when we follow a link, psm must be empty. -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=View</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td></td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.70">testTable.70</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Print Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Print Portal&amp;category=object_print&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action2&amp;name=Print Portal 2&amp;category=object_print&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Print']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertElementPresent</td>
  <td>//select[@name='select_dialog']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_doDialog:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_deleteAction?id=test_action2</td>
  <td></td>
</tr>
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.71">testTable.71</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test title</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/view</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>

<!-- View mode: title of the form - title of the object -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Foo - Title 0 | ERP5</td>
  <td></td>
</tr>


<!-- List mode: title of the form -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Foos | ERP5</td>
  <td></td>
</tr>

<!-- Dialog mode: title of the form -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Dummy Workflow Action</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Dummy Workflow Action | ERP5</td>
  <td></td>
</tr>

<!-- Report view mode: title of the form - title of the object -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Base_viewHistory</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>History - Title 0 | ERP5</td>
  <td></td>
</tr>

<!-- quad_form_view mode: title of the form - title of the object -->
<!-- assumes that BusinessTemplate_view uses quad_form_view as a page template. -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/BusinessTemplate_view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Business Template Definition - Title 0 | ERP5</td>
  <td></td>
</tr>

<!-- portal: title of the portal -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>ERP5 | ERP5</td>
  <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.72">testTable.72</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Workflow Actions</td></tr>
</thead><tbody>

    <!-- reuse listbox suite reset to clear modules. -->
    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td> http://localhost:8080/erp5_portal/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <!-- create a Foo -->
      <td> http://localhost:8080/erp5_portal/foo_module/Foo_createObjects?start:int=1&amp;num:int=1</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Created Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<!-- "fake" workflow actions can be created as a workflow action, this is the
way used to display workflow actions on a folder, passing transitions for all
objects in the selection.
-->
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/portal_types/Foo/PortalType_addAction?id=test_action&amp;name=Workflow Action to Portal&amp;category=workflow&amp;action=string:${portal_url}/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td> http://localhost:8080/erp5_portal/foo_module/1/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Workflow Action to Portal</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Welcome to ERP5</td>
  <td></td>
</tr>
<!-- TODO: test "real workflow actions" -->
</tbody></table>
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.73">testTable.73</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Relation Field and Multi Relation Field in
the same Form</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewProxyField</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<!-- no amiguity, relations are edited directly. -->
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1</td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.74">testTable.74</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using metadata tab
to set categories</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewProxyField</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>subfield_field_my_bar_category_title_list_relation_0</td>
  <td>label=New Foo</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.75">testTable.75</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Relation Field and Multi Relation Field in
the same Form</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<!-- no amiguity, relations are edited directly. -->
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1</td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.76">testTable.76</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Multi Relation Field, using metadata tab
to set categories</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=2</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Base_viewMetadata</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_category_list</td>
  <td>bar_category/foo_module/0
bar_category/foo_module/1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Relation Fields</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 0
Title 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 0
Title 1
Title 1</td>
  <td>Make sure than we can repeat the second item in a list</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 0
Title 1
Title 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 0
Title 0
Title 1
Title 1</td>
  <td>Make sure that we can repeat the first item (default) in a list</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 0
Title 0
Title 1
Title 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1
Title 0
Title 1</td>
  <td>Make sure we can reorder items in a list</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>Title 1
Title 0
Title 1</td>
  <td></td>
</tr>
<!-- XXX don't test jump for now, because we don't have good locators anyway.
-->
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.77">testTable.77</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using metadata tab
to set categories</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Base_viewMetadata</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_category_list</td>
  <td>foo_category/a/a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=View</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<!-- XXX don't test jump for now, because we don't have good locators anyway.
-->
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.78">testTable.78</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using the wheel and then cancel</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a</td>
</tr>

<!-- Loop 3 times -->


<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX maybe a better locator for relation field -->
  <td>//input[@value='update...']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Please select one object.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_cancel:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a</td>
</tr>


<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX maybe a better locator for relation field -->
  <td>//input[@value='update...']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Please select one object.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_cancel:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a</td>
</tr>


<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX maybe a better locator for relation field -->
  <td>//input[@value='update...']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Please select one object.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_cancel:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a</td>
</tr>





</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.79">testTable.79</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using metadata tab
to set categories</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_fake_category_title</td>
  <td></td>
</tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.80">testTable.80</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="3">Test Simple Relation Field, navigating between multiple pages of objects</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[preceding-sibling::input[@name="field_my_foo_big_category_title"]][@value='update...']</td>
  <td></td>
</tr>

<tr title="Element //input[@id=&quot;listbox_next_page&quot;] not found" bgcolor="#ffcfcf">
  <td>clickAndWait</td>
  <td>//input[@id="listbox_next_page"]</td>
  <td>Element //input[@id="listbox_next_page"] not found</td>
</tr>
<tr bgcolor="white">
  <td>assertTitle</td>
  <td>Update Relation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//select[@name="list_start"]</td>
  <td>10</td>
</tr>

<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@id="listbox_next_page"]</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTitle</td>
  <td>Update Relation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//select[@name="list_start"]</td>
  <td>20</td>
</tr>

<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@id="listbox_previous_page"]</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTitle</td>
  <td>Update Relation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//select[@name="list_start"]</td>
  <td>10</td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>list_start</td>
  <td>value=0</td>
</tr>
<tr bgcolor="white">
  <td>assertTitle</td>
  <td>Update Relation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//select[@name="list_start"]</td>
  <td>0</td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>list_start</td>
  <td>value=20</td>
</tr>
<tr bgcolor="white">
  <td>assertTitle</td>
  <td>Update Relation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//select[@name="list_start"]</td>
  <td>20</td>
</tr>

<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertElementPresent</td>
  <td>//input[@name="field_my_foo_big_category_title"][@value!=""]</td>
  <td></td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.81">testTable.81</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using the save
button</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<!-- no amiguity, the relation is edited directly. -->
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>

<!-- and a link is shown (XXX move in another test?) -->
<tr bgcolor="#cfffcf">
  <td>verifyElementPresent</td>
  <!-- XXX RelationStringField generated HTML must be tweaked to ease testing.
  -->
  <td> //img[@src='http://localhost:8080/erp5_portal/images/jump.png']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td> //img[@src='http://localhost:8080/erp5_portal/images/jump.png']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertLocation</td>
  <td> /erp5_portal/portal_categories/foo_category/a/a1/view</td>
  <td>
</td></tr>
</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.82">testTable.82</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using the wheel</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Title 0</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>a1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX maybe a better locator for relation field -->
  <td>//input[@value='update...']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Please select one object.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//span[@id='listbox_record_number']</td>
  <!-- XXX this will probably fail ... -->
  <td>1 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td>
</td></tr>
<!-- To be continued... this is currently failing here :( -->


<!-- Type an unknown value, and validate -->
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_foo_category_title</td>
  <td>aaaaaaaaaaaaaaaaaaaaaaaaaa</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX maybe a better locator for relation field -->
  <td>//input[@value='update...']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Please select one object.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//span[@id='listbox_record_number']</td>
  <!-- XXX this will probably fail ... -->
  <td>0 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>id=dialog_submit_button</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextNotPresent</td>
  <td>Site Error</td>
  <td>
</td></tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.83">testTable.83</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="3">Test Simple Relation Field, using metadata tab
to set categories</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Created Successfully.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/foo_module/0/Foo_viewRelationField</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>subfield_field_my_bar_category_title_list_relation_0</td>
  <td>label=New Foo</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Save']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyValue</td>
  <td>field_my_bar_category_title_list</td>
  <td>azértï</td>
</tr>

</tbody></table>

</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.84">testTable.84</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test for Creating Reversal Transaction for an Accounting Transaction
</td></tr>
<!-- XXX we do not need init method here ! -->
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Add an accounting transaction and check the default view {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Accounting Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>label=2 - Fixed Assets</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>label=3 - Stocks</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>20.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/input</td>
  <td>20.0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_edit:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Post the transaction to the GL {{{
because the 'create reversal' action is only available when simulation_state =
delivered. FIXME: we won't be able to delete the transaction later
-->
<tr title="Option with label 'Validate Transaction' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Option with label 'Validate Transaction' not found</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Validated</td>
  <td></td>
</tr>
<!-- next step to delivered step. -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Close Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Closed</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Create the reversal transaction and check values {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Create Reversal Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Reversal Transaction for * created.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_title</td>
  <td>Reversal Transaction for A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>account_module/stocks</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>account_module/fixed_assets</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>20.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/input</td>
  <td>0.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/input</td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/input</td>
  <td>20.0</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.85">testTable.85</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Simple view of an Accounting Transaction
</td></tr>
<!-- XXX we do not need init method here ! -->
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Add an accounting transaction and check the default view {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Accounting Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>label=2 - Fixed Assets</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>label=3 - Stocks</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>10.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/input</td>
  <td>20.0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_edit:method']</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Check values we just entered {{{ -->
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>account_module/fixed_assets</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>account_module/stocks</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/input</td>
  <td>20.0</td>
</tr>
<!-- stat is updated -->
<tr bgcolor="#cfffcf">
  <td>assertFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td>10</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>20</td>
</tr>
<!-- }}} -->

<!-- Add a new empty line {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Accounting Transaction Line</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Accounting Transaction Line added.</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>3 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/select</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[4]/input</td>
  <td>0.0</td>
</tr>          
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]/input</td>
  <td>0.0</td>
</tr> 
<!-- }}} -->

<!-- Check values are still correct {{{ -->
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>account_module/fixed_assets</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>account_module/stocks</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>10.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/input</td>
  <td>20.0</td>
</tr>
<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>assertFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td>10</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>20</td>
</tr>
<!-- }}} -->
</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.86">testTable.86</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test for Creating Payment Transactions related to some Invoices
</td></tr>
<!-- XXX we do not need init method here ! -->
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Select {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[4]/span/input</td>
  <td>Sale Invoice Transaction</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>
<!-- }}} -->

<!-- select create payment action {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Create Related Payments</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>field_your_node</td>
  <td>label=5 - Bank</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>field_your_payment_mode</td>
  <td>label=Cash</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>field_your_payment</td>
  <td>label=My default bank account</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>document.forms[0].elements['Base_callDialogMethod:method'][1]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Payments Creation for 2 on 2 Invoices in Progress</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- show the dialog again, to check it remembers values {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Create Related Payments</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_your_node</td>
  <td>account_module/bank</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_your_payment_mode</td>
  <td>cash</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_your_payment</td>
  <td>organisation_module/my_organisation/my_bank</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_cancel:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Check accounting transactions are created {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/accounting_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>6 record(s)</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.87">testTable.87</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Accounting Transaction Module Workflow Actions
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0&amp;transaction_state=draft</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- filter on title  {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<!-- list is filtered with 1 item-->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- }}} -->

<!-- pass the 'validate' transition the selected transaction {{{ -->
<tr title="Option with label 'Validate Transactions' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Option with label 'Validate Transactions' not found</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@id='dialog_submit_button']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Workflow modification in progress for 1 out of 1</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Display all and check {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Draft</td>
</tr>
<!-- still Draft at this point, because we use activities. -->
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_2']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_3']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/accounting_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Draft</td>
</tr>
<!-- now it's Validated -->
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_2']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_3']/td[8]</td>
  <td>Draft</td>
</tr>
<!-- }}} -->

<!-- next step, select by uid  {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]/input</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]/input</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- pass the 'validate' transition the selected transaction {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>label=Validate Transactions</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//input[@id='dialog_submit_button']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Workflow modification in progress for 1 out of 2</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Display all and check {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_2']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_3']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/accounting_module/view</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_2']/td[8]</td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//tr[@id='listbox_data_line_3']/td[8]</td>
  <td>Draft</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.88">testTable.88</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test for Creating Reversal Transaction for a Purchase Invoice Transaction
</td></tr>
<!-- XXX we do not need init method here ! -->
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Add a purchase invoice transaction and check the default view {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Purchase Invoice Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_source_section_title</td>
  <td>Supplier</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_stop_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_stop_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_stop_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>3 record(s)</td>
</tr>

<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>label=6 - Goods Purchase</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>label=4456 - Refundable VAT 10%</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/select</td>
  <td>label=40 - Payable</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/input</td>
  <td>11.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/input</td>
  <td>1.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_2']/td[4]/input</td>
  <td>10.0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_edit:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Post the transaction to the GL {{{
because the 'create reversal' action is only available when simulation_state =
delivered. FIXME: we won't be able to delete the transaction later
-->
<tr title="Option with label 'Validate Transaction' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Option with label 'Validate Transaction' not found</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Validated</td>
  <td></td>
</tr>
<!-- next step to delivered step. -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Close Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Closed</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Create the reversal transaction and check values {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Create Reversal Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Reversal Transaction for * created.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_destination_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_source_section_title</td>
  <td>Supplier</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_title</td>
  <td>Reversal Transaction for A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td> <!-- this is the portal type. -->
  <td>Purchase Invoice Transaction</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_stop_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_stop_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_stop_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>3 record(s)</td>
</tr>
<!-- Same as above, bad ordering ... -->
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>account_module/payable</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>account_module/refundable_vat</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/select</td>
  <td>account_module/goods_purchase</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/input</td>
  <td>10.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>0.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]/input</td>
  <td>1.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/input</td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[3]/input</td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[4]/input</td>
  <td>11.0</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.89">testTable.89</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test for Creating Reversal Transaction for a Sale Invoice Transaction
</td></tr>
<!-- XXX we do not need init method here ! -->
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Add a sale invoice transaction and check the default view {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Sale Invoice Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>field_my_destination_section_title</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_start_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>3 record(s)</td>
</tr>

<!-- XXX all this ordering is wrong; make sure to update this test after
fixing. -->
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>label=7 - Goods Sales</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>label=4457 - Collected VAT 10%</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/select</td>
  <td>label=41 - Receivable</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>11.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]/input</td>
  <td>1.0</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_data_line_2']/td[3]/input</td>
  <td>10.0</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@name='Base_edit:method']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Data Updated.</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Post the transaction to the GL {{{
because the 'create reversal' action is only available when simulation_state =
delivered. FIXME: we won't be able to delete the transaction later
-->
<tr title="Option with label 'Validate Transaction' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Option with label 'Validate Transaction' not found</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Validated</td>
  <td></td>
</tr>
<!-- next step to delivered step. -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Close Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Status changed.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Closed</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Create the reversal transaction and check values {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Create Reversal Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertPortalStatusMessage</td>
  <td>Reversal Transaction for * created.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_source_section</td>
  <td>organisation_module/my_organisation</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_destination_section_title</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_title</td>
  <td>Reversal Transaction for A Dummy Transaction</td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Sale Invoice Transaction</td><!-- This is the portal_type -->
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>verifyValue</td>
  <td>subfield_field_my_start_date_day</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>field_my_resource</td>
  <td>currency_module/euro</td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>//span[@id='listbox_record_number']</td>
  <td>3 record(s)</td>
</tr>
<!-- Same as above, bad ordering ... -->
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/select</td>
  <td>account_module/receivable</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/select</td>
  <td>account_module/collected_vat</td>
</tr>
<tr bgcolor="white">
  <td>assertValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/select</td>
  <td>account_module/goods_sales</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/input</td>
  <td>0.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/input</td>
  <td>10.0</td> 
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]/input</td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/input</td>
  <td>1.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[3]/input</td>
  <td>11.0</td>
</tr>
<tr bgcolor="white">
  <td>assertFloatValue</td>
  <td>//tr[@id='listbox_data_line_2']/td[4]/input</td>
  <td>0.0</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.90">testTable.90</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test display of Account Module, with at_date parameter
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td>12</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- check transaction count {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_4']/td[5]</td>
  <td>28</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_6']/td[5]</td>
  <td>24</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_7']/td[5]</td>
  <td>4</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_9']/td[5]</td>
  <td>24</td>
</tr>
<!-- }}} -->

<!-- {{{ Debit -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_4']/td[6]</td>
  <td>257400</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_6']/td[6]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_7']/td[6]</td>
  <td>9900</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_9']/td[6]</td>
  <td>0</td>
</tr>
<!-- }}} -->

<!-- {{{ Credit -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_4']/td[7]</td>
  <td>9900.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_6']/td[7]</td>
  <td>23400</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_7']/td[7]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_9']/td[7]</td>
  <td>234000</td>
</tr>
<!-- }}} -->

<!-- {{{ Debit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_4']/td[8]</td>
  <td>247500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_6']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_7']/td[8]</td>
  <td>9900</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_9']/td[8]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_4']/td[9]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_6']/td[9]</td>
  <td>23400</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_7']/td[9]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_9']/td[9]</td>
  <td>234000</td>
</tr>
<!-- }}} -->

<!-- Check Stat columns {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>80</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>267300</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>267300</td>
</tr>
<!-- XXX Currently no stat for Debit Balance and Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.91">testTable.91</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test default display of Account Module
</td></tr>
</thead><tbody>
<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- check lines contents {{{
XXX can't we do uid based checks ?

extracted with:

import csv
import sys
f = open('/tmp/A.csv')
sys.stdout=open('/tmp/o', 'w')
for line_idx, line in enumerate(list(csv.reader(f))[1:]):
  for row_idx, row in enumerate(line):
    print \
"""  <tr>
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_%s']/td[%s]/a</td>
    <td>%s</td>
  </tr>""" % (line_idx, row_idx+2, str(row).replace(',', '.'))
  XXX modified manually to use assertFloat
-->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
    <td>Equity</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
    <td>20000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
    <td>20000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[3]/a</td>
    <td>Fixed Assets</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[6]/a</td>
    <td>15000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[8]/a</td>
    <td>15000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[2]/a</td>
    <td>3</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[3]/a</td>
    <td>Stocks</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[6]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[8]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[2]/a</td>
    <td>40</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[3]/a</td>
    <td>Payable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[7]/a</td>
    <td>7700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[9]/a</td>
    <td>7700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[2]/a</td>
    <td>41</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[3]/a</td>
    <td>Receivable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[6]/a</td>
    <td>5500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[8]/a</td>
    <td>5500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[2]/a</td>
    <td>4457</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[3]/a</td>
    <td>Collected VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[7]/a</td>
    <td>500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[9]/a</td>
    <td>500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[2]/a</td>
    <td>4456</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[3]/a</td>
    <td>Refundable VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[6]/a</td>
    <td>700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[8]/a</td>
    <td>700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[2]/a</td>
    <td>5</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[3]/a</td>
    <td>Bank</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[5]/a</td>
    <td>0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[2]/a</td>
    <td>6</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[3]/a</td>
    <td>Goods Purchase</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[6]/a</td>
    <td>7000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[8]/a</td>
    <td>7000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[2]/a</td>
    <td>7</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[3]/a</td>
    <td>Goods Sales</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[7]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[9]/a</td>
    <td>5000.0</td>
  </tr>
<!-- }}} -->

<!-- Check Stat columns {{{ -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[2]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[3]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[4]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[5]</td>
    <td>12</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[6]</td>
    <td>33200.00</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[7]</td>
    <td>33200.00</td>
  </tr>
  <!-- XXX Currently no stat for Debit Balance and Credit Balance -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[8]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[9]</td>
    <td></td>
  </tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.92">testTable.92</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test default display of Account Module With Employees.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListWithPersons</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- check lines contents {{{ -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
    <td>Equity</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
    <td>0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[3]/a</td>
    <td>Fixed Assets</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[5]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[2]/a</td>
    <td>3</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[3]/a</td>
    <td>Stocks</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[5]/a</td>
    <td>0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[2]/a</td>
    <td>40</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[3]/a</td>
    <td>Payable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr title="Actual value '1' did not match '0'" bgcolor="#ffcfcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[5]/a</td>
    <td>Actual value '1' did not match '0'</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[2]/a</td>
    <td>41</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[3]/a</td>
    <td>Receivable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[6]/a</td>
    <td>1100.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[8]/a</td>
    <td>1100.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[2]/a</td>
    <td>4456</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[3]/a</td>
    <td>Refundable VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr title="Actual value '1' did not match '0'" bgcolor="#ffcfcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[5]/a</td>
    <td>Actual value '1' did not match '0'</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[2]/a</td>
    <td>4457</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[3]/a</td>
    <td>Collected VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[7]/a</td>
    <td>100.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[9]/a</td>
    <td>100.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[2]/a</td>
    <td>5</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[3]/a</td>
    <td>Bank</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[5]/a</td>
    <td>0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[2]/a</td>
    <td>6</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[3]/a</td>
    <td>Goods Purchase</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr title="Actual value '1' did not match '0'" bgcolor="#ffcfcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[5]/a</td>
    <td>Actual value '1' did not match '0'</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[2]/a</td>
    <td>7</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[3]/a</td>
    <td>Goods Sales</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[7]/a</td>
    <td>1000</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[9]/a</td>
    <td>1000.0</td>
  </tr>
<!-- }}} -->

<!-- Cheek Stat columns {{{ -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[2]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[3]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[4]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[5]</td>
    <td>3</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[6]</td>
    <td>1100.00</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[7]</td>
    <td>1100.00</td>
  </tr>
  <!-- XXX Currently no stat for Debit Balance and Credit Balance -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[8]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[9]</td>
    <td></td>
  </tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.93">testTable.93</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test domain tree of Account Module
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>open</td>
  <td>http://localhost:8080/erp5_portal</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_domain_tree_mode</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- select accounting plan {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX it should probably be the category `id`, not the title. -->
  <td>link=+ My Country</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <!-- XXX it should probably be the category `id`, not the title. -->
  <td>link=+ My Accounting Standards</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr title="Actual value '0' did not match '12'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>Actual value '0' did not match '12'</td>
</tr>
<tr title="Actual value '0' did not match '33200'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>Actual value '0' did not match '33200'</td>
</tr>
<tr title="Actual value '0' did not match '33200'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>Actual value '0' did not match '33200'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- select my_country/my_accounting_standarts/4/ {{{ 
4 accounts are listed.
-->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=+ 4</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr title="Actual value '0' did not match '6'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>Actual value '0' did not match '6'</td>
</tr>
<tr title="Actual value '0' did not match '6200'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>Actual value '0' did not match '6200'</td>
</tr>
<tr title="Actual value '0' did not match '8200'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>Actual value '0' did not match '8200'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!--}}}  -->

<!-- Filter on title {{{ -->
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[3]/span/input</td>  
  <td>Payable</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- column values -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>40</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
  <td>Payable</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>7700.0</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr title="Actual value '0' did not match '1'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>Actual value '0' did not match '1'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>0</td>
</tr>
<tr title="Actual value '0' did not match '7700'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>Actual value '0' did not match '7700'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- tear down: reset selection in the tree {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>//select[@name='domain_root_url']</td>
  <td>Account Type</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_flat_list_mode</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.94">testTable.94</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test filter in Account Module
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- Filter on one account {{{ -->
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]/input[@type='checkbox']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_filter:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- column values -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
  <td>Equity</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>20000.00</td>
</tr>
<!-- XXX Currently no stat for Debit Balance and Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- reset {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- Filter on two accounts {{{ -->
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]/input[@type='checkbox']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>click</td>
  <td>//tr[@id='listbox_data_line_4']/td[1]/input[@type='checkbox']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_filter:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>

<!-- column values -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
  <td>Equity</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
  <td>41</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]/a</td>
  <td>Receivable</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]/a</td>
  <td>2</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[6]/a</td>
  <td>5500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[7]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]/a</td>
  <td>5500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
  <td></td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>3</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>5500</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>20000.00</td>
</tr>
<!-- XXX Currently no stat for Debit Balance and Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- reset {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.95">testTable.95</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test display of Account Module, with from_date parameter (which has no impact)
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td>3</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Show All']</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- Listbox lines {{{ -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
    <td>Equity</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
    <td>20000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
    <td>20000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[3]/a</td>
    <td>Fixed Assets</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[6]/a</td>
    <td>15000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_1']/td[8]/a</td>
    <td>15000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[2]/a</td>
    <td>3</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[3]/a</td>
    <td>Stocks</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[6]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_2']/td[8]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_2']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[2]/a</td>
    <td>40</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[3]/a</td>
    <td>Payable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[7]/a</td>
    <td>7700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_3']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_3']/td[9]/a</td>
    <td>7700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[2]/a</td>
    <td>41</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[3]/a</td>
    <td>Receivable</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[6]/a</td>
    <td>5500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_4']/td[8]/a</td>
    <td>5500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_4']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[2]/a</td>
    <td>4457</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[3]/a</td>
    <td>Collected VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[7]/a</td>
    <td>500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_6']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_6']/td[9]/a</td>
    <td>500.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[2]/a</td>
    <td>4456</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[3]/a</td>
    <td>Refundable VAT 10%</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[6]/a</td>
    <td>700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_5']/td[8]/a</td>
    <td>700.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_5']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[2]/a</td>
    <td>5</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[3]/a</td>
    <td>Bank</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[5]/a</td>
    <td>0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_7']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_7']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[2]/a</td>
    <td>6</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[3]/a</td>
    <td>Goods Purchase</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[5]/a</td>
    <td>1</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[6]/a</td>
    <td>7000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[7]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_8']/td[8]/a</td>
    <td>7000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_8']/td[9]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[2]/a</td>
    <td>7</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[3]/a</td>
    <td>Goods Sales</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[4]/a</td>
    <td>Openned Account</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[5]/a</td>
    <td>2</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[6]/a</td>
    <td>0.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[7]/a</td>
    <td>5000.0</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_data_line_9']/td[8]/a</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_data_line_9']/td[9]/a</td>
    <td>5000.0</td>
  </tr>
<!-- }}} -->

<!-- Check Stat columns {{{ -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[2]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[3]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[4]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[5]</td>
    <td>12</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[6]</td>
    <td>33200.00</td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyFloat</td>
    <td>//tr[@id='listbox_stat_line']/td[7]</td>
    <td>33200.00</td>
  </tr>
  <!-- XXX Currently no stat for Debit Balance and Credit Balance -->
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[8]</td>
    <td></td>
  </tr>
  <tr bgcolor="#cfffcf">
    <td>verifyText</td>
    <td>//tr[@id='listbox_stat_line']/td[9]</td>
    <td></td>
  </tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.96">testTable.96</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test `preferred_gap_id` column of Account Module
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- Filter on preferred_gap_id {{{ -->
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>4</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>

<!-- make sure we are sorted by preferred_gap_id ASC -->
<tr bgcolor="white">
  <!-- sort by title, to reset any sort on preferred_gap_id -->
  <td>clickAndWait</td>
  <td>link=Account Name</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <!-- sort by preferred_gap_id -->
  <td>clickAndWait</td>
  <td>link=GAP No</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>40</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
  <td>41</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/a</td>
  <td>4456</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[2]/a</td>
  <td>4457</td>
</tr>
<!-- }}} -->

<!-- sort by preferred_gap_id DESC {{{ -->
<tr bgcolor="white">
  <!-- sort by preferred_gap_id -->
  <td>clickAndWait</td>
  <td>link=GAP No</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>4457</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]/a</td>
  <td>4456</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]/a</td>
  <td>41</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[2]/a</td>
  <td>40</td>
</tr>
<!-- }}} -->

<tr bgcolor="white">
  <!-- make sure we end up sorting in ASCENDING-->
  <td>clickAndWait</td>
  <td>link=GAP No</td>
  <td></td>
</tr>


</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.97">testTable.97</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test search columns of Account Module
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<!-- }}} -->

<!-- 10 accounts -> 10 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>10 record(s)</td>
</tr>
<!-- }}} -->

<!-- Filter on preferred_gap_id {{{ -->
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- column values -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
  <td>Equity</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>20000.00</td>
</tr>
<!-- XXX Currently no stat for Debit Balance and Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Filter on title {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[3]/span/input</td>
  <td>Equity</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- column values -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]/a</td>
  <td>Equity</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]/a</td>
  <td>Openned Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]/a</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]/a</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]/a</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>

<!-- stat -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[3]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[5]</td>
  <td>1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[6]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[7]</td>
  <td>20000.00</td>
</tr>
<!-- XXX Currently no stat for Debit Balance and Credit Balance -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.98">testTable.98</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Accounting module listbox display values + sort on dates
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  

<!--

FIXME:
  default sort uses delivery.start_date, but for Purchase, we must use delivery.stop_date

-->

<!-- Setup {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- 4 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<!-- }}} -->

<!-- TODO:
loop and check date line1 <= line2 ???
-->

<!-- check content of known lines {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>2005/01/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>Accounts opening</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td></td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]</td>
  <td>2005/01/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]</td>
  <td>Client 1</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]</td>
  <td>2005/01/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[2]</td>
  <td>Client 2 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[3]</td>
  <td>Client 2</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[5]</td>
  <td>2005/01/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[2]</td>
  <td>First Purchase Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[3]</td>
  <td>Supplier</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.99">testTable.99</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Accounting Transaction Module Displays empty Transactions
</td></tr>
</thead><tbody>

<!-- setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- empty transactions are displayed in the list -->
<!-- Check default values {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- 4 item by default -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>33200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>33200.00</td>
</tr>
<!-- }}} -->

<!-- Add empty transaction {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Accounting Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>Object Created.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/AccountingZuite_markChanged</td>
  <td></td>
</tr>
<tr title="'Done.' not found in page text." bgcolor="#ffcfcf">
  <td>verifyTextPresent</td>
  <td>Done.</td>
  <td>'Done.' not found in page text.</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr title="'Done.' not found in page text." bgcolor="#ffcfcf">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td>'Done.' not found in page text.</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/accounting_module/view</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Check new values (1 more item (values 0), same stats) {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>5 record(s)</td>
</tr>
<!-- column properties -->
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[2]
</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[3]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[4]
  </td>
  <td>Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[5]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[6]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[7]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[8]
  </td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]
  </td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]
  </td>
  <td>0.0</td>
</tr>

<!-- check amounts for stats -->
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>33200.00</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>33200.00</td>
</tr>
<!-- }}} -->

<!-- same but with deleting lines -->

<!-- Add empty transaction and delete its lines {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>verifyTextPresent</td>
  <td>Object Created.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>goBackAndWait</td>
  <td></td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Accounting Transaction Lines:</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_check_all</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_deleteObjectList:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
  <td></td>
</tr>
<tr bgcolor="white">
<!-- XXX not erp5_html_style compatible -->
  <td>clickAndWait</td>
  <td>Base_callDialogMethod:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Deleted.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertText</td>
  <td>listbox_record_number</td>
  <td>0 record(s)</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/Zuite_waitForActivities</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>assertTextPresent</td>
  <td>Done.</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/accounting_module/view</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Check new values (1 more item (values 0), same stats) {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>6 record(s)</td>
</tr>
<!-- column properties line 0 -->
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[2]
</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[3]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[4]
  </td>
  <td>Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[5]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[6]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[7]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[8]
  </td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]
  </td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]
  </td>
  <td>0.0</td>
</tr>
<!-- column properties line 1 (order for lines 0 and 1 is unknown as we sort on date) -->
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[2]
</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[3]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[4]
  </td>
  <td>Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[5]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[6]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[7]
  </td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[8]
  </td>
  <td>Draft</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[9]
  </td>
  <td>0.0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[10]
  </td>
  <td>0.0</td>
</tr>

<!-- check amounts for stats -->
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>33200.00</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>33200.00</td>
</tr>
<!-- }}} -->


</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.100">testTable.100</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test jumps from Accounting Transaction Module
</td></tr>
</thead><tbody>

<!-- setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- Clicking on Third party jumps to transaction list for this third party {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Transactions - Client 1*</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- same for destination section -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Supplier</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertTitle</td>
  <td>Transactions - Supplier*</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.101">testTable.101</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Accounting module listbox multi pages
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0&amp;month_count:int=12</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- 4*12 records in the list {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>48 record(s)</td>
</tr>
<!-- }}} -->

<!-- we will check all dates {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>2005/01/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]</td>
  <td>2005/01/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]</td>
  <td>2005/01/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[5]</td>
  <td>2005/01/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_4']/td[5]</td>
  <td>2005/02/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_5']/td[5]</td>
  <td>2005/02/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_6']/td[5]</td>
  <td>2005/02/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_7']/td[5]</td>
  <td>2005/02/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_8']/td[5]</td>
  <td>2005/03/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_9']/td[5]</td>
  <td>2005/03/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_10']/td[5]</td>
  <td>2005/03/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_11']/td[5]</td>
  <td>2005/03/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_12']/td[5]</td>
  <td>2005/04/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_13']/td[5]</td>
  <td>2005/04/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_14']/td[5]</td>
  <td>2005/04/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_15']/td[5]</td>
  <td>2005/04/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_16']/td[5]</td>
  <td>2005/05/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_17']/td[5]</td>
  <td>2005/05/02</td>
</tr>
<!-- stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>398400.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>398400.00</td>
</tr>


<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_next_page</td>
  <td></td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>2005/05/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]</td>
  <td>2005/05/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]</td>
  <td>2005/06/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[5]</td>
  <td>2005/06/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_4']/td[5]</td>
  <td>2005/06/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_5']/td[5]</td>
  <td>2005/06/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_6']/td[5]</td>
  <td>2005/07/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_7']/td[5]</td>
  <td>2005/07/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_8']/td[5]</td>
  <td>2005/07/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_9']/td[5]</td>
  <td>2005/07/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_10']/td[5]</td>
  <td>2005/08/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_11']/td[5]</td>
  <td>2005/08/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_12']/td[5]</td>
  <td>2005/08/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_13']/td[5]</td>
  <td>2005/08/04</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_14']/td[5]</td>
  <td>2005/09/01</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_15']/td[5]</td>
  <td>2005/09/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_16']/td[5]</td>
  <td>2005/09/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_17']/td[5]</td>
  <td>2005/09/04</td>
</tr>

<!-- stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>398400.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>398400.00</td>
</tr>


<!-- }}} -->

<!-- apply a filter and check lines {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>48 record(s)</td>
</tr>

<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client</td>
</tr>

<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>24 record(s)</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>2005/01/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]</td>
  <td>2005/01/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]</td>
  <td>2005/02/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[5]</td>
  <td>2005/02/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_4']/td[5]</td>
  <td>2005/03/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_5']/td[5]</td>
  <td>2005/03/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_6']/td[5]</td>
  <td>2005/04/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_7']/td[5]</td>
  <td>2005/04/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_8']/td[5]</td>
  <td>2005/05/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_9']/td[5]</td>
  <td>2005/05/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_10']/td[5]</td>
  <td>2005/06/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_11']/td[5]</td>
  <td>2005/06/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_12']/td[5]</td>
  <td>2005/07/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_13']/td[5]</td>
  <td>2005/07/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_14']/td[5]</td>
  <td>2005/08/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_15']/td[5]</td>
  <td>2005/08/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_16']/td[5]</td>
  <td>2005/09/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_17']/td[5]</td>
  <td>2005/09/03</td>
</tr>

<!-- stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>66000.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>66000.00</td>
</tr>

<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_next_page</td>
  <td></td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>2005/10/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[5]</td>
  <td>2005/10/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_2']/td[5]</td>
  <td>2005/11/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_3']/td[5]</td>
  <td>2005/11/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_4']/td[5]</td>
  <td>2005/12/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_5']/td[5]</td>
  <td>2005/12/03</td>
</tr>

<!-- stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>66000.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>66000.00</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.102">testTable.102</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Accounting Transaction Module Search Columns
</td></tr>
</thead><tbody>

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  


<!-- setup {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- filter on title  {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<!-- list filtered with 1 item-->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>2200.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>2200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>2200.00</td>
</tr>
<!-- }}} -->

<!-- filter on title, matching is "fuzzy", {{{
as title is a search key -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<!-- list filtered with 2 items -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[3]/a
</td>
  <td>Client 1</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[3]/a
</td>
  <td>Client 2</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[9]/a
</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[10]/a
</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>5500.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>5500.00</td>
</tr>
<!-- }}} --> 

<!-- filter on Third Party (Sale) {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[3]/span/input</td>
  <td>Client%</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td><!-- alterative way of search -->
  <td></td>
</tr>
<!-- list filtered with 2 items -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[3]/a
</td>
  <td>Client 1</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_1']/td[3]/a
</td>
  <td>Client 2</td>
</tr>
<!-- second line -->
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[9]/a
</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_1']/td[10]/a
</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>5500.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>5500.00</td>
</tr>
<!-- }}} --> 

<!-- filter on Third Party (Purchase) {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[3]/span/input</td>
  <td>Supplier</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[3]/a
</td>
  <td>Supplier</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>7700.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>7700.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>7700.00</td>
</tr>
<!-- }}} --> 

<!-- filter on Transaction Type {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[4]/span/input</td>
  <td>Accounting Transaction</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[2]/a
</td>
  <td>Accounts opening</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>20000.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>20000.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>20000.00</td>
</tr>
<!-- }}} --> 

<!-- filter on Date {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>//tr[@id='listbox_search_line']/td[5]/span/input</td>
  <td>&lt;= 2005/01/01</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_doSelect:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>
//tr[@id='listbox_data_line_0']/td[2]/a
</td>
  <td>Accounts opening</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[9]/a
</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_data_line_0']/td[10]/a
</td>
  <td>20000.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[9]
</td>
  <td>20000.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>
//tr[@id='listbox_stat_line']/td[10]
</td>
  <td>20000.00</td>
</tr>
<!-- }}} --> 

<!-- TODO: filter on *Translated* Transaction Type
XXX shall we really test i18n issues here?
-->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.103">testTable.103</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Accounting Transaction Module and transactions with employees, which acquire
the group category from their subordination
</td></tr>
</thead><tbody>

<!-- setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListWithPersons</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounting</td>
</tr>
<!-- }}} -->

<!-- transactions from the person are not displayed in the list -->
<!-- Check default values {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- 1 item by default -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- third party -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>John Smith</td>
</tr>

<!-- transaction reference -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]</td>
  <td>source_reference</td>
</tr>

<!-- transaction debit & credit -->
<tr title="Actual value '2200' did not match '1100'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>Actual value '2200' did not match '1100'</td>
</tr>
<tr title="Actual value '2200' did not match '1100'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>Actual value '2200' did not match '1100'</td>
</tr>
 
<!-- check amounts for stats -->
<tr title="Actual value '2200' did not match '1100'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>Actual value '2200' did not match '1100'</td>
</tr>
<tr title="Actual value '2200' did not match '1100'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>Actual value '2200' did not match '1100'</td>
</tr>
<!-- }}} -->


</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.104">testTable.104</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Account GAP Parallel listfield.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Add an account -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_action</td>
  <td>Add Account</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertPortalStatusMessage</td>
  <td>Object Created.</td>
  <td></td>
</tr>
<!-- }}} -->


<tr bgcolor="white">
  <td>type</td>
  <td>field_my_title</td>
  <td>Dummy Account for UI Test</td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>field_my_account_type</td>
  <td>label=Asset</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyTextPresent</td>
  <td>GAP - Another Standards</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>subfield_field_my_gap_list_my_country/my_accounting_standards</td>
  <td>label=1 - Equity Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>subfield_field_my_gap_list_my_country/my_accounting_standards</td>
  <td>my_country/my_accounting_standards/1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>subfield_field_my_gap_list_another_country/another_standards</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>select</td>
  <td>subfield_field_my_gap_list_another_country/another_standards</td>
  <td>label=1 - Dummy Account</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>subfield_field_my_gap_list_my_country/my_accounting_standards</td>
  <td>my_country/my_accounting_standards/1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>assertValue</td>
  <td>subfield_field_my_gap_list_another_country/another_standards</td>
  <td>another_country/another_standards/1</td>
</tr>

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.105">testTable.105</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Transactions related to an account
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Receivable account and check transaction list -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Receivable</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>

<!-- dumped listbox {{{2 -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/02</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Sale Invoice Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>2200.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[2]</td>
  <td>Client 2 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]</td>
  <td>2005/01/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[4]</td>
  <td>Sale Invoice Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[6]</td>
  <td>Client 2</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[7]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[11]</td>
  <td>5500.0</td>
</tr>
<!-- }}} -->

<!-- {{{ stat line -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td>5500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>5500.0</td>
</tr>
<!-- 2}}} -->

<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.106">testTable.106</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an account, with at date parameter
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td>11</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Receivable account and check transaction list -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Receivable</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(), 'At Date')]]</td>
  <td>2005/01/11</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>24 record(s)</td>
</tr>
<!-- }}} -->

<!-- List lines {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[11]</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[11]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_23']/td[11]</td>
  <td>214500.0</td>
</tr>
<!-- }}} -->

<!-- {{{ stat line -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td>217800.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>214500</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/</td>
  <td></td>
</tr>
<tr title="Element select_module not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Element select_module not found</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.107">testTable.107</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an account, with from date parameter
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td>12</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Receivable account and check transaction list -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Receivable</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr title="Actual value '3 record(s)' did not match '89 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '3 record(s)' did not match '89 record(s)'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(),'From Date')]]</td>
  <td>2005/01/12</td>
</tr>
<!-- }}} -->

<!-- {{{ Summary Line -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Previous Balance</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/12</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[6]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[7]</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>217800.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>3300</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>214500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[11]</td>
  <td>214500.0</td>
</tr>
<!-- }}} -->

<!-- FIXME: Listbox lines are not tested, because we don't know which will from
client 1 invoice or client 2 invoice will have the first uid. -->

<!-- {{{ stat line -->
<tr title="Actual value '217800' did not match '1339800'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td>Actual value '217800' did not match '1339800'</td>
</tr>
<tr title="Actual value '3300' did not match '1339800'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>Actual value '3300' did not match '1339800'</td>
</tr>
<tr title="Actual value '214500' did not match '0'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>Actual value '214500' did not match '0'</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->


</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.108">testTable.108</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an account
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Receivable account and check transaction list -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Receivable</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>

<!-- {{{ stat line -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[8]</td>
  <td>5500.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>5500.0</td>
</tr>
<!-- }}} -->

<!-- Jump to Accounting Module {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions Related To This Account:</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>2 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>5500.00</td>
</tr>
<tr title="Actual value '0' did not match '5500'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>Actual value '0' did not match '5500'</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.109">testTable.109</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with stop date
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td>11</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>12 record(s)</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(),'At Date')]]</td>
  <td>2005/01/11</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>72600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>1100.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>71500.0</td>
</tr>
<!-- the last line of running total column shows the same value that the total
balance. -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_11']/td[13]</td>
  <td>71500.0</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.110">testTable.110</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test for jump methods from an Organisation.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Jump menu from Destination Section Organisation {{{
When using jump from an Organisation, it jumps to accounting
module, filtered with all transactions with this entity at source
section or destination section
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>3300.00</td>
</tr>
<!-- }}} -->

<!-- Jump menu from My Organisation {{{
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=My Organisation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>20000.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]/a</td>
  <td>2200.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_2']/td[9]/a</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_2']/td[10]/a</td>
  <td>3300.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_3']/td[9]/a</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_3']/td[10]/a</td>
  <td>7700.0</td>
</tr>

<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>33200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>33200.00</td>
</tr>
<!-- }}} -->

<!-- Jump menu from Source Section Organisation {{{
We have a purchase with `Supplier` Organisation
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Supplier</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>7700.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>7700.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>7700.00</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.111">testTable.111</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 2</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- Dumped lisbox {{{ 
from http://localhost:9080/erp5/Entity_viewAccountingTransactionList/listbox?form_id=Entity_viewAccountingTransactionList&portal_skin=SeleniumDump 
-->

<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Client 2 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>My Organisation</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/03</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Sale Invoice Transaction</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>41</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>3300.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>3300.0</td>
</tr>
<!-- }}} -->

<!-- }}} -->

<!-- Jump to Accounting Module {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions Related To This Entity:</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>3300.00</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.112">testTable.112</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with start date
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td>12</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(),'From Date')]]</td>
  <td>2005/01/12</td>
</tr>
<!-- The summary line is counted here. -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>45 record(s)</td>
</tr>
<!-- }}} -->

<!-- The first line is a 'summary' line. {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Previous Balance</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/12</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>72600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>1100.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>71500.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>71500.00</td>
</tr>
<!-- }}} -->

<!-- Lisbox body, especially the second line {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]</td>
  <td>2005/01/12</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]</td>
  <td>13200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]</td>
  <td>0.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[12]</td>
  <td>13200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[13]</td>
  <td>84700.00</td>
</tr>
<!-- }}} -->

<!-- Stat line {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0</td>
</tr>
<!-- }}} -->

<!-- Second page {{{ -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>label=2 of 3</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Payment from Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/21*</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>12100</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>-12100</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>181500</td>
</tr>
<!-- }}} -->

<!-- Stat line again {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>label=1 of 3</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/</td>
  <td></td>
</tr>
<tr title="Element select_module not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Element select_module not found</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.113">testTable.113</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with multiple pages and date range
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr title="Actual value '45 record(s)' did not match '56 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '45 record(s)' did not match '56 record(s)'</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0.0</td>
</tr>
<!-- }}} -->

<!-- {{{ check second page -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>2 of 3</td>
</tr>
<tr bgcolor="white">
  <!-- workaround for #206 -->
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr title="Actual value '45 record(s)' did not match '56 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '45 record(s)' did not match '56 record(s)'</td>
</tr>
<!-- check first line -->
<tr title="Actual value 'Payment from Client 1 Sale Invoice' did not match 'Client 1 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Payment from Client 1 Sale Invoice' did not match 'Client 1 Sale Invoice'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>My Organisation</td>
</tr>
<tr title="Actual value '2005/01/21' did not match '2005/01/16'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>Actual value '2005/01/21' did not match '2005/01/16'</td>
</tr>
<tr title="Actual value 'Payment Transaction' did not match 'Sale Invoice Transaction'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Actual value 'Payment Transaction' did not match 'Sale Invoice Transaction'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>41</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Validated</td>
</tr>
<tr title="Actual value '0' did not match '17600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>Actual value '0' did not match '17600'</td>
</tr>
<tr title="Actual value '12100' did not match '0'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>Actual value '12100' did not match '0'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[11]</td>
  <td></td>
</tr>
<tr title="Actual value '-12100' did not match '17600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>Actual value '-12100' did not match '17600'</td>
</tr>
<!-- this is the same as the last net_balance from the previous page -->
<tr title="Actual value '181500' did not match '133100'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>Actual value '181500' did not match '133100'</td>
</tr>

<!-- Stats should not change -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0.0</td>
</tr>
<!-- }}} -->

<!-- {{{ tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>1 of 3</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.114">testTable.114</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation shows transactions for this
organisation and no bogus parameters are kept in the selection.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr title="Actual value 'Previous Balance' did not match 'Client 1 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Previous Balance' did not match 'Client 1 Sale Invoice'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>2200</td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 2</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr title="Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>3300</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     <span style="color: green">PASS</span>
     
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.115">testTable.115</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#cfffcf"><td rowspan="1" colspan="4">
Test for jump methods from an Organisation.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- Jump menu from Destination Section Organisation {{{
When using jump from an Organisation, it jumps to accounting
module, filtered with all transactions with this entity at source
section or destination section
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>3300.00</td>
</tr>
<!-- }}} -->

<!-- Jump menu from My Organisation {{{
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=My Organisation</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>20000.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>20000.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]/a</td>
  <td>2200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]/a</td>
  <td>2200.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_2']/td[9]/a</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_2']/td[10]/a</td>
  <td>3300.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_3']/td[9]/a</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_3']/td[10]/a</td>
  <td>7700.0</td>
</tr>

<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>33200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>33200.00</td>
</tr>
<!-- }}} -->

<!-- Jump menu from Source Section Organisation {{{
We have a purchase with `Supplier` Organisation
-->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>4 record(s)</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Supplier</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]/a</td>
  <td>7700.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]/a</td>
  <td>7700.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>7700.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>7700.00</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.116">testTable.116</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 2</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>

<!-- Dumped lisbox {{{ 
from http://localhost:9080/erp5/Entity_viewAccountingTransactionList/listbox?form_id=Entity_viewAccountingTransactionList&portal_skin=SeleniumDump 
-->

<tr title="Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'</td>
</tr>
<tr title="Actual value '' did not match 'My Organisation'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>Actual value '' did not match 'My Organisation'</td>
</tr>
<tr title="Actual value '2005/01/12' did not match '2005/01/03'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>Actual value '2005/01/12' did not match '2005/01/03'</td>
</tr>
<tr title="Actual value '' did not match 'Sale Invoice Transaction'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Actual value '' did not match 'Sale Invoice Transaction'</td>
</tr>
<tr title="Actual value '' did not match '41'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>Actual value '' did not match '41'</td>
</tr>
<tr title="Actual value '' did not match 'Validated'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Actual value '' did not match 'Validated'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>3300.0</td>
</tr>

<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>0.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>3300.0</td>
</tr>
<!-- }}} -->

<!-- }}} -->

<!-- Jump to Accounting Module {{{ -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions Related To This Entity:</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<!-- check amounts for lines -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>3300.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>3300.0</td>
</tr>
<!-- check amounts for stats -->
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>3300.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>3300.00</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.117">testTable.117</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with stop date
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td>11</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr title="Actual value '2 record(s)' did not match '12 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '2 record(s)' did not match '12 record(s)'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(),'At Date')]]</td>
  <td>2005/01/11</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>72600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>1100.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>71500.0</td>
</tr>
<!-- the last line of running total column shows the same value that the total
balance. -->
<tr title="Element //tr[@id='listbox_data_line_11']/td[13] not found" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_11']/td[13]</td>
  <td>Element //tr[@id='listbox_data_line_11']/td[13] not found</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>open</td>
  <td>${base_url}</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.118">testTable.118</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with start date
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td>2005</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td>01</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td>12</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>

<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//div[preceding-sibling::label[contains(text(),'From Date')]]</td>
  <td>2005/01/12</td>
</tr>
<!-- The summary line is counted here. -->
<tr title="Actual value '2 record(s)' did not match '45 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '2 record(s)' did not match '45 record(s)'</td>
</tr>
<!-- }}} -->

<!-- The first line is a 'summary' line. {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Previous Balance</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/12</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>72600.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>1100.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>71500.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>71500.00</td>
</tr>
<!-- }}} -->

<!-- Lisbox body, especially the second line {{{ -->
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[1]</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[3]</td>
  <td>2005/01/12</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_1']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[9]</td>
  <td>13200.0</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[10]</td>
  <td>0.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[12]</td>
  <td>13200.00</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_1']/td[13]</td>
  <td>84700.00</td>
</tr>
<!-- }}} -->

<!-- Stat line {{{ -->
<tr title="Actual value '72600' did not match '446600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>Actual value '72600' did not match '446600'</td>
</tr>
<tr title="Actual value '1100' did not match '446600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>Actual value '1100' did not match '446600'</td>
</tr>
<tr title="Actual value '71500' did not match '0'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>Actual value '71500' did not match '0'</td>
</tr>
<!-- }}} -->

<!-- Second page {{{ -->
<tr title="Option with label '2 of 3' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>Option with label '2 of 3' not found</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Payment from Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/21*</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>12100</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>-12100</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>181500</td>
</tr>
<!-- }}} -->

<!-- Stat line again {{{ -->
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.0</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0</td>
</tr>
<!-- }}} -->

<!-- {{{ Tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>label=1 of 3</td>
</tr>
<tr bgcolor="white">
  <td>open</td>
  <td>/erp5/</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Accounts</td>
</tr>
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_jump</td>
  <td>Accounting Preference</td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Base_edit:method</td>
  <td></td>
</tr>
<!-- XXX manually clear the cache ? -->
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>//button[@title='Select Language']</td>
  <td></td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.119">testTable.119</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation, with multiple pages and date range
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionListSalesAndPayments</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 1 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr title="Actual value '2 record(s)' did not match '56 record(s)'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>Actual value '2 record(s)' did not match '56 record(s)'</td>
</tr>

<tr title="Actual value '72600' did not match '446600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>Actual value '72600' did not match '446600'</td>
</tr>
<tr title="Actual value '1100' did not match '446600'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>Actual value '1100' did not match '446600'</td>
</tr>
<tr title="Actual value '71500' did not match '0'" bgcolor="#ffcfcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>Actual value '71500' did not match '0'</td>
</tr>
<!-- }}} -->

<!-- {{{ check second page -->
<tr title="Option with label '2 of 3' not found" bgcolor="#ffcfcf">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>Option with label '2 of 3' not found</td>
</tr>
<tr bgcolor="white">
  <!-- workaround for #206 -->
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>56 record(s)</td>
</tr>
<!-- check first line -->
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Client 1 Sale Invoice</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[2]</td>
  <td>My Organisation</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[3]</td>
  <td>2005/01/16</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[4]</td>
  <td>Sale Invoice Transaction</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[5]</td>
  <td>41</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[8]</td>
  <td>Validated</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[9]</td>
  <td>17600.00</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[10]</td>
  <td>0</td>
</tr>
<tr bgcolor="white">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[11]</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[12]</td>
  <td>17600.00</td>
</tr>
<!-- this is the same as the last net_balance from the previous page -->
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_data_line_0']/td[13]</td>
  <td>133100.00</td>
</tr>

<!-- Stats should not change -->
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[9]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[10]</td>
  <td>446600.00</td>
</tr>
<tr bgcolor="white">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>0.0</td>
</tr>
<!-- }}} -->

<!-- {{{ tear down -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>listbox_page_selection</td>
  <td>1 of 3</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>
 <div style="padding-top: 10px;">

  <p>
     
     <span style="color: red">FAIL</span>
     <a href="http://localhost:8080/erp5_portal/portal_tests/result_20070330_173817/testTable.120">testTable.120</a>
  </p>

  <div>
<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr bgcolor="#ffcfcf"><td rowspan="1" colspan="4">
Test Transactions related to an Organisation shows transactions for this
organisation and no bogus parameters are kept in the selection.
</td></tr>
</thead><tbody>

<!-- Setup {{{ -->

    <tr bgcolor="white">
      <td>store</td>
      <td>/erp5_portal</td>
      <td>base_url</td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/AccountingZuite_reset</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Reset Successfully.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>/erp5_portal/accounting_module/AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Accounting Transactions Created.</td>
      <td></td>
    </tr>

    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}/Zuite_waitForActivities</td>
      <td></td>
    </tr>
    <tr bgcolor="#cfffcf">
      <td>assertTextPresent</td>
      <td>Done.</td>
      <td></td>
    </tr>
    <tr bgcolor="white">
      <td>open</td>
      <td>${base_url}</td>
      <td></td>
    </tr>
  
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 1</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 1</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr title="Actual value 'Previous Balance' did not match 'Client 1 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Previous Balance' did not match 'Client 1 Sale Invoice'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>2200</td>
</tr>
<!-- }}} -->

<!-- {{{ Select Client 2 Organisation and check transaction list -->
<tr bgcolor="white">
  <td>selectAndWait</td>
  <td>select_module</td>
  <td>Organisations</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>Folder_show:method</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>type</td>
  <!-- title -->
  <td>//tr[@id='listbox_search_line']/td[2]/span/input</td>  
  <td>Client 2</td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>listbox_select</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Client 2</td>
  <td></td>
</tr>
<tr bgcolor="white">
  <td>clickAndWait</td>
  <td>link=Transactions</td>
  <td></td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyText</td>
  <td>listbox_record_number</td>
  <td>1 record(s)</td>
</tr>
<tr title="Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'" bgcolor="#ffcfcf">
  <td>verifyText</td>
  <td>//tr[@id='listbox_data_line_0']/td[1]</td>
  <td>Actual value 'Previous Balance' did not match 'Client 2 Sale Invoice'</td>
</tr>
<tr bgcolor="#cfffcf">
  <td>verifyFloat</td>
  <td>//tr[@id='listbox_stat_line']/td[12]</td>
  <td>3300</td>
</tr>
<!-- }}} -->

</tbody></table>
<!-- vim: syntax=html foldmethod=marker
-->
</div>
 </div>

</div>

<h2> Remote Client Data </h2>

<table border="1" cellpadding="2">

 <tr>
  <th align="left">User agent</th>
  <td>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061115 Mandriva/2.0.0.1-4mdv2007.0 (2007.0) Firefox/2.0.0.1</td>
 </tr>

 <tr>
  <th align="left">Remote address</th>
  <td>127.0.0.1</td>
 </tr>

 <tr>
  <th align="left">HTTP Host</th>
  <td>localhost:8080</td>
 </tr>

</table>

<h2> Software Under Test </h2>

<table border="1" cellpadding="2">

 <tr>
  <th align="left">Server Software</th>
  <td>Zope/(Zope 2.7.8-final, python 2.4.3, linux2) ZServer/1.1</td>
 </tr>

 <tbody>
  <tr>
   <th align="left">Product: BTreeFolder2</th>
   <td>BTreeFolder2-1.0.2</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFActionIcons</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFActivity</th>
   <td>CMFActivity</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFCalendar</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFCategory</th>
   <td>CMFCategory</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFCore</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFDefault</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFMailIn</th>
   <td>CMFMailIn-1.0.0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFPhoto</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFQuickInstallerTool</th>
   <td>1.5.9</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFReportTool</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFSetup</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFTopic</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: CMFUid</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: DCWorkflow</th>
   <td>CMF-1.5.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: DCWorkflowGraph</th>
   <td>0.3</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5</th>
   <td>ERP5</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Banking</th>
   <td>ERP5Banking</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Catalog</th>
   <td>ERP5Catalog</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Form</th>
   <td>ERP5Form</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5OOo</th>
   <td>ERP5OOo</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Security</th>
   <td>ERP5Security</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Subversion</th>
   <td>ERP5Subversion</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5SyncML</th>
   <td>ERP5SyncML</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ERP5Type</th>
   <td>ERP5Type</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ExtFile</th>
   <td>1.4.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ExternalEditor</th>
   <td>0.9.1</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ExternalMethod</th>
   <td>External</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: FCKeditor</th>
   <td>2.2.1</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Formulator</th>
   <td>Formulator</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: GroupUserFolder</th>
   <td>3.52</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Localizer</th>
   <td>Localizer</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: MIMETools</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: MailHost</th>
   <td>MailHost-1-3-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: OFSP</th>
   <td>OFSP-1-0-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PageTemplates</th>
   <td>PageTemplates-1-4-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Photo</th>
   <td>Photo</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PlacelessTranslationService</th>
   <td>1.3.1</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PloneErrorReporting</th>
   <td>0.11</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PluggableAuthService</th>
   <td>PluggableAuthService-1.0.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PluginIndexes</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PluginRegistry</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: PythonScripts</th>
   <td>PythonScripts-2-0-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: SecureMailHost</th>
   <td>1.0.4</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Sessions</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: SiteAccess</th>
   <td>SiteAccess-2-0-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: SiteErrorLog</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: StandardCacheManagers</th>
   <td>StandardCacheManagers-1-1-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: TemporaryFolder</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: TimerService</th>
   <td>TimerService</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Transience</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: VerboseSecurity</th>
   <td>VerboseSecurity-0.6</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: VisualTraceback</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZCTextIndex</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZCatalog</th>
   <td>ZCatalog-2-2-0</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZGadflyDA</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZMailIn</th>
   <td>ZMailIn-1_0_1</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZMySQLDA</th>
   <td>ZMySQLDA</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZMySQLDDA</th>
   <td>ZMySQLDDA</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZODBMountPoint</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZReST</th>
   <td>1.1</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZSQLCatalog</th>
   <td>ZSQLCatalog</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZSQLMethods</th>
   <td>unreleased</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: Zelenium</th>
   <td>Zelenium-0.8</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: ZopeTutorial</th>
   <td>Zope</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: iHotfix</th>
   <td>iHotfix</td>
  </tr>
 </tbody>
 <tbody>
  <tr>
   <th align="left">Product: kupu</th>
   <td>kupu</td>
  </tr>
 </tbody>

</table>

</body>
</html>