[Erp5-report] r34224 fabien - in /erp5/trunk/bt5/erp5_web_ui_test: PathTemplateItem/portal_...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 31 11:05:04 CEST 2010


Author: fabien
Date: Wed Mar 31 11:04:57 2010
New Revision: 34224

URL: http://svn.erp5.org?rev=34224&view=rev
Log:
add test to be sure that we can set up a membership criterion predicate without error and that the value is saved.

Added:
    erp5/trunk/bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testAddMembershipCriterion.xml
    erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/PersonModule_createPerson.xml
Modified:
    erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/WebSiteModule_resetWebZuite.xml
    erp5/trunk/bt5/erp5_web_ui_test/bt/change_log
    erp5/trunk/bt5/erp5_web_ui_test/bt/revision

Added: erp5/trunk/bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testAddMembershipCriterion.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testAddMembershipCriterion.xml?rev=34224&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testAddMembershipCriterion.xml (added)
+++ erp5/trunk/bt5/erp5_web_ui_test/PathTemplateItem/portal_tests/erp5_web_zuite/testAddMembershipCriterion.xml [utf8] Wed Mar 31 11:04:57 2010
@@ -1,0 +1,153 @@
+<?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>_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 xmlns:tal="http://xml.zope.org/namespaces/tal"\n
+      xmlns:metal="http://xml.zope.org/namespaces/metal">\n
+<head>\n
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
+<title>Test set a membership criterion predicate</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test set a membership criterion predicate</td></tr>\n
+</thead><tbody>\n
+<tal:block metal:use-macro="here/Zuite_erp5_web_common/macros/init" />\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/person_module/PersonModule_createPerson?id=test_website_predicate&amp;title=Test Predicate</td>\n
+  <td></td>\n
+  <td>Create a new site</td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td>Created Successfully.</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/web_site_module/WebSiteModule_createTestSite?id=test_web_site&amp;title=Test Web Site</td>\n
+  <td></td>\n
+  <td>Create a new site</td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td>Created Successfully.</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/web_site_module/Zuite_waitForActivities</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td>Done.</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/web_site_module/test_web_site/Predicate_view?ignore_layout=1</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td>Predicate</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>addSelection</td>\n
+\t<td>field_my_membership_criterion_base_category_list</td>\n
+\t<td>label=follow_up</td>\n
+</tr>\n
+<tr>\n
+\t<td>type</td>\n
+\t<td>field_my_membership_criterion_document_list</td>\n
+\t<td>follow_up/person_module/test_website_predicate</td>\n
+</tr>\n
+<tr>\n
+\t<td>clickAndWait</td>\n
+\t<td>//button[@name=\'Predicate_edit:method\']</td>\n
+\t<td></td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextNotPresent</td>\n
+  <td>Input data has errors.</td>\n
+  <td></td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+\t<td>assertValue</td>\n
+\t<td>field_my_membership_criterion_document_list</td>\n
+\t<td>follow_up/person_module/test_website_predicate</td>\n
+</tr>\n
+</tbody></table>\n
+</body>\n
+</html>\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>testAddMembershipCriterion</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/PersonModule_createPerson.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/PersonModule_createPerson.xml?rev=34224&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/PersonModule_createPerson.xml (added)
+++ erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/PersonModule_createPerson.xml [utf8] Wed Mar 31 11:04:57 2010
@@ -1,0 +1,136 @@
+<?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>Script_magic</string> </key>
+            <value> <int>3</int> </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>context.newContent(id=id, title=title, portal_type=\'Person\')\n
+return "Created Successfully."\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>id=None, title=None</string> </value>
+        </item>
+        <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Manager</string>
+              </tuple>
+            </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>2</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>id</string>
+                            <string>title</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <tuple>
+                <none/>
+                <none/>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>PersonModule_createPerson</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/WebSiteModule_resetWebZuite.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/WebSiteModule_resetWebZuite.xml?rev=34224&r1=34223&r2=34224&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/WebSiteModule_resetWebZuite.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web_ui_test/SkinTemplateItem/portal_skins/erp5_web_ui_test/WebSiteModule_resetWebZuite.xml [utf8] Wed Mar 31 11:04:57 2010
@@ -68,6 +68,9 @@
 \n
 if portal.web_site_module.has_key(\'test_web_site\'):\n
   portal.web_site_module.manage_delObjects(\'test_web_site\')\n
+\n
+if portal.person_module.has_key(\'test_website_predicate\'):\n
+  portal.person_module.manage_delObjects(\'test_website_predicate\')\n
 \n
 portal.web_page_module.manage_delObjects(\n
   [x.getId() for x in portal.web_page_module.objectValues() \\\n

Modified: erp5/trunk/bt5/erp5_web_ui_test/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web_ui_test/bt/change_log?rev=34224&r1=34223&r2=34224&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web_ui_test/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_web_ui_test/bt/change_log [utf8] Wed Mar 31 11:04:57 2010
@@ -1,3 +1,6 @@
+2010-03-31 fabien
+* add a test that check it's possible to add membership criterion predicate
+
 2009-04-17 Kazuhiko
 * add security configurations
 

Modified: erp5/trunk/bt5/erp5_web_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web_ui_test/bt/revision?rev=34224&r1=34223&r2=34224&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_web_ui_test/bt/revision [utf8] Wed Mar 31 11:04:57 2010
@@ -1,1 +1,1 @@
-20
+23




More information about the Erp5-report mailing list