[Erp5-report] r18805 - in /erp5/trunk/bt5/erp5_accounting_ui_test: PathTemplateItem/portal_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 21 16:14:14 CET 2008
Author: yusei
Date: Mon Jan 21 16:14:12 2008
New Revision: 18805
URL: http://svn.erp5.org?rev=18805&view=rev
Log:
2008-01-21 yusei
* Add tests for section selection box.
Added:
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_section_selection_check.html.xml
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_section_selection_check.html.xml
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_section_selection_check.html.xml
erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_section_selection_check.html.xml
erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_setDocumentSectionPreference.xml
erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_unsetDocumentSectionPreference.xml
Modified:
erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_CommonTemplate.xml
erp5/trunk/bt5/erp5_accounting_ui_test/bt/change_log
erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_section_selection_check.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_section_selection_check.html.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_section_selection_check.html.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_section_selection_check.html.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,200 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
+ </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>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head><title>Test Section Selection for Accounting Transaction</title></head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="4">\n
+Test Section Selection for Accounting Transaction.\n
+</td></tr>\n
+<!-- XXX we do not need init method here ! -->\n
+</thead><tbody tal:define="init_method string:">\n
+<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
+\n
+<!-- Setup {{{ -->\n
+<!-- Reset Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</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
+<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>label=Add Accounting Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Object Created.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_my_source_section</td>\n
+ <td>label=My Organisation</td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td>My Accounting Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Data Updated.</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Modify Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(None, None)</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Activity -->\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
+<!-- Open the transaction view and check section value. -->\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>label=Accounting</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>link=My Accounting Transaction</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_my_source_section</td>\n
+ <td>organisation_module/my_organisation</td>\n
+</tr>\n
+\n
+<!-- Reset Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</td>\n
+ <td></td>\n
+</tr>\n
+\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_section_selection_check.html</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_section_selection_check.html.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_section_selection_check.html.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_section_selection_check.html.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_payment_transaction_section_selection_check.html.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,199 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
+ </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>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head><title>Test Section Selection for Payment Transaction</title></head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="4">\n
+Test Section Selection for Payment Transaction.\n
+</td></tr>\n
+<!-- XXX we do not need init method here ! -->\n
+</thead><tbody tal:define="init_method string:">\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_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</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
+<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>label=Add Payment Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Object Created.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_my_destination_section</td>\n
+ <td>label=My Organisation</td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td>My Payment Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Data Updated.</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Modify Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(None, None)</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Activity -->\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
+<!-- Open the transaction view and check section value. -->\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>label=Accounting</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>link=My Payment Transaction</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_my_destination_section</td>\n
+ <td>organisation_module/my_organisation</td>\n
+</tr>\n
+\n
+<!-- Reset Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</td>\n
+ <td></td>\n
+</tr>\n
+\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_payment_transaction_section_selection_check.html</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_section_selection_check.html.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_section_selection_check.html.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_section_selection_check.html.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_purchase_invoice_transaction_section_selection_check.html.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,199 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
+ </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>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head><title>Test Section Selection for Purchase Invoice Transaction</title></head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="4">\n
+Test Section Selection for Purchase Invoice Transaction.\n
+</td></tr>\n
+<!-- XXX we do not need init method here ! -->\n
+</thead><tbody tal:define="init_method string:">\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_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</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
+<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>label=Add Purchase Invoice Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Object Created.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_my_destination_section</td>\n
+ <td>label=My Organisation</td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td>My Purchase Invoice Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Data Updated.</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Modify Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(None, None)</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Activity -->\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
+<!-- Open the transaction view and check section value. -->\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>label=Accounting</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>link=My Purchase Invoice Transaction</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_my_destination_section</td>\n
+ <td>organisation_module/my_organisation</td>\n
+</tr>\n
+\n
+<!-- Reset Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</td>\n
+ <td></td>\n
+</tr>\n
+\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_purchase_invoice_transaction_section_selection_check.html</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_section_selection_check.html.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_section_selection_check.html.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_section_selection_check.html.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_sale_invoice_transaction_section_selection_check.html.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,199 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
+ </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>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html>\n
+<head><title>Test Section Selection for Sale Invoice Transaction</title></head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="4">\n
+Test Section Selection for Sale Invoice Transaction.\n
+</td></tr>\n
+<!-- XXX we do not need init method here ! -->\n
+</thead><tbody tal:define="init_method string:">\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_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</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
+<!-- Add an accounting transaction and select an orgaisation as section {{{ -->\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>label=Add Sale Invoice Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Object Created.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>select</td>\n
+ <td>field_my_source_section</td>\n
+ <td>label=My Organisation</td>\n
+</tr>\n
+<tr>\n
+ <td>type</td>\n
+ <td>field_my_title</td>\n
+ <td>My Sale Invoice Transaction</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>document.forms[0].elements[\'Base_edit:method\'][1]</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>Data Updated.</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Modify Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_unsetDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(None, None)</td>\n
+ <td></td>\n
+</tr>\n
+<!-- Activity -->\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
+<!-- Open the transaction view and check section value. -->\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>label=Accounting</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>link=My Sale Invoice Transaction</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>field_my_source_section</td>\n
+ <td>organisation_module/my_organisation</td>\n
+</tr>\n
+\n
+<!-- Reset Preference -->\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/AccountingZuite_setDocumentSectionPreference</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>verifyTextPresent</td>\n
+ <td>(\'group/demo_group\', \'group/demo_group\')</td>\n
+ <td></td>\n
+</tr>\n
+\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_sale_invoice_transaction_section_selection_check.html</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_CommonTemplate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_CommonTemplate.xml?rev=18805&r1=18804&r2=18805&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_CommonTemplate.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_CommonTemplate.xml Mon Jan 21 16:14:12 2008
@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
- <tuple>
- <string>Products.PageTemplates.ZopePageTemplate</string>
- <string>ZopePageTemplate</string>
- </tuple>
- <none/>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
</tuple>
</pickle>
<pickle>
@@ -72,6 +69,8 @@
<td>Reset Successfully.</td>\n
<td></td>\n
</tr>\n
+\n
+ <tal:block tal:condition="init_method">\n
<tr>\n
<td>open</td>\n
<td tal:content="string:$base_url/accounting_module/$init_method" />\n
@@ -82,7 +81,6 @@
<td>Accounting Transactions Created.</td>\n
<td></td>\n
</tr>\n
-\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Zuite_waitForActivities</td>\n
@@ -93,6 +91,8 @@
<td>Done.</td>\n
<td></td>\n
</tr>\n
+ </tal:block>\n
+\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
Added: erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_setDocumentSectionPreference.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_setDocumentSectionPreference.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_setDocumentSectionPreference.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_setDocumentSectionPreference.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,146 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Python_magic</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <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_container</string> </key>
+ <value> <string>container</string> </value>
+ </item>
+ <item>
+ <key> <string>name_context</string> </key>
+ <value> <string>context</string> </value>
+ </item>
+ <item>
+ <key> <string>name_m_self</string> </key>
+ <value> <string>script</string> </value>
+ </item>
+ <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>_body</string> </key>
+ <value> <string>preference = context.portal_preferences.accounting_zuite_preference\n
+preference.setPreferredAccountingTransactionSectionCategory(\'group/demo_group\')\n
+preference.setPreferredSectionCategory(\'group/demo_group\')\n
+\n
+return str((preference.getPreferredSectionCategory(), preference.getPreferredAccountingTransactionSectionCategory()))\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_filepath</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>errors</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_code</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>co_argcount</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>_getattr_</string>
+ <string>context</string>
+ <string>preference</string>
+ <string>str</string>
+ </tuple>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_defaults</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>AccountingZuite_setDocumentSectionPreference</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_unsetDocumentSectionPreference.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_unsetDocumentSectionPreference.xml?rev=18805&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_unsetDocumentSectionPreference.xml (added)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_unsetDocumentSectionPreference.xml Mon Jan 21 16:14:12 2008
@@ -1,0 +1,147 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Python_magic</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <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_container</string> </key>
+ <value> <string>container</string> </value>
+ </item>
+ <item>
+ <key> <string>name_context</string> </key>
+ <value> <string>context</string> </value>
+ </item>
+ <item>
+ <key> <string>name_m_self</string> </key>
+ <value> <string>script</string> </value>
+ </item>
+ <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>_body</string> </key>
+ <value> <string>preference = context.portal_preferences.accounting_zuite_preference\n
+preference.setPreferredAccountingTransactionSectionCategory(None)\n
+preference.setPreferredSectionCategory(None)\n
+\n
+return str((preference.getPreferredSectionCategory(), preference.getPreferredAccountingTransactionSectionCategory()))\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_filepath</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>errors</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_code</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>co_argcount</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>_getattr_</string>
+ <string>context</string>
+ <string>preference</string>
+ <string>None</string>
+ <string>str</string>
+ </tuple>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_defaults</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>AccountingZuite_unsetDocumentSectionPreference</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/bt/change_log?rev=18805&r1=18804&r2=18805&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/change_log Mon Jan 21 16:14:12 2008
@@ -1,3 +1,6 @@
+2008-01-21 yusei
+* Add tests for section selection box.
+
2006-09-25 jerome
* Add tests for bank accounts
* Add tests for accounting transaction inputing
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=18805&r1=18804&r2=18805&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision Mon Jan 21 16:14:12 2008
@@ -1,1 +1,1 @@
-60
+61
More information about the Erp5-report
mailing list