Commit 59d87a1d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

writing tear-down like logic at the bottom of test is bad, because if a test...

writing tear-down like logic at the bottom of test is bad, because if a test fails in progress, such a part will not be invoked. use AccountingZuite_reset instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26272 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d31300e9
......@@ -260,39 +260,6 @@ Test display of Account Module, with at_date parameter\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -302,29 +302,6 @@ Test domain tree of Account Module\n
</tr>\n
<!-- }}} -->\n
\n
<!-- tear down: reset selection in the tree {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>//select[@name=\'domain_root_url\']</td>\n
<td>Account Type</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_flat_list_mode</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>10 record(s)</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -548,39 +548,6 @@ Test display of Account Module, with from_date parameter (which has no impact)\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -147,44 +147,6 @@ Test Transactions related to an account, with at date parameter\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -195,45 +195,6 @@ client 1 invoice or client 2 invoice will have the first uid. -->\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -150,44 +150,6 @@ balance. -->\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -278,54 +278,6 @@ Test Transactions related to an Organisation, with start date\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>assertSelected</td>\n
<td>listbox_page_selection</td>\n
<td>2 of 3</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>label=1 of 3</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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -206,19 +206,6 @@ Test Transactions related to an Organisation, with multiple pages and date range
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ tear down -->\n
<tr>\n
<td>assertSelected</td>\n
<td>listbox_page_selection</td>\n
<td>2 of 3</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>1 of 3</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -150,44 +150,6 @@ balance. -->\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -279,54 +279,6 @@ Test Transactions related to an Organisation, with start date\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>assertSelected</td>\n
<td>listbox_page_selection</td>\n
<td>label=2 of 3</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>label=1 of 3</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>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -206,19 +206,6 @@ Test Transactions related to an Organisation, with multiple pages and date range
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ tear down -->\n
<tr>\n
<td>assertSelected</td>\n
<td>listbox_page_selection</td>\n
<td>2 of 3</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>1 of 3</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
......@@ -84,7 +84,8 @@ if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
cb = ptool.manage_copyObjects([\'accounting_zuite_preference\'])\n
# FIXME: how could this work ???\n
ptool.manage_pasteObjects(cb)\n
\n
pref.edit(preferred_accounting_transaction_at_date=None)\n
pref.edit(preferred_accounting_transaction_from_date=None)\n
pref.enable()\n
\n
# reset selections\n
......@@ -99,6 +100,8 @@ stool.setSelectionFor(\'person_selection\', None)\n
stool.setSelectionFor(\'organisation_selection\', None)\n
stool.setSelectionFor(\'grouping_reference_fast_input_selection\', None)\n
stool.setSelectionFor(\'accounting_transaction_module_grouping_reference_fast_input\', None)\n
stool.setSelectionFor(\'entity_transaction_selection\', None)\n
stool.setSelectionFor(\'account_module_selection\', None)\n
\n
# delete the "dummy account" we create in test_account_gap_parallel_list_field\n
dummy_account_list = portal.account_module.searchFolder(\n
......@@ -156,10 +159,10 @@ return "Reset Successfully."\n
<string>str</string>
<string>ptool</string>
<string>cb</string>
<string>None</string>
<string>stool</string>
<string>form</string>
<string>getattr</string>
<string>None</string>
<string>listbox</string>
<string>dummy_account_list</string>
</tuple>
......
119
\ No newline at end of file
120
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment