Commit faaf2f46 authored by Boxiang Sun's avatar Boxiang Sun

erp5_user_tutorial: Update test page content, test and screenshots

parent d50c491b
<section class="master">
<h1>Selenium Test How To Use Full Text Search</h1>
<h2> Former testHowToFullTextSearch to be merged with ??? Document </h2>
<details open="open">
<p> (rafael) I'm not sure there is an related tutorial related to this test. Perhaps a short how to could be written. </p>
</details>
<test>
<table style="display: none;" class="test">
<tbody>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/init_test_environment&quot;&gt;init&lt;/span&gt;</td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/Zuite_setUpFullTextSearchTest</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Init Ok</td>
<td><br /></td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot;&gt;Login As Functional Test User&lt;/span&gt;</td>
</tr> <!-- Search with empty string -->
<tr>
<td>type</td>
<td>field_your_search_text</td>
<td><br /></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ERP5Site_viewQuickSearchResultList:method</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>Search Results</td>
<td><br /></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>id=transition_message</td>
<td><br /></td>
</tr> <!-- Search persons by full name -->
<tr>
<td>openAndWait</td>
<td>${base_url}/view</td>
<td><br /></td>
</tr>
<tr>
<td>type</td>
<td>field_your_search_text</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ERP5Site_viewQuickSearchResultList:method</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Search Results</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_REFERENCE_001</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Person</td>
<td><br /></td>
</tr> <!-- Search Organisation -->
<tr>
<td>type</td>
<td>field_your_search_text</td>
<td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ERP5Site_viewQuickSearchResultList:method</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Search Results</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Organisation</td>
<td><br /></td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_tearDownFullTextSearchTest</td>
<td><br /></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Clean Ok</td>
<td><br /></td>
</tr>
<tr>
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
</tbody>
</table>
</test>
</section>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Role Definition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_folder_handler</string> </key>
<value> <string>CMFBTreeFolderHandler</string> </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>agent/person_module/453</string>
<string>agent/person_module/424</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>1</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Role Definition</string> </value>
</item>
<item>
<key> <string>role_name</string> </key>
<value> <string>Assignee</string> </value>
</item>
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>jingjing</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global id="6.1" name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1352796576.01</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>jingjing</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="6.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1352796576.01</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<global name="Message" module="Products.ERP5Type.Message"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string>Object copied from ${source_item}</string> </value>
</item>
<item>
<key> <string>domain</string> </key>
<value> <string>erp5_ui</string> </value>
</item>
<item>
<key> <string>mapping</string> </key>
<value>
<dictionary>
<item>
<key> <string>source_item</string> </key>
<value> <string>/nexedi/test_page_module/68</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>message</string> </key>
<value> <string>Object copied from ${source_item}</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<section class="">
<h1>How to create Accounting Report</h1>
<footer>
by the <a href="http://www.osoe-project.org/contact">OSOE Project</a>.
</footer>
</section><section>
<h1>Agenda</h1>
<ul>
<li>Which reports you can generate</li>
<li>How to generate a report</li>
</ul>
<details open="open">
<p>In this guide, you will learn which type of report you can generate with ERP5, and how to generate them.</p>
</details>
</section><section class="screenshot">
<h1>The Reports tab in ERP5 home page</h1>
<img src="http://img.erp5.cn/user-Howto.Generate.Report.Home.Reports.Tab?format=png" type="image/png" title="The Reports tab" alt="The Reports tab">
<details open="open">
<p>
In order to see the list of reports available to generate, click on the Reports tab of your ERP5 instance. On the left, you can see the Accounting area displaying a list of the reports you are able to generate: Import Report, Trial Balance, Account Statement, Journal, Third Parties, General Ledger, Balance Sheet, Profit and Loss, and Invoices Report. In order to create a report, <strong>simply click on the line of the report you want to create</strong>
. In our example, we will create an Account Statement.
</p>
</details>
</section><section class="screenshot">
<h1>Example: Account Statement</h1>
<img src="http://img.erp5.cn/user-Howto.Generate.Report.Create.Edit.Account.Statement?format=png" type="image/png" title="Account Statement" alt="Account Statement">
<details open="open">
<p>Here is an example of an Account Statement report Creation. As you can see in the screenshot, please follow the steps to set the following information.</p><p>
Firstly, in the red area, the <strong>Section Category</strong>
is the group your company belongs to, you will have only one choice here;
<strong>From Date</strong>
and
<strong>At Date (end date)</strong>
are the dates delimiting your report.
<strong>The At Date is compulsory</strong>
.
</p><p>
Secondly, in the blue area, you can choose which <strong>Simulation State(s)</strong>
you want to display in your report, and the
<strong>Transaction Type</strong>
you need to display.
</p><p>
Thirdly, in the yellow area, you have to <strong>choose an Account, this is compulsory</strong>
, and then you can choose one of your
<strong>Bank Accounts</strong>
if you have several ones.
</p><p>
Then, in the green area, you can choose to display the <strong>Detailed Beginning Balance</strong>
, and to
<strong>Omit Grouped References</strong>
. You can also choose the
<strong>Format</strong>
of your report. As you will see in this item list, many formats are already supported by ERP5.
</p><p>
Finally, when you are done editing, click the <strong>"Account Statement"</strong>
button. Then you can
<strong>save or print</strong>
this Account Statement.
</p>
</details>
</section><section class="screenshot">
<h1>Account Statement example</h1>
<img src="http://img.erp5.cn/user-Howto.Generate.Report.Print.Account.Statement?format=png" type="image/png" title="Account Statement example" alt="Account Statement example">
<details open="open">
<p>Here is an example of the Account Statement report we have just created.</p>
</details>
</section><section class="screenshot">
<h1>Another example: Profit and Loss</h1>
<img src="http://img.erp5.cn/user-Howto.Generate.Report.Edit.Profit.And.Loss?format=png" type="image/png" title="Another example: Profit and Loss" alt="Another example: Profit and Loss">
<details open="open">
<p>As you can see in the picture, this is an other example of a report: Profit and Loss. The details requested by ERP5 are different from the Account Statement, as the report itself is different.</p>
</details>
</section><section class="screenshot">
<h1>Profit and Loss</h1>
<img src="http://img.erp5.cn/user-Howto.Generate.Report.Print.Profit.And.Loss?format=png" type="image/png" title="Profit and Loss" alt="Profit and Loss">
<details open="open">
<p>Here is the Profit and Loss Report we have just created.</p>
</details>
</section>
\ No newline at end of file
<section class="master">
<h1>Selenium Test How To Use Full Text Search</h1>
<h2>Former testHowToFullTextSearch to be merged with ??? Document</h2>
<details open="open">
<p>(rafael) I&#39;m not sure there is an related tutorial related to this test. Perhaps a short how to could be written.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/init_test_environment&quot;&gt;init&lt;/span&gt;</td>
</tr>
<tr>
<td>openAndWait</td>
<td>${base_url}/Zuite_setUpFullTextSearchTest</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Init Ok</td>
<td>&nbsp;</td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot;&gt;Login As Functional Test User&lt;/span&gt;</td>
</tr>
<!-- Search with empty string -->
<tr>
<td>click</td>
<td>//button[contains(@class, &quot;search_button&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@id=&quot;search&quot;]</td>
<td>&nbsp;</td>
</tr>
<!-- Search persons by full name -->
<tr>
<td>type</td>
<td>//input[@id=&quot;search&quot;]</td>
<td>ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001</td>
</tr>
<tr>
<td>click</td>
<td>//input[@id=&quot;search&quot;]/../following-sibling::button</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;ZUITE_TEST_FULL_TEXT_PERSON_TITLE_001&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Person&quot;)]</td>
<td>&nbsp;</td>
</tr>
<!-- Search Organisation -->
<tr>
<td>type</td>
<td>//input[@id=&quot;search&quot;]</td>
<td>ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001</td>
</tr>
<tr>
<td>click</td>
<td>//input[@id=&quot;search&quot;]/../following-sibling::button</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;ZUITE_TEST_FULL_TEXT_ORGANISATION_TITLE_001&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Organisation&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_tearDownFullTextSearchTest</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Clean Ok</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
</tbody>
</table>
</test></section>
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