[Erp5-report] r10879 - in /erp5/trunk/bt5/erp5_accounting_ui_test: PathTemplateItem/portal_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 23 14:04:31 CEST 2006
Author: jerome
Date: Mon Oct 23 14:04:29 2006
New Revision: 10879
URL: http://svn.erp5.org?rev=10879&view=rev
Log:
Added a test for Payment Transaction generation and corresponding payment_mode categories.
Added:
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml
Modified:
erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
erp5/trunk/bt5/erp5_accounting_ui_test/bt/template_path_list
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml?rev=10879&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml Mon Oct 23 14:04:29 2006
@@ -1,0 +1,114 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5Type.Document.Category</string>
+ <string>Category</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_count</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mt_index</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_tree</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>categories</string> </key>
+ <value>
+ <tuple>
+ <string>payment_mode/cash</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>cash</string> </value>
+ </item>
+ <item>
+ <key> <string>portal_type</string> </key>
+ <value> <string>Category</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Cash</string> </value>
+ </item>
+ <item>
+ <key> <string>uid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.Length</string>
+ <string>Length</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle> <int>0</int> </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.OOBTree</string>
+ <string>OOBTree</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <none/>
+ </pickle>
+ </record>
+ <record id="4" aka="AAAAAAAAAAQ=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.OOBTree</string>
+ <string>OOBTree</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <none/>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml?rev=10879&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml Mon Oct 23 14:04:29 2006
@@ -1,0 +1,114 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5Type.Document.Category</string>
+ <string>Category</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_count</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_mt_index</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_tree</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>categories</string> </key>
+ <value>
+ <tuple>
+ <string>payment_mode/check</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>check</string> </value>
+ </item>
+ <item>
+ <key> <string>portal_type</string> </key>
+ <value> <string>Category</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Check</string> </value>
+ </item>
+ <item>
+ <key> <string>uid</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.Length</string>
+ <string>Length</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle> <int>0</int> </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.OOBTree</string>
+ <string>OOBTree</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <none/>
+ </pickle>
+ </record>
+ <record id="4" aka="AAAAAAAAAAQ=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>BTrees.OOBTree</string>
+ <string>OOBTree</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <none/>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml?rev=10879&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml Mon Oct 23 14:04:29 2006
@@ -1,0 +1,252 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.PageTemplates.ZopePageTemplate</string>
+ <string>ZopePageTemplate</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_dav_writelocks</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head><title>Test for Creating Payment Transactions related to some Invoices</title></head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="4">\n
+Test for Creating Payment Transactions related to some Invoices\n
+</td></tr>\n
+<!-- XXX we do not need init method here ! -->\n
+</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
+<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
+\n
+<!-- Setup {{{ -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_markChanged</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Done.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_module</td>\n
+ <td>Accounting</td>\n
+</tr>\n
+<!-- }}} -->\n
+\n
+<!-- Select {{{ -->\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>//button[@title=\'Show All\']</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>//tr[@id=\'listbox_search_line\']/td[4]/span/input</td>\n
+ <td>Sale Invoice Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>listbox_select</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyText</td>\n
+ <td>listbox_record_number</td>\n
+ <td>2 record(s)</td>\n
+</tr>\n
+<!-- }}} -->\n
+\n
+<!-- select create payment action {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>Create Related Payments</td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_your_node</td>\n
+ <td>label=5 - Bank</td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_your_payment_mode</td>\n
+ <td>label=Cash</td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_your_payment</td>\n
+ <td>label=My default bank account</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>document.forms[0].elements[\'Base_callDialogMethod:method\'][1]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertPortalStatusMessage</td>\n
+ <td>Payments Creation for 2 on 2 Invoices in Progress</td>\n
+ <td></td>\n
+</tr>\n
+<!-- }}} -->\n
+\n
+<!-- show the dialog again, to check it remembers values {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>Create Related Payments</td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_your_node</td>\n
+ <td>account_module/bank</td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_your_payment_mode</td>\n
+ <td>cash</td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_your_payment</td>\n
+ <td>organisation_module/my_organisation/my_bank</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>Base_cancel:method</td>\n
+ <td></td>\n
+</tr>\n
+<!-- }}} -->\n
+\n
+<!-- Check accounting transactions are created {{{ -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/Zuite_waitForActivities</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Done.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/accounting_module/view</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>//button[@title=\'Show All\']</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyText</td>\n
+ <td>listbox_record_number</td>\n
+ <td>6 record(s)</td>\n
+</tr>\n
+<!-- }}} -->\n
+\n
+</tbody></table>\n
+</body>\n
+</html> <!-- vim: syntax=html foldmethod=marker\n
+-->\n
+
+
+]]></string> </value>
+ </item>
+ <item>
+ <key> <string>content_type</string> </key>
+ <value> <string>text/html</string> </value>
+ </item>
+ <item>
+ <key> <string>expand</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>test_accounting_transaction_module_create_related_payment.html</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Persistence</string>
+ <string>PersistentMapping</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_container</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision?rev=10879&r1=10878&r2=10879&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision Mon Oct 23 14:04:29 2006
@@ -1,1 +1,1 @@
-27
+28
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/bt/template_path_list?rev=10879&r1=10878&r2=10879&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/template_path_list (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/template_path_list Mon Oct 23 14:04:29 2006
@@ -29,6 +29,8 @@
portal_categories/group/demo_group/**
portal_categories/group/vendor
portal_categories/group/vendor/**
+portal_categories/payment_mode/cash
+portal_categories/payment_mode/check
portal_preferences/accounting_zuite_preference
portal_tests/accounting_zuite
portal_tests/accounting_zuite/**
More information about the Erp5-report
mailing list